Report timestamp: Aug 25, 2009 9:38:58 PM
| Package | Total Files | Files with Violations | Priority 1 | Priority 2 | Priority 3 |
|---|---|---|---|---|---|
| All Packages | 7 | 5 | 2 | 11 | 5 |
| org/codenarc/sample/domain | 2 | 2 | 1 | 3 | 2 |
| org/codenarc/sample/other | 1 | 0 | 0 | 0 | 0 |
| org/codenarc/sample/service | 4 | 3 | 1 | 8 | 3 |
| Rule Name | Priority | Line # | Source Line / Message |
|---|---|---|---|
| MyStaticField | 2 | 7 | [SRC]static final MAX_COUNT = 10 |
| Rule Name | Priority | Line # | Source Line / Message |
|---|---|---|---|
| DuplicateImport | 1 | 5 | [SRC]import org.codenarc.sample.other.Other |
| EmptyElseBlock | 2 | 24 | [SRC]else { |
| EmptyIfStatement | 2 | 21 | [SRC]if (name) { |
| 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) { |
| MyStaticField | 2 | 7 | [SRC]static final DEFAULT_ID = 999 |
| Rule Name | Priority | Line # | Source Line / Message |
|---|---|---|---|
| ReturnFromFinallyBlock | 1 | 24 | [SRC]return |
| EmptyFinallyBlock | 2 | 13 | [SRC]finally { |
| EmptyTryBlock | 2 | 10 | [SRC]try { |
| 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 |
| AuthorTagNotAllowed | 3 | 8 | [SRC]@author |