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. | 76–982 |
TooManyFields | Too many fields | 76–982 |
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 | 557–606 |
CyclomaticComplexity | The method 'cleanOldDataDirectories(File)' has a cyclomatic complexity of 12. | 557–606 |
NPathComplexity | The method 'cleanOldDataDirectories(File)' has an NPath complexity of 226, current threshold is 200 | 557–606 |
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. | 657–981 |
de/softwareforge/testing/postgres/embedded/EmbeddedUtil.java
Rule | Violation | Line |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 37–229 |
de/softwareforge/testing/postgres/embedded/FlywayPreparer.java
Rule | Violation | Line |
---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 55–56 |
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 | 159–224 |
CyclomaticComplexity | The method 'extractTxz(InputStream, String)' has a cyclomatic complexity of 13. | 159–224 |
AvoidInstantiatingObjectsInLoops | Avoid instantiating new objects inside loops | 167 |
AvoidInstantiatingObjectsInLoops | Avoid instantiating new objects inside loops | 178 |
AvoidInstantiatingObjectsInLoops | Avoid instantiating new objects inside loops | 187–208 |
CollapsibleIfStatements | These nested if statements could be combined | 216–218 |
de/softwareforge/testing/postgres/embedded/ZonkyIOPostgresLocator.java
Rule | Violation | Line |
---|---|---|
UseTryWithResources | Consider using a try-with-resources statement instead of explicitly closing the resource | 139–143 |
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. | 240–268 |
Files
de/softwareforge/testing/postgres/embedded/EmbeddedPostgres.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 5 | 76–982 |
TooManyFields | Too many fields | 5 | 76–982 |
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 | 557–606 |
CyclomaticComplexity | The method 'cleanOldDataDirectories(File)' has a cyclomatic complexity of 12. | 5 | 557–606 |
NPathComplexity | The method 'cleanOldDataDirectories(File)' has an NPath complexity of 226, current threshold is 200 | 5 | 557–606 |
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 | 657–981 |
de/softwareforge/testing/postgres/embedded/EmbeddedUtil.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 5 | 37–229 |
de/softwareforge/testing/postgres/embedded/FlywayPreparer.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 5 | 55–56 |
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 | 159–224 |
CyclomaticComplexity | The method 'extractTxz(InputStream, String)' has a cyclomatic complexity of 13. | 5 | 159–224 |
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 | 187–208 |
CollapsibleIfStatements | These nested if statements could be combined | 5 | 216–218 |
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 | 139–143 |
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 | 240–268 |
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 | - |