Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.5.0.

Violations By Priority

Priority 3

gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java

Rule Violation Line
CouplingBetweenObjects High amount of different objects as members denotes a high coupling 6577
UseDiamondOperator Explicit type arguments can be replaced by a diamond: `new SimpleFileVisitor<>()` 170
MethodReturnsInternalArray Returning 'OPEN_OPTIONS_TRUNCATE' may expose an internal array. 260
NcssCount The method 'generateScenario(TestScenario, URI, Lazy<Path>)' has a NCSS line count of 62. 263
CognitiveComplexity The method 'generateScenario(TestScenario, URI, Lazy<Path>)' has a cognitive complexity of 19, current threshold is 15 263
NPathComplexity The method 'generateScenario(TestScenario, URI, Lazy<Path>)' has an NPath complexity of 1152, current threshold is 200 263
PrematureDeclaration Declaration of 'schemaPath' can be moved closer to its usages 300
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 361
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 455
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 475
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 491

gov/nist/secauto/metaschema/model/testing/xml/xmlbeans/handler/GenerationResultType.java

Rule Violation Line
UnnecessaryBoxing Unnecessary explicit unboxing 23

gov/nist/secauto/metaschema/model/testing/xml/xmlbeans/handler/ValidationResultType.java

Rule Violation Line
UnnecessaryBoxing Unnecessary explicit unboxing 23

Files

gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java

Rule Violation Priority Line
CouplingBetweenObjects High amount of different objects as members denotes a high coupling 3 6577
UseDiamondOperator Explicit type arguments can be replaced by a diamond: `new SimpleFileVisitor<>()` 3 170
MethodReturnsInternalArray Returning 'OPEN_OPTIONS_TRUNCATE' may expose an internal array. 3 260
NcssCount The method 'generateScenario(TestScenario, URI, Lazy<Path>)' has a NCSS line count of 62. 3 263
CognitiveComplexity The method 'generateScenario(TestScenario, URI, Lazy<Path>)' has a cognitive complexity of 19, current threshold is 15 3 263
NPathComplexity The method 'generateScenario(TestScenario, URI, Lazy<Path>)' has an NPath complexity of 1152, current threshold is 200 3 263
PrematureDeclaration Declaration of 'schemaPath' can be moved closer to its usages 3 300
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 361
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 455
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 475
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 491

gov/nist/secauto/metaschema/model/testing/xml/xmlbeans/handler/GenerationResultType.java

Rule Violation Priority Line
UnnecessaryBoxing Unnecessary explicit unboxing 3 23

gov/nist/secauto/metaschema/model/testing/xml/xmlbeans/handler/ValidationResultType.java

Rule Violation Priority Line
UnnecessaryBoxing Unnecessary explicit unboxing 3 23

Suppressed Violations

Filename Rule message Suppression type Reason
gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java Thrown exception does not preserve the stack trace of exception 'ex' on all code paths //nopmd - cause is relevant, exception is not
gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java Thrown exception does not preserve the stack trace of exception 'ex' on all code paths //nopmd - cause is relevant, exception is not
gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java Thrown exception does not preserve the stack trace of exception 'ex' on all code paths //nopmd - cause is relevant, exception is not
gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java Thrown exception does not preserve the stack trace of exception 'ex' on all code paths //nopmd - cause is relevant, exception is not
gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block //nopmd - intentional
gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block //nopmd - intentional
gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java To be compliant to J2EE, a webapp should not use any thread. //nopmd - this is not a webapp