Apache Commons logo Apache Commons Numbers

PMD Results

The following document contains the results of PMD 7.23.0.

Violations By Priority

Priority 3

org/apache/commons/numbers/complex/Complex.java

Rule Violation Line
CyclomaticComplexity The class 'Complex' has a total cyclomatic complexity of 293 (highest 25). 64
NPathComplexity The method 'multiply(double, double, double, double)' has an NPath complexity of 302, current threshold is 200 889
NPathComplexity The method 'divide(double, double, double, double)' has an NPath complexity of 312, current threshold is 200 1097
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 1253–1258
CognitiveComplexity The method 'log(DoubleUnaryOperator, double, double, ComplexConstructor)' has a cognitive complexity of 20, current threshold is 20 1393
CognitiveComplexity The method 'sqrt(double, double)' has a cognitive complexity of 32, current threshold is 20 1597
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 1605–1607
CognitiveComplexity The method 'asin(double, double, ComplexConstructor)' has a cognitive complexity of 84, current threshold is 20 1834
CyclomaticComplexity The method 'asin(double, double, ComplexConstructor)' has a cyclomatic complexity of 22. 1834
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 1898–1902
CognitiveComplexity The method 'acos(double, double, ComplexConstructor)' has a cognitive complexity of 92, current threshold is 20 2029
CyclomaticComplexity The method 'acos(double, double, ComplexConstructor)' has a cyclomatic complexity of 25. 2029
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 2090–2094
CognitiveComplexity The method 'tanh(double, double, ComplexConstructor)' has a cognitive complexity of 21, current threshold is 20 2459
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 2466–2476
CognitiveComplexity The method 'atanh(double, double, ComplexConstructor)' has a cognitive complexity of 66, current threshold is 20 2732
CyclomaticComplexity The method 'atanh(double, double, ComplexConstructor)' has a cyclomatic complexity of 23. 2732

Files

org/apache/commons/numbers/complex/Complex.java

Rule Violation Priority Line
CyclomaticComplexity The class 'Complex' has a total cyclomatic complexity of 293 (highest 25). 3 64
NPathComplexity The method 'multiply(double, double, double, double)' has an NPath complexity of 302, current threshold is 200 3 889
NPathComplexity The method 'divide(double, double, double, double)' has an NPath complexity of 312, current threshold is 200 3 1097
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 1253–1258
CognitiveComplexity The method 'log(DoubleUnaryOperator, double, double, ComplexConstructor)' has a cognitive complexity of 20, current threshold is 20 3 1393
CognitiveComplexity The method 'sqrt(double, double)' has a cognitive complexity of 32, current threshold is 20 3 1597
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 1605–1607
CognitiveComplexity The method 'asin(double, double, ComplexConstructor)' has a cognitive complexity of 84, current threshold is 20 3 1834
CyclomaticComplexity The method 'asin(double, double, ComplexConstructor)' has a cyclomatic complexity of 22. 3 1834
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 1898–1902
CognitiveComplexity The method 'acos(double, double, ComplexConstructor)' has a cognitive complexity of 92, current threshold is 20 3 2029
CyclomaticComplexity The method 'acos(double, double, ComplexConstructor)' has a cyclomatic complexity of 25. 3 2029
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 2090–2094
CognitiveComplexity The method 'tanh(double, double, ComplexConstructor)' has a cognitive complexity of 21, current threshold is 20 3 2459
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 2466–2476
CognitiveComplexity The method 'atanh(double, double, ComplexConstructor)' has a cognitive complexity of 66, current threshold is 20 3 2732
CyclomaticComplexity The method 'atanh(double, double, ComplexConstructor)' has a cyclomatic complexity of 23. 3 2732