-
Notifications
You must be signed in to change notification settings - Fork 32
/
codenarc.groovy
25 lines (21 loc) · 1.14 KB
/
codenarc.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ruleset {
description 'TeamCity plugins CodeNarc RuleSet'
ruleset( "http://codenarc.sourceforge.net/StarterRuleSet-AllRulesByCategory.groovy.txt" ) {
DuplicateNumberLiteral ( enabled : false )
DuplicateStringLiteral ( enabled : false )
BracesForClass ( enabled : false )
BracesForMethod ( enabled : false )
BracesForIfElse ( enabled : false )
BracesForForLoop ( enabled : false )
BracesForTryCatchFinally ( enabled : false )
JavaIoPackageAccess ( enabled : false )
VariableName ( enabled : false )
FactoryMethodName ( enabled : false )
SpaceBeforeOpeningBrace ( enabled : false )
SpaceBeforeClosingBrace ( enabled : false )
SpaceAfterIf ( enabled : false )
ThisReferenceEscapesConstructor ( enabled : false )
LineLength ( length : 160 )
MethodName ( regex : /[a-z][\w\s'\(\)]*/ ) // Spock method names
}
}