PMD Results
The following document contains the results of PMD 7.19.0.
Violations By Priority
Priority 3
gov/nist/secauto/metaschema/cli/CLI.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 27 |
gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.OnlyOneReturn" in @SuppressWarnings annotation | 106 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CognitiveComplexity" in @SuppressWarnings annotation | 107 |
gov/nist/secauto/metaschema/cli/commands/AbstractValidateContentCommand.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 199 |
gov/nist/secauto/metaschema/cli/commands/GenerateDiagramCommand.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 95–98 |
gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java
| Rule | Violation | Line |
|---|---|---|
| EnumComparison | Enums should be compared using == | 125 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CloseResource" in @SuppressWarnings annotation | 151 |
gov/nist/secauto/metaschema/cli/commands/MetaschemaCommands.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 298 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 351 |
gov/nist/secauto/metaschema/cli/commands/metapath/EvaluateMetapathCommand.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.OnlyOneReturn" in @SuppressWarnings annotation | 114 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.NPathComplexity" in @SuppressWarnings annotation | 116 |
gov/nist/secauto/metaschema/cli/commands/metapath/ListFunctionsSubcommand.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.OnlyOneReturn" in @SuppressWarnings annotation | 67 |
gov/nist/secauto/metaschema/cli/util/LoggingValidationHandler.java
| Rule | Violation | Line |
|---|---|---|
| CyclomaticComplexity | The method 'getLogger(IValidationFinding)' has a cyclomatic complexity of 10. | 150 |
Files
gov/nist/secauto/metaschema/cli/CLI.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 27 |
gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.OnlyOneReturn" in @SuppressWarnings annotation | 3 | 106 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CognitiveComplexity" in @SuppressWarnings annotation | 3 | 107 |
gov/nist/secauto/metaschema/cli/commands/AbstractValidateContentCommand.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 199 |
gov/nist/secauto/metaschema/cli/commands/GenerateDiagramCommand.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 95–98 |
gov/nist/secauto/metaschema/cli/commands/GenerateSchemaCommand.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EnumComparison | Enums should be compared using == | 3 | 125 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CloseResource" in @SuppressWarnings annotation | 3 | 151 |
gov/nist/secauto/metaschema/cli/commands/MetaschemaCommands.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 298 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 351 |
gov/nist/secauto/metaschema/cli/commands/metapath/EvaluateMetapathCommand.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.OnlyOneReturn" in @SuppressWarnings annotation | 3 | 114 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.NPathComplexity" in @SuppressWarnings annotation | 3 | 116 |
gov/nist/secauto/metaschema/cli/commands/metapath/ListFunctionsSubcommand.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.OnlyOneReturn" in @SuppressWarnings annotation | 3 | 67 |
gov/nist/secauto/metaschema/cli/util/LoggingValidationHandler.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CyclomaticComplexity | The method 'getLogger(IValidationFinding)' has a cyclomatic complexity of 10. | 3 | 150 |
Suppressed Violations
| Filename | Rule message | Suppression type | Reason |
|---|---|---|---|
| gov/nist/secauto/metaschema/cli/CLI.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/AbstractConvertSubcommand.java | The method 'execute()' has a cyclomatic complexity of 10. | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/AbstractValidateContentCommand.java | The method 'validate(URI, Format, CommandLine, IBindingContext)' has a cyclomatic complexity of 15. | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/MetaschemaCommands.java | Possible God Class (WMC=57, ATFD=21, TCC=0.000%) | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/metapath/EvaluateMetapathCommand.java | Avoid unused method parameters such as 'callingContext'. | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/metapath/EvaluateMetapathCommand.java | The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 20, current threshold is 15 | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/metapath/EvaluateMetapathCommand.java | The method 'executeCommand(CallingContext, CommandLine)' has a cyclomatic complexity of 23. | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/metapath/EvaluateMetapathCommand.java | Avoid catching Exception in try-catch block | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/metapath/EvaluateMetapathCommand.java | Avoid catching RuntimeException in try-catch block | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/metapath/ListFunctionsSubcommand.java | The method 'executeCommand(CallingContext, CommandLine)' has a cognitive complexity of 22, current threshold is 15 | @suppresswarnings | |
| gov/nist/secauto/metaschema/cli/commands/metapath/ListFunctionsSubcommand.java | Avoid instantiating new objects inside loops | @suppresswarnings |
