Skip to content

Commit dd6858c

Browse files
committed
Build: updated codenarc to 1.0
JAVA-2678
1 parent bcfca4f commit dd6858c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ configure(subprojects.findAll { it.name != 'util' && it.name != 'mongo-java-driv
277277
}
278278

279279
codenarc {
280-
toolVersion = '0.24'
280+
toolVersion = '1.0'
281281
reportFormat = project.buildingWith('xmlReports.enabled') ? 'xml' : 'html'
282282
}
283283

config/codenarc/codenarc.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
<rule-config name='HashtableIsObsolete'>
3232
<property name='doNotApplyToFileNames' value='MongoClientFactorySpecification.groovy'/>
3333
</rule-config>
34+
<exclude name="TrailingComma"/>
35+
<exclude name="CouldBeSwitchStatement"/>
36+
<exclude name="NoDef"/>
3437
</ruleset-ref>
3538
<ruleset-ref path='rulesets/design.xml'>
3639
<rule-config name='BuilderMethodWithSideEffects'>
@@ -96,6 +99,7 @@
9699
<!-- dangerous rule because if you use "with in a then clause of a Spock test, the assertions are not run -->
97100
<exclude name="UnnecessaryObjectReferences"/>
98101
<exclude name="UnnecessaryBigDecimalInstantiation"/>
102+
<exclude name="UnnecessarySetter"/>
99103
</ruleset-ref>
100104
<ruleset-ref path='rulesets/unused.xml'>
101105
<rule-config name='UnusedObject'>

0 commit comments

Comments
 (0)