Report timestamp: May 10, 2010 10:04:27 PM
Package | Total Files | Files with Violations | Priority 1 | Priority 2 | Priority 3 |
---|---|---|---|---|---|
All Packages | 7 | 4 | 0 | 11 | 5 |
org/codenarc/sample/domain | 2 | 1 | 0 | 3 | 3 |
org/codenarc/sample/other | 1 | 0 | 0 | 0 | 0 |
org/codenarc/sample/service | 4 | 3 | 0 | 8 | 2 |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
EmptyElseBlock | 2 | 24 | [SRC]else { |
EmptyIfStatement | 2 | 21 | [SRC]if (name) { |
StringInstantiation | 2 | 17 | [SRC]def title = new String('Sample Domain') |
DuplicateImport | 3 | 5 | [SRC]import org.codenarc.sample.other.Other |
ImportFromSamePackage | 3 | 4 | [SRC]import org.codenarc.sample.domain.OtherDomain |
UnnecessaryGroovyImport | 3 | 3 | [SRC]import java.util.Map |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
EmptyForStatement | 2 | 12 | [SRC]for(int i=0; i < values.size(); i++) { |
EmptyWhileStatement | 2 | 18 | [SRC]while (!values.empty) { |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
EmptyFinallyBlock | 2 | 13 | [SRC]finally { |
EmptyTryBlock | 2 | 10 | [SRC]try { |
ReturnFromFinallyBlock | 2 | 24 | [SRC]return |
Rule Name | Priority | Line # | Source Line / Message |
---|---|---|---|
BooleanInstantiation | 2 | 17 | [SRC]def shouldRun = new Boolean(true) |
EmptyCatchBlock | 2 | 20 | [SRC]} catch(Throwable t) { |
ThrowExceptionFromFinallyBlock | 2 | 31 | [SRC]throw new Exception('bad stuff') |
UnnecessaryGroovyImport | 3 | 3 | [SRC]import java.util.Map |
UnusedImport | 3 | 4 | [SRC]import org.codenarc.sample.domain.SampleDomain |