Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 5

de/softwareforge/testing/postgres/embedded/EmbeddedPostgres.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 76982
TooManyFields Too many fields 76982
CloseResource Ensure that resources like this EmbeddedPostgres object are closed after use 337
CognitiveComplexity The method 'cleanOldDataDirectories(File)' has a cognitive complexity of 23, current threshold is 15 557606
CyclomaticComplexity The method 'cleanOldDataDirectories(File)' has a cyclomatic complexity of 12. 557606
NPathComplexity The method 'cleanOldDataDirectories(File)' has an NPath complexity of 226, current threshold is 200 557606
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 573
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 589
AvoidReassigningParameters Avoid reassigning parameters such as 'processName' 623
TooManyMethods This class has too many methods, consider refactoring it. 657981

de/softwareforge/testing/postgres/embedded/EmbeddedUtil.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 37229

de/softwareforge/testing/postgres/embedded/FlywayPreparer.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5556

de/softwareforge/testing/postgres/embedded/ProcessOutputLogger.java

Rule Violation Line
ProperLogger Logger should be defined private static final and have the correct class 41

de/softwareforge/testing/postgres/embedded/TarXzCompressedBinaryManager.java

Rule Violation Line
CognitiveComplexity The method 'extractTxz(InputStream, String)' has a cognitive complexity of 20, current threshold is 15 159224
CyclomaticComplexity The method 'extractTxz(InputStream, String)' has a cyclomatic complexity of 13. 159224
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 167
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 178
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 187208
CollapsibleIfStatements These nested if statements could be combined 216218

de/softwareforge/testing/postgres/embedded/ZonkyIOPostgresLocator.java

Rule Violation Line
UseTryWithResources Consider using a try-with-resources statement instead of explicitly closing the resource 139143

de/softwareforge/testing/postgres/junit5/EmbeddedPgExtension.java

Rule Violation Line
TestClassWithoutTestCases The class 'TestingContext' might be a test class, but it contains no test cases. 240268

Files

de/softwareforge/testing/postgres/embedded/EmbeddedPostgres.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 5 76982
TooManyFields Too many fields 5 76982
CloseResource Ensure that resources like this EmbeddedPostgres object are closed after use 5 337
CognitiveComplexity The method 'cleanOldDataDirectories(File)' has a cognitive complexity of 23, current threshold is 15 5 557606
CyclomaticComplexity The method 'cleanOldDataDirectories(File)' has a cyclomatic complexity of 12. 5 557606
NPathComplexity The method 'cleanOldDataDirectories(File)' has an NPath complexity of 226, current threshold is 200 5 557606
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 573
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 589
AvoidReassigningParameters Avoid reassigning parameters such as 'processName' 5 623
TooManyMethods This class has too many methods, consider refactoring it. 5 657981

de/softwareforge/testing/postgres/embedded/EmbeddedUtil.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 5 37229

de/softwareforge/testing/postgres/embedded/FlywayPreparer.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5 5556

de/softwareforge/testing/postgres/embedded/ProcessOutputLogger.java

Rule Violation Priority Line
ProperLogger Logger should be defined private static final and have the correct class 5 41

de/softwareforge/testing/postgres/embedded/TarXzCompressedBinaryManager.java

Rule Violation Priority Line
CognitiveComplexity The method 'extractTxz(InputStream, String)' has a cognitive complexity of 20, current threshold is 15 5 159224
CyclomaticComplexity The method 'extractTxz(InputStream, String)' has a cyclomatic complexity of 13. 5 159224
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 167
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 178
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 187208
CollapsibleIfStatements These nested if statements could be combined 5 216218

de/softwareforge/testing/postgres/embedded/ZonkyIOPostgresLocator.java

Rule Violation Priority Line
UseTryWithResources Consider using a try-with-resources statement instead of explicitly closing the resource 5 139143

de/softwareforge/testing/postgres/junit5/EmbeddedPgExtension.java

Rule Violation Priority Line
TestClassWithoutTestCases The class 'TestingContext' might be a test class, but it contains no test cases. 5 240268

Suppressed Violations

Filename Rule message Suppression type Reason
de/softwareforge/testing/postgres/embedded/EmbeddedPostgres.java Logger should be defined private static final and have the correct class annotation -
de/softwareforge/testing/postgres/embedded/TarXzCompressedBinaryManager.java Ensure that resources like this AsynchronousFileChannel object are closed after use nopmd -