PMD Results
The following document contains the results of PMD 6.49.0.
Violations By Priority
Priority 3
org/apache/commons/numbers/complex/Complex.java
Rule |
Violation |
Line |
ExcessivePublicCount |
This class has a bunch of public methods and attributes |
18–3697 |
CyclomaticComplexity |
The class 'Complex' has a total cyclomatic complexity of 293 (highest 25). |
64–3697 |
CognitiveComplexity |
The method 'multiply(double, double, double, double)' has a cognitive complexity of 16, current threshold is 15 |
889–953 |
CognitiveComplexity |
The method 'exp()' has a cognitive complexity of 18, current threshold is 15 |
1248–1298 |
CognitiveComplexity |
The method 'log(DoubleUnaryOperator, double, double, ComplexConstructor)' has a cognitive complexity of 20, current threshold is 15 |
1393–1472 |
CognitiveComplexity |
The method 'sqrt(double, double)' has a cognitive complexity of 32, current threshold is 15 |
1597–1688 |
CognitiveComplexity |
The method 'asin(double, double, ComplexConstructor)' has a cognitive complexity of 84, current threshold is 15 |
1834–1950 |
CyclomaticComplexity |
The method 'asin(double, double, ComplexConstructor)' has a cyclomatic complexity of 22. |
1834–1950 |
CyclomaticComplexity |
The method 'acos(double, double, ComplexConstructor)' has a cyclomatic complexity of 25. |
2029–2143 |
CognitiveComplexity |
The method 'acos(double, double, ComplexConstructor)' has a cognitive complexity of 92, current threshold is 15 |
2029–2143 |
NPathComplexity |
The method 'acos(double, double, ComplexConstructor)' has an NPath complexity of 288, current threshold is 200 |
2029–2143 |
NPathComplexity |
The method 'tanh(double, double, ComplexConstructor)' has an NPath complexity of 216, current threshold is 200 |
2459–2552 |
CognitiveComplexity |
The method 'tanh(double, double, ComplexConstructor)' has a cognitive complexity of 21, current threshold is 15 |
2459–2552 |
CyclomaticComplexity |
The method 'atanh(double, double, ComplexConstructor)' has a cyclomatic complexity of 23. |
2732–2896 |
CognitiveComplexity |
The method 'atanh(double, double, ComplexConstructor)' has a cognitive complexity of 66, current threshold is 15 |
2732–2896 |
Files
org/apache/commons/numbers/complex/Complex.java
Rule |
Violation |
Priority |
Line |
ExcessivePublicCount |
This class has a bunch of public methods and attributes |
3 |
18–3697 |
CyclomaticComplexity |
The class 'Complex' has a total cyclomatic complexity of 293 (highest 25). |
3 |
64–3697 |
CognitiveComplexity |
The method 'multiply(double, double, double, double)' has a cognitive complexity of 16, current threshold is 15 |
3 |
889–953 |
CognitiveComplexity |
The method 'exp()' has a cognitive complexity of 18, current threshold is 15 |
3 |
1248–1298 |
CognitiveComplexity |
The method 'log(DoubleUnaryOperator, double, double, ComplexConstructor)' has a cognitive complexity of 20, current threshold is 15 |
3 |
1393–1472 |
CognitiveComplexity |
The method 'sqrt(double, double)' has a cognitive complexity of 32, current threshold is 15 |
3 |
1597–1688 |
CognitiveComplexity |
The method 'asin(double, double, ComplexConstructor)' has a cognitive complexity of 84, current threshold is 15 |
3 |
1834–1950 |
CyclomaticComplexity |
The method 'asin(double, double, ComplexConstructor)' has a cyclomatic complexity of 22. |
3 |
1834–1950 |
CyclomaticComplexity |
The method 'acos(double, double, ComplexConstructor)' has a cyclomatic complexity of 25. |
3 |
2029–2143 |
CognitiveComplexity |
The method 'acos(double, double, ComplexConstructor)' has a cognitive complexity of 92, current threshold is 15 |
3 |
2029–2143 |
NPathComplexity |
The method 'acos(double, double, ComplexConstructor)' has an NPath complexity of 288, current threshold is 200 |
3 |
2029–2143 |
NPathComplexity |
The method 'tanh(double, double, ComplexConstructor)' has an NPath complexity of 216, current threshold is 200 |
3 |
2459–2552 |
CognitiveComplexity |
The method 'tanh(double, double, ComplexConstructor)' has a cognitive complexity of 21, current threshold is 15 |
3 |
2459–2552 |
CyclomaticComplexity |
The method 'atanh(double, double, ComplexConstructor)' has a cyclomatic complexity of 23. |
3 |
2732–2896 |
CognitiveComplexity |
The method 'atanh(double, double, ComplexConstructor)' has a cognitive complexity of 66, current threshold is 15 |
3 |
2732–2896 |
Suppressed Violations
Filename |
Rule message |
Suppression type |
Reason |
org/apache/commons/numbers/complex/Complex.java |
A catch statement that catches an exception only to wrap it in a new instance of the same type of exception and throw it should be avoided |
annotation |
|
org/apache/commons/numbers/complex/Complex.java |
A catch statement that catches an exception only to wrap it in a new instance of the same type of exception and throw it should be avoided |
annotation |
|
org/apache/commons/numbers/complex/Complex.java |
Avoid really long classes. |
annotation |
|
org/apache/commons/numbers/complex/Complex.java |
Field real has the same name as a method |
annotation |
|
org/apache/commons/numbers/complex/Complex.java |
Avoid really long methods. |
annotation |
|
org/apache/commons/numbers/complex/Complex.java |
Avoid really long methods. |
annotation |
|
org/apache/commons/numbers/complex/Complex.java |
Avoid really long methods. |
annotation |
|
org/apache/commons/numbers/complex/Complex.java |
Avoid really long methods. |
annotation |
|
org/apache/commons/numbers/complex/Complex.java |
New exception is thrown in catch block, original stack trace may be lost |
annotation |
|
org/apache/commons/numbers/complex/Complex.java |
New exception is thrown in catch block, original stack trace may be lost |
annotation |
|
|