PMD Results

The following document contains the results of PMD 6.29.0.

Violations By Priority

Priority 2

com/varmateo/testutils/LogStartAndEndRule.java

Rule Violation Line
SystemPrintln System.out.println is used 51
SystemPrintln System.out.println is used 63

Priority 3

com/varmateo/testutils/DirPathAssert.java

Rule Violation Line
LocalVariableCouldBeFinal Local variable 'entries' could be declared final 5256
LocalVariableCouldBeFinal Local variable 'entries' could be declared final 7075

com/varmateo/testutils/LogStartAndEndRule.java

Rule Violation Line
AtLeastOneConstructor Each class should declare at least one constructor 1770
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 34
LocalVariableCouldBeFinal Local variable 'startTime' could be declared final 45
LocalVariableCouldBeFinal Local variable 'testName' could be declared final 46
LocalVariableCouldBeFinal Local variable 'startMsg' could be declared final 49
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 5557
LocalVariableCouldBeFinal Local variable 'durationNanos' could be declared final 59
LocalVariableCouldBeFinal Local variable 'durationMillis' could be declared final 60
LocalVariableCouldBeFinal Local variable 'endMsg' could be declared final 61

Files

com/varmateo/testutils/DirPathAssert.java

Rule Violation Priority Line
LocalVariableCouldBeFinal Local variable 'entries' could be declared final 3 5256
LocalVariableCouldBeFinal Local variable 'entries' could be declared final 3 7075

com/varmateo/testutils/LogStartAndEndRule.java

Rule Violation Priority Line
AtLeastOneConstructor Each class should declare at least one constructor 3 1770
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 34
LocalVariableCouldBeFinal Local variable 'startTime' could be declared final 3 45
LocalVariableCouldBeFinal Local variable 'testName' could be declared final 3 46
LocalVariableCouldBeFinal Local variable 'startMsg' could be declared final 3 49
SystemPrintln System.out.println is used 2 51
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 5557
LocalVariableCouldBeFinal Local variable 'durationNanos' could be declared final 3 59
LocalVariableCouldBeFinal Local variable 'durationMillis' could be declared final 3 60
LocalVariableCouldBeFinal Local variable 'endMsg' could be declared final 3 61
SystemPrintln System.out.println is used 2 63