Skip to content

Commit bae2487

Browse files
committed
Relaxed Codenarc MethodCount rule
1 parent 59d35a7 commit bae2487

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

config/codenarc/codenarc.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<ruleset-ref path='rulesets/generic.xml'/>
5757
<ruleset-ref path='rulesets/groovyism.xml'>
5858
<exclude name="ExplicitCallToCompareToMethod"/>
59-
</ruleset-ref>
59+
</ruleset-ref>
6060
<ruleset-ref path='rulesets/junit.xml'/>
6161
<ruleset-ref path='rulesets/logging.xml'/>
6262
<ruleset-ref path='rulesets/naming.xml'>
@@ -65,10 +65,13 @@
6565
<ruleset-ref path='rulesets/security.xml'/>
6666
<ruleset-ref path='rulesets/serialization.xml'/>
6767
<ruleset-ref path='rulesets/size.xml'>
68+
<rule-config name='MethodCount'>
69+
<property name='maxMethods' value='50'/>
70+
</rule-config>
6871
<exclude name='CrapMetric'/>
6972
</ruleset-ref>
7073
<ruleset-ref path='rulesets/unnecessary.xml'>
71-
<!-- these should be revisted later when we've developed a Groovy style -->
74+
<!-- these should be revisited later when we've developed a Groovy style -->
7275
<exclude name='UnnecessaryGetter'/>
7376
<exclude name='UnnecessarySemicolon'/>
7477
</ruleset-ref>

0 commit comments

Comments
 (0)