PMD Results
The following document contains the results of PMD 7.14.0.
Violations By Priority
Priority 3
org/forgerock/json/schema/validator/helpers/FormatHelper.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'format'. | 40 |
org/forgerock/json/schema/validator/helpers/MaximumHelper.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 84–86 |
org/forgerock/json/schema/validator/helpers/MinimumHelper.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 85–87 |
org/forgerock/json/schema/validator/validators/BooleanTypeValidator.java
Rule | Violation | Line |
---|---|---|
UnnecessaryReturn | Unnecessary return statement | 58 |
org/forgerock/json/schema/validator/validators/IntegerTypeValidator.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 116–118 |
org/forgerock/json/schema/validator/validators/NumberTypeValidator.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 117–119 |
org/forgerock/json/schema/validator/validators/ObjectTypeValidator.java
Rule | Violation | Line |
---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 173–176 |
EmptyControlStatement | Empty if statement | 195–203 |
CollapsibleIfStatements | This if statement could be combined with its parent | 229–240 |
org/forgerock/json/schema/validator/validators/SimpleValidator.java
Rule | Violation | Line |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'validate': the method is declared in an interface type | 41 |
org/forgerock/json/schema/validator/validators/StringTypeValidator.java
Rule | Violation | Line |
---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 110–112 |
CollapsibleIfStatements | This if statement could be combined with its parent | 133–135 |
org/forgerock/json/schema/validator/validators/UnionTypeValidator.java
Rule | Violation | Line |
---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 83–85 |
Priority 4
org/forgerock/json/schema/validator/validators/ArrayTypeValidator.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 160 |
UselessParentheses | Useless parentheses. | 163 |
org/forgerock/json/schema/validator/validators/ObjectTypeValidator.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 153 |
Files
org/forgerock/json/schema/validator/helpers/FormatHelper.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'format'. | 3 | 40 |
org/forgerock/json/schema/validator/helpers/MaximumHelper.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 84–86 |
org/forgerock/json/schema/validator/helpers/MinimumHelper.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 85–87 |
org/forgerock/json/schema/validator/validators/ArrayTypeValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 160 |
UselessParentheses | Useless parentheses. | 4 | 163 |
org/forgerock/json/schema/validator/validators/BooleanTypeValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryReturn | Unnecessary return statement | 3 | 58 |
org/forgerock/json/schema/validator/validators/IntegerTypeValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 116–118 |
org/forgerock/json/schema/validator/validators/NumberTypeValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 117–119 |
org/forgerock/json/schema/validator/validators/ObjectTypeValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 153 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 173–176 |
EmptyControlStatement | Empty if statement | 3 | 195–203 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 229–240 |
org/forgerock/json/schema/validator/validators/SimpleValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'validate': the method is declared in an interface type | 3 | 41 |
org/forgerock/json/schema/validator/validators/StringTypeValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 3 | 110–112 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 133–135 |
org/forgerock/json/schema/validator/validators/UnionTypeValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 3 | 83–85 |