Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.5.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 65
CyclomaticComplexity The method 'generateMessage(boolean)' has a cyclomatic complexity of 13. 65

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

Rule Violation Line
CouplingBetweenObjects High amount of different objects as members denotes a high coupling 6601
GodClass Possible God Class (WMC=48, ATFD=26, TCC=1.282%) 229
CognitiveComplexity The constructor 'CallingContext(List<String>)' has a cognitive complexity of 18, current threshold is 15 238
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 64, but has at least 97 characters appended. 463
CognitiveComplexity The method 'buildHelpCliSyntax()' has a cognitive complexity of 25, current threshold is 15 497
CyclomaticComplexity The method 'buildHelpCliSyntax()' has a cyclomatic complexity of 11. 497
NPathComplexity The method 'buildHelpCliSyntax()' has an NPath complexity of 240, current threshold is 200 497
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 556
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 557
CloseResource Ensure that resources like this AnsiPrintStream object are closed after use 580

gov/nist/secauto/metaschema/cli/processor/command/ICommand.java

Rule Violation Line
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `ExtraArgument::isRequired` 34

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

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

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 65
CyclomaticComplexity The method 'generateMessage(boolean)' has a cyclomatic complexity of 13. 3 65

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

Rule Violation Priority Line
CouplingBetweenObjects High amount of different objects as members denotes a high coupling 3 6601
GodClass Possible God Class (WMC=48, ATFD=26, TCC=1.282%) 3 229
CognitiveComplexity The constructor 'CallingContext(List<String>)' has a cognitive complexity of 18, current threshold is 15 3 238
InsufficientStringBufferDeclaration StringBuilder has been initialized with size 64, but has at least 97 characters appended. 3 463
CognitiveComplexity The method 'buildHelpCliSyntax()' has a cognitive complexity of 25, current threshold is 15 3 497
CyclomaticComplexity The method 'buildHelpCliSyntax()' has a cyclomatic complexity of 11. 3 497
NPathComplexity The method 'buildHelpCliSyntax()' has an NPath complexity of 240, current threshold is 200 3 497
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 556
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 3 557
CloseResource Ensure that resources like this AnsiPrintStream object are closed after use 3 580

gov/nist/secauto/metaschema/cli/processor/command/ICommand.java

Rule Violation Priority Line
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `ExtraArgument::isRequired` 3 34

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

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

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 @suppresswarnings
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 @suppresswarnings
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 @suppresswarnings
gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block @suppresswarnings
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 PrintWriter object are closed after use //nopmd not owned