Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.19.0.

Violations By Priority

Priority 3

dev/metaschema/modules/sarif/SarifValidationHandler.java

Rule Violation Line
GodClass Possible God Class (WMC=67, ATFD=152, TCC=5.000%) 84
UnnecessaryWarningSuppression Unnecessary @SuppressWarnings annotation 175
LooseCoupling Avoid using implementation types like 'ConcurrentHashMap'; use the interface instead 178
UnnecessaryWarningSuppression Unnecessary @SuppressWarnings annotation 255
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 272274
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 306
EnumComparison Enums should be compared using == 392
EnumComparison Enums should be compared using == 399
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 499501
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 503505
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 644659
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 666683
UnnecessaryWarningSuppression Unnecessary @SuppressWarnings annotation 820
CognitiveComplexity The method 'generate()' has a cognitive complexity of 17, current threshold is 15 911
CyclomaticComplexity The method 'generate()' has a cyclomatic complexity of 12. 911
NPathComplexity The method 'generate()' has an NPath complexity of 576, current threshold is 200 911
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 969972

Files

dev/metaschema/modules/sarif/SarifValidationHandler.java

Rule Violation Priority Line
GodClass Possible God Class (WMC=67, ATFD=152, TCC=5.000%) 3 84
UnnecessaryWarningSuppression Unnecessary @SuppressWarnings annotation 3 175
LooseCoupling Avoid using implementation types like 'ConcurrentHashMap'; use the interface instead 3 178
UnnecessaryWarningSuppression Unnecessary @SuppressWarnings annotation 3 255
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 272274
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 306
EnumComparison Enums should be compared using == 3 392
EnumComparison Enums should be compared using == 3 399
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 499501
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 503505
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 644659
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 666683
UnnecessaryWarningSuppression Unnecessary @SuppressWarnings annotation 3 820
CognitiveComplexity The method 'generate()' has a cognitive complexity of 17, current threshold is 15 3 911
CyclomaticComplexity The method 'generate()' has a cyclomatic complexity of 12. 3 911
NPathComplexity The method 'generate()' has an NPath complexity of 576, current threshold is 200 3 911
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 969972

Suppressed Violations

Filename Rule message Suppression type Reason
dev/metaschema/modules/sarif/SarifValidationHandler.java The method 'enrichWithTiming(Run)' has a cognitive complexity of 19, current threshold is 15 @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java A value of 67 may denote a high amount of coupling within the class (threshold: 20) @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java Avoid instantiating new objects inside loops @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java Avoid instantiating new objects inside loops @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java Avoid instantiating new objects inside loops @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java Avoid instantiating new objects inside loops @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java Avoid instantiating new objects inside loops @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java Avoid instantiating new objects inside loops @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java Avoid instantiating new objects inside loops @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java Avoid instantiating new objects inside loops @suppresswarnings
dev/metaschema/modules/sarif/SarifValidationHandler.java Avoid instantiating new objects inside loops @suppresswarnings