Filename |
Rule message |
Suppression type |
Reason |
org/apache/commons/statistics/descriptive/DoubleStatistics.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/DoubleStatistics.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/DoubleStatistics.java |
Possible God Class (WMC=59, ATFD=14, TCC=27.941%) |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='NaturalRanking' or @SimpleName='KolmogorovSmirnovTest' or @SimpleName='DD' or @SimpleName='Arguments' or @SimpleName='MannWhitneyUTest' or @SimpleName='WilcoxonSignedRankTest' or @SimpleName='HypergeometricDistribution' or @SimpleName='UnconditionedExactTest' or @SimpleName='DoubleStatistics' or @SimpleName='IntStatistics' or @SimpleName='LongStatistics' or @SimpleName='Quantile'] |
org/apache/commons/statistics/descriptive/DoubleStatistics.java |
Avoid using literals such as 4 in if statements |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='ldexp' or @Name='createMoment'] | ./ancestor-or-self::ClassDeclaration[@SimpleName='Median'] |
org/apache/commons/statistics/descriptive/DoubleStatistics.java |
Avoid using literals such as 3 in if statements |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='ldexp' or @Name='createMoment'] | ./ancestor-or-self::ClassDeclaration[@SimpleName='Median'] |
org/apache/commons/statistics/descriptive/DoubleStatistics.java |
Avoid using literals such as 2 in if statements |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='ldexp' or @Name='createMoment'] | ./ancestor-or-self::ClassDeclaration[@SimpleName='Median'] |
org/apache/commons/statistics/descriptive/FirstMoment.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/GeometricMean.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/GeometricMean.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/GeometricMean.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Int128.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/IntMath.java |
Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='toBigIntegerExact'] |
org/apache/commons/statistics/descriptive/IntMax.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/IntMean.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/IntMin.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/IntStandardDeviation.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/IntStatistics.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/IntStatistics.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/IntStatistics.java |
Possible God Class (WMC=64, ATFD=17, TCC=16.017%) |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='NaturalRanking' or @SimpleName='KolmogorovSmirnovTest' or @SimpleName='DD' or @SimpleName='Arguments' or @SimpleName='MannWhitneyUTest' or @SimpleName='WilcoxonSignedRankTest' or @SimpleName='HypergeometricDistribution' or @SimpleName='UnconditionedExactTest' or @SimpleName='DoubleStatistics' or @SimpleName='IntStatistics' or @SimpleName='LongStatistics' or @SimpleName='Quantile'] |
org/apache/commons/statistics/descriptive/IntStatistics.java |
Avoid using literals such as 4 in if statements |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='ldexp' or @Name='createMoment'] | ./ancestor-or-self::ClassDeclaration[@SimpleName='Median'] |
org/apache/commons/statistics/descriptive/IntSum.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/IntSumOfSquares.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/IntVariance.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Kurtosis.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Kurtosis.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Kurtosis.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/LongMax.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/LongMean.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/LongMin.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/LongStandardDeviation.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/LongStatistics.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/LongStatistics.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/LongStatistics.java |
Possible God Class (WMC=63, ATFD=16, TCC=17.619%) |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='NaturalRanking' or @SimpleName='KolmogorovSmirnovTest' or @SimpleName='DD' or @SimpleName='Arguments' or @SimpleName='MannWhitneyUTest' or @SimpleName='WilcoxonSignedRankTest' or @SimpleName='HypergeometricDistribution' or @SimpleName='UnconditionedExactTest' or @SimpleName='DoubleStatistics' or @SimpleName='IntStatistics' or @SimpleName='LongStatistics' or @SimpleName='Quantile'] |
org/apache/commons/statistics/descriptive/LongStatistics.java |
Avoid using literals such as 4 in if statements |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='ldexp' or @Name='createMoment'] | ./ancestor-or-self::ClassDeclaration[@SimpleName='Median'] |
org/apache/commons/statistics/descriptive/LongSum.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/LongSumOfSquares.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/LongVariance.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Max.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Max.java |
Avoid short class names like Max |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='DD' or @SimpleName='Two' or @SimpleName='One' or @SimpleName='Min' or @SimpleName='Max' or @SimpleName='Sum' or @SimpleName='Mean'] |
org/apache/commons/statistics/descriptive/Mean.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Mean.java |
Avoid short class names like Mean |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='DD' or @SimpleName='Two' or @SimpleName='One' or @SimpleName='Min' or @SimpleName='Max' or @SimpleName='Sum' or @SimpleName='Mean'] |
org/apache/commons/statistics/descriptive/Median.java |
Avoid using literals such as 2 in if statements |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='ldexp' or @Name='createMoment'] | ./ancestor-or-self::ClassDeclaration[@SimpleName='Median'] |
org/apache/commons/statistics/descriptive/Median.java |
Avoid using literals such as 2 in if statements |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='ldexp' or @Name='createMoment'] | ./ancestor-or-self::ClassDeclaration[@SimpleName='Median'] |
org/apache/commons/statistics/descriptive/Min.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Min.java |
Avoid short class names like Min |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='DD' or @SimpleName='Two' or @SimpleName='One' or @SimpleName='Min' or @SimpleName='Max' or @SimpleName='Sum' or @SimpleName='Mean'] |
org/apache/commons/statistics/descriptive/NaNTransformers.java |
Avoid reassigning the loop control variable 'i' |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='NaNTransformers'] |
org/apache/commons/statistics/descriptive/NaNTransformers.java |
Avoid reassigning the loop control variable 'i' |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='NaNTransformers'] |
org/apache/commons/statistics/descriptive/NaNTransformers.java |
Avoid assignment to end in operand |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='NaNTransformers'] |
org/apache/commons/statistics/descriptive/NaNTransformers.java |
Avoid assignment to i in operand |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='NaNTransformers'] |
org/apache/commons/statistics/descriptive/NaNTransformers.java |
Avoid assignment to i in operand |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='NaNTransformers'] |
org/apache/commons/statistics/descriptive/Product.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Product.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Product.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Quantile.java |
Possible God Class (WMC=66, ATFD=18, TCC=9.333%) |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='NaturalRanking' or @SimpleName='KolmogorovSmirnovTest' or @SimpleName='DD' or @SimpleName='Arguments' or @SimpleName='MannWhitneyUTest' or @SimpleName='WilcoxonSignedRankTest' or @SimpleName='HypergeometricDistribution' or @SimpleName='UnconditionedExactTest' or @SimpleName='DoubleStatistics' or @SimpleName='IntStatistics' or @SimpleName='LongStatistics' or @SimpleName='Quantile'] |
org/apache/commons/statistics/descriptive/Skewness.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Skewness.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Skewness.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/StandardDeviation.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Sum.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Sum.java |
Avoid short class names like Sum |
xpath |
./ancestor-or-self::ClassDeclaration[@SimpleName='DD' or @SimpleName='Two' or @SimpleName='One' or @SimpleName='Min' or @SimpleName='Max' or @SimpleName='Sum' or @SimpleName='Mean'] |
org/apache/commons/statistics/descriptive/SumOfCubedDeviations.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfCubedDeviations.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfCubedDeviations.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfFourthDeviations.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfFourthDeviations.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfFourthDeviations.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfLogs.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfLogs.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfLogs.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfSquaredDeviations.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/SumOfSquares.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/UInt128.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/UInt96.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |
org/apache/commons/statistics/descriptive/Variance.java |
Avoid using short method names |
xpath |
./ancestor-or-self::MethodDeclaration[@Name='sf' or @Name='of'] |