PMD Results
The following document contains the results of PMD 7.23.0.
Violations By Priority
Priority 3
org/apache/commons/numbers/fraction/BigFraction.java
| Rule |
Violation |
Line |
| CyclomaticComplexity |
The class 'BigFraction' has a total cyclomatic complexity of 155 (highest 20). |
36 |
| CognitiveComplexity |
The method 'from(double, double, int, int)' has a cognitive complexity of 21, current threshold is 20 |
140 |
| CyclomaticComplexity |
The method 'from(double, double, int, int)' has a cyclomatic complexity of 20. |
140 |
org/apache/commons/numbers/fraction/Fraction.java
| Rule |
Violation |
Line |
| CyclomaticComplexity |
The class 'Fraction' has a total cyclomatic complexity of 111 (highest 21). |
33 |
| CognitiveComplexity |
The constructor 'Fraction(double, double, int, int)' has a cognitive complexity of 27, current threshold is 20 |
158 |
| CyclomaticComplexity |
The constructor 'Fraction(double, double, int, int)' has a cyclomatic complexity of 21. |
158 |
| AvoidDeeplyNestedIfStmts |
Deeply nested if..then statements are hard to read |
181–185 |
Files
org/apache/commons/numbers/fraction/BigFraction.java
| Rule |
Violation |
Priority |
Line |
| CyclomaticComplexity |
The class 'BigFraction' has a total cyclomatic complexity of 155 (highest 20). |
3 |
36 |
| CognitiveComplexity |
The method 'from(double, double, int, int)' has a cognitive complexity of 21, current threshold is 20 |
3 |
140 |
| CyclomaticComplexity |
The method 'from(double, double, int, int)' has a cyclomatic complexity of 20. |
3 |
140 |
org/apache/commons/numbers/fraction/Fraction.java
| Rule |
Violation |
Priority |
Line |
| CyclomaticComplexity |
The class 'Fraction' has a total cyclomatic complexity of 111 (highest 21). |
3 |
33 |
| CognitiveComplexity |
The constructor 'Fraction(double, double, int, int)' has a cognitive complexity of 27, current threshold is 20 |
3 |
158 |
| CyclomaticComplexity |
The constructor 'Fraction(double, double, int, int)' has a cyclomatic complexity of 21. |
3 |
158 |
| AvoidDeeplyNestedIfStmts |
Deeply nested if..then statements are hard to read |
3 |
181–185 |
|