Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.10.0.

Violations By Priority

Priority 3

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

Rule Violation Line
CognitiveComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 15, current threshold is 15 113
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 1024, current threshold is 200 113
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 243256
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 257

Files

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

Rule Violation Priority Line
CognitiveComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 15, current threshold is 15 3 113
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 1024, current threshold is 200 3 113
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 243256
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 257

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/CLI.java If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 17. @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 Avoid unused method parameters such as 'metapath'. @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java A value of 29 may denote a high amount of coupling within the class (threshold: 20) @suppresswarnings
gov/nist/secauto/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 12. @suppresswarnings