PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.java

Rule Violation Line
CyclomaticComplexity The method 'validateOptions(CallingContext, CommandLine)' has a cyclomatic complexity of 10. 104132
NPathComplexity The method 'execute()' has an NPath complexity of 240, current threshold is 200 154213

gov/nist/secauto/metaschema/cli/commands/AbstractValidateContentCommand.java

Rule Violation Line
CognitiveComplexity The method 'validateOptions(CallingContext, CommandLine)' has a cognitive complexity of 18, current threshold is 15 118166
CyclomaticComplexity The method 'validateOptions(CallingContext, CommandLine)' has a cyclomatic complexity of 18. 118166
NPathComplexity The method 'validateOptions(CallingContext, CommandLine)' has an NPath complexity of 240, current threshold is 200 118166
CognitiveComplexity The method 'execute()' has a cognitive complexity of 24, current threshold is 15 184274
CyclomaticComplexity The method 'execute()' has a cyclomatic complexity of 17. 184274
NPathComplexity The method 'execute()' has an NPath complexity of 3072, current threshold is 200 184274

gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java

Rule Violation Line
CyclomaticComplexity The method 'validateOptions(CallingContext, CommandLine)' has a cyclomatic complexity of 11. 129159
CognitiveComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 28, current threshold is 15 170241
CyclomaticComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 15. 170241
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 720, current threshold is 200 170241

Files

gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.java

Rule Violation Priority Line
CyclomaticComplexity The method 'validateOptions(CallingContext, CommandLine)' has a cyclomatic complexity of 10. 3 104132
NPathComplexity The method 'execute()' has an NPath complexity of 240, current threshold is 200 3 154213

gov/nist/secauto/metaschema/cli/commands/AbstractValidateContentCommand.java

Rule Violation Priority Line
CognitiveComplexity The method 'validateOptions(CallingContext, CommandLine)' has a cognitive complexity of 18, current threshold is 15 3 118166
CyclomaticComplexity The method 'validateOptions(CallingContext, CommandLine)' has a cyclomatic complexity of 18. 3 118166
NPathComplexity The method 'validateOptions(CallingContext, CommandLine)' has an NPath complexity of 240, current threshold is 200 3 118166
CognitiveComplexity The method 'execute()' has a cognitive complexity of 24, current threshold is 15 3 184274
CyclomaticComplexity The method 'execute()' has a cyclomatic complexity of 17. 3 184274
NPathComplexity The method 'execute()' has an NPath complexity of 3072, current threshold is 200 3 184274

gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java

Rule Violation Priority Line
CyclomaticComplexity The method 'validateOptions(CallingContext, CommandLine)' has a cyclomatic complexity of 11. 3 129159
CognitiveComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 28, current threshold is 15 3 170241
CyclomaticComplexity The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 15. 3 170241
NPathComplexity The method 'executeCommand(CallingContext, CommandLine)' has an NPath complexity of 720, current threshold is 200 3 170241

Suppressed Violations

Filename Rule message Suppression type Reason
gov/nist/secauto/metaschema/cli/CLI.java Avoid short class names like CLI annotation -
gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.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/commands/AbstractConvertSubcommand.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/commands/AbstractConvertSubcommand.java A method should have only one exit point, and that should be the last statement in the method nopmd readability
gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.java A method should have only one exit point, and that should be the last statement in the method nopmd readability
gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.java New exception is thrown in catch block, original stack trace may be lost annotation -
gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.java The method 'execute()' has a cognitive complexity of 24, current threshold is 15 annotation -
gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.java The method 'execute()' has a cyclomatic complexity of 13. annotation -
gov/nist/secauto/metaschema/cli/commands/AbstractValidateContentCommand.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/commands/AbstractValidateContentCommand.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/commands/AbstractValidateContentCommand.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/commands/AbstractValidateContentCommand.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/commands/AbstractValidateContentCommand.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/commands/AbstractValidateContentCommand.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/commands/AbstractValidateContentCommand.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/commands/AbstractValidateContentCommand.java New exception is thrown in catch block, original stack trace may be lost annotation -
gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java A method should have only one exit point, and that should be the last statement in the method nopmd readability
gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java A method should have only one exit point, and that should be the last statement in the method nopmd readability
gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java A method should have only one exit point, and that should be the last statement in the method nopmd readability
gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java A method should have only one exit point, and that should be the last statement in the method nopmd readability
gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java New exception is thrown in catch block, original stack trace may be lost annotation -
gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java Ensure that resources like this OutputStream object are closed after use annotation -
gov/nist/secauto/metaschema/cli/commands/ValidateModuleCommand.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/commands/ValidateModuleCommand.java A method should have only one exit point, and that should be the last statement in the method annotation -