Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.4.0.

Violations By Priority

Priority 3

gov/nist/secauto/oscal/tools/cli/core/CLI.java

Rule Violation Line
DoubleBraceInitialization Double-brace initialization should be avoided 4854

gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java

Rule Violation Line
NcssCount The method 'executeCommand(CallingContext, CommandLine)' has a NCSS line count of 70. 161
CognitiveComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 38, current threshold is 15 161
CyclomaticComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 21. 161
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 18432, current threshold is 200 161

gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java

Rule Violation Line
CouplingBetweenObjects High amount of different objects as members denotes a high coupling 6402
CognitiveComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 34, current threshold is 15 145
CyclomaticComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 17. 145
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 1728, current threshold is 200 145
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 210
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 245
UnusedFormalParameter Avoid unused method parameters such as 'metapath'. 253

Files

gov/nist/secauto/oscal/tools/cli/core/CLI.java

Rule Violation Priority Line
DoubleBraceInitialization Double-brace initialization should be avoided 3 4854

gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java

Rule Violation Priority Line
NcssCount The method 'executeCommand(CallingContext, CommandLine)' has a NCSS line count of 70. 3 161
CognitiveComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 38, current threshold is 15 3 161
CyclomaticComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 21. 3 161
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 18432, current threshold is 200 3 161

gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java

Rule Violation Priority Line
CouplingBetweenObjects High amount of different objects as members denotes a high coupling 3 6402
CognitiveComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 34, current threshold is 15 3 145
CyclomaticComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 17. 3 145
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 1728, current threshold is 200 3 145
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 210
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 245
UnusedFormalParameter Avoid unused method parameters such as 'metapath'. 3 253

Suppressed Violations

Filename Rule message Suppression type Reason
gov/nist/secauto/oscal/tools/cli/core/CLI.java Avoid short class names like CLI @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractRenderCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractRenderCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractRenderCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java The method 'validateOptions(CallingContext, CommandLine)' has a cyclomatic complexity of 13. @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java Ensure that resources like this PrintStream object are closed after use @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings