PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

gov/nist/secauto/metaschema/cli/processor/AbstractExitStatus.java

Rule Violation Line
CognitiveComplexity The method 'generateMessage(boolean)' has a cognitive complexity of 16, current threshold is 15 86–114
CyclomaticComplexity The method 'generateMessage(boolean)' has a cyclomatic complexity of 13. 86–114

gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java

Rule Violation Line
CognitiveComplexity The constructor 'CallingContext(List)' has a cognitive complexity of 23, current threshold is 15 256–312
CognitiveComplexity The method 'buildHelpCliSyntax()' has a cognitive complexity of 25, current threshold is 15 498–574
CyclomaticComplexity The method 'buildHelpCliSyntax()' has a cyclomatic complexity of 11. 498–574
NPathComplexity The method 'buildHelpCliSyntax()' has an NPath complexity of 240, current threshold is 200 498–574
CloseResource Ensure that resources like this AnsiPrintStream object are closed after use 581

gov/nist/secauto/metaschema/cli/processor/Version.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 39–40
UncommentedEmptyConstructor Document empty constructor 39–40

Files

gov/nist/secauto/metaschema/cli/processor/AbstractExitStatus.java

Rule Violation Priority Line
CognitiveComplexity The method 'generateMessage(boolean)' has a cognitive complexity of 16, current threshold is 15 3 86–114
CyclomaticComplexity The method 'generateMessage(boolean)' has a cyclomatic complexity of 13. 3 86–114

gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java

Rule Violation Priority Line
CognitiveComplexity The constructor 'CallingContext(List)' has a cognitive complexity of 23, current threshold is 15 3 256–312
CognitiveComplexity The method 'buildHelpCliSyntax()' has a cognitive complexity of 25, current threshold is 15 3 498–574
CyclomaticComplexity The method 'buildHelpCliSyntax()' has a cyclomatic complexity of 11. 3 498–574
NPathComplexity The method 'buildHelpCliSyntax()' has an NPath complexity of 240, current threshold is 200 3 498–574
CloseResource Ensure that resources like this AnsiPrintStream object are closed after use 3 581

gov/nist/secauto/metaschema/cli/processor/Version.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 39–40
UncommentedEmptyConstructor Document empty constructor 3 39–40

Suppressed Violations

Filename Rule message Suppression type Reason
gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java A method should have only one exit point, and that should be the last statement in the method annotation -
gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java A method should have only one exit point, and that should be the last statement in the method annotation -
gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block annotation -
gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java Ensure that resources like this LoggerContext object are closed after use nopmd not closable here
gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java Ensure that resources like this PrintStream object are closed after use nopmd - not owner
gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java Ensure that resources like this AnsiPrintStream object are closed after use nopmd not owned