Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.10.0.

Violations By Priority

Priority 3

dev/metaschema/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 112
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 1024, current threshold is 200 112
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 242255
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 256

Files

dev/metaschema/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 112
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 1024, current threshold is 200 3 112
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 242255
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 256

Suppressed Violations

Filename Rule message Suppression type Reason
dev/metaschema/oscal/tools/cli/core/CLI.java Avoid short class names like CLI @suppresswarnings
dev/metaschema/oscal/tools/cli/core/CLI.java If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation @suppresswarnings
dev/metaschema/oscal/tools/cli/core/commands/AbstractResolveCommand.java The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 17. @suppresswarnings
dev/metaschema/oscal/tools/cli/core/commands/AbstractResolveCommand.java Ensure that resources like this PrintStream object are closed after use @suppresswarnings
dev/metaschema/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java Avoid unused method parameters such as 'metapath'. @suppresswarnings
dev/metaschema/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block @suppresswarnings
dev/metaschema/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block @suppresswarnings
dev/metaschema/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java A value of 29 may denote a high amount of coupling within the class (threshold: 20) @suppresswarnings
dev/metaschema/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 12. @suppresswarnings