forked from evgeny-goldin/maven-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codenarc.groovy
30 lines (25 loc) · 1.29 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
26
27
28
29
30
ruleset {
description '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 )
ConfusingMethodName ( enabled : false )
UnnecessarySubstring ( enabled : false )
FactoryMethodName ( enabled : false )
GetterMethodCouldBeProperty ( enabled : false )
SpaceBeforeOpeningBrace ( enabled : false )
SpaceAfterOpeningBrace ( enabled : false )
SpaceBeforeClosingBrace ( enabled : false )
SpaceAfterClosingBrace ( enabled : false )
PrivateFieldCouldBeFinal ( enabled : false )
VariableName ( finalRegex : /[a-zA-Z0-9_]+/ )
LineLength ( length : 160 )
MethodName ( regex : /[a-z][\w\s'\(\)]*/ ) // Spock method names
}
}