Permalink
Browse files

fixed Codenarc compilation errors

  • Loading branch information...
domix committed Oct 11, 2016
1 parent ac61f16 commit 840b580c527ae0ed92c03d46544b0fe9e3c93268
Showing with 15 additions and 2 deletions.
  1. +5 −0 build.gradle
  2. +5 −1 config/codenarc/codenarc.groovy
  3. +5 −1 config/codenarc/test.groovy
View
@@ -72,6 +72,10 @@ dependencies {
codenarc "org.codehaus.groovy:groovy-all:${groovyVersion}"
}
jacoco {
toolVersion = "0.7.6.201602180812"
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
@@ -86,6 +90,7 @@ jacocoTestReport {
}
codenarc {
toolVersion = '0.25.2'
configFile = file('./config/codenarc/codenarc.groovy')
}
@@ -13,7 +13,11 @@ ruleset {
ruleset('rulesets/dry.xml') {
exclude 'DuplicateNumberLiteral'
}
ruleset('rulesets/enhanced.xml')
ruleset('rulesets/enhanced.xml') {
exclude 'CloneWithoutCloneable'
exclude 'JUnitAssertEqualsConstantActualValue'
exclude 'UnsafeImplementationAsMap'
}
ruleset('rulesets/exceptions.xml') {
exclude 'CatchException'
}
@@ -17,7 +17,11 @@ ruleset {
exclude 'DuplicateNumberLiteral'
exclude 'DuplicateStringLiteral'
}
ruleset('rulesets/enhanced.xml')
ruleset('rulesets/enhanced.xml') {
exclude 'CloneWithoutCloneable'
exclude 'JUnitAssertEqualsConstantActualValue'
exclude 'UnsafeImplementationAsMap'
}
ruleset('rulesets/exceptions.xml')
ruleset('rulesets/formatting.xml') {
exclude 'ClassJavadoc'

0 comments on commit 840b580

Please sign in to comment.