Apache Commons logo Apache Commons RNG

PMD Results

The following document contains the results of PMD 7.2.0.

Violations By Priority

Priority 3

org/apache/commons/rng/examples/sampling/ManifestVersionProvider.java
Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 45
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 47
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 65
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 76
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java
Rule Violation Line
LooseCoupling Avoid using implementation types like 'EnumSet'; use the interface instead 72
NcssCount The method 'call()' has a NCSS line count of 87. 193
CognitiveComplexity The method 'call()' has a cognitive complexity of 21, current threshold is 15 193
CyclomaticComplexity The method 'call()' has a cyclomatic complexity of 22. 193
DoNotTerminateVM System.exit() should not be used in J2EE/JEE apps 200

Files

org/apache/commons/rng/examples/sampling/ManifestVersionProvider.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 45
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 3 47
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 3 65
LooseCoupling Avoid using implementation types like 'Attributes'; use the interface instead 3 76

org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java

Rule Violation Priority Line
LooseCoupling Avoid using implementation types like 'EnumSet'; use the interface instead 3 72
NcssCount The method 'call()' has a NCSS line count of 87. 3 193
CognitiveComplexity The method 'call()' has a cognitive complexity of 21, current threshold is 15 3 193
CyclomaticComplexity The method 'call()' has a cyclomatic complexity of 22. 3 193
DoNotTerminateVM System.exit() should not be used in J2EE/JEE apps 3 200

Suppressed Violations

Filename Rule message Suppression type Reason
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java Usage of System.out/err xpath //ClassDeclaration[@SimpleName='DiceGameApplication' or @SimpleName='ComputePi' or @SimpleName='UniformSamplingVisualCheckCommand' or @SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'LogNormalZigguratGaussianSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'ChengBetaSamplerCase1' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'ChengBetaSamplerCase2' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'ZigguratGaussianSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'InverseTransformParetoSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'LevySampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'MarsagliaGaussianSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'LogNormalMarsagliaGaussianSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'LogNormalModifiedZigguratGaussianSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'ModifiedZigguratExponentialSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'LogNormalBoxMullerGaussianSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'StableSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'ModifiedZigguratGaussianSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'BoxMullerGaussianSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'ContinuousUniformSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'AhrensDieterMarsagliaTsangGammaSamplerCase1' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'AhrensDieterMarsagliaTsangGammaSamplerCase2' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'TSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The enum constant name 'AhrensDieterExponentialSampler' doesn't match '[A-Z][A-Z_0-9]*' xpath //ClassDeclaration[@SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java The method 'call()' has an NPath complexity of 1572864, current threshold is 200 xpath //ClassDeclaration[@SimpleName='LargeMeanPoissonSampler' or @SimpleName='MersenneTwister' or @SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java Field 'randomSource' may be declared final xpath //ClassDeclaration[@SimpleName='BridgeTestCommand' or @SimpleName='ProbabilityDensityApproximationCommand' or @SimpleName='ExamplesStressCommand' or @SimpleName='ListCommand' or @SimpleName='OutputCommand' or @SimpleName='ResultsCommand' or @SimpleName='StressTestCommand' or @SimpleName='UniformSamplingVisualCheckCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java Field 'numSamples' may be declared final xpath //ClassDeclaration[@SimpleName='BridgeTestCommand' or @SimpleName='ProbabilityDensityApproximationCommand' or @SimpleName='ExamplesStressCommand' or @SimpleName='ListCommand' or @SimpleName='OutputCommand' or @SimpleName='ResultsCommand' or @SimpleName='StressTestCommand' or @SimpleName='UniformSamplingVisualCheckCommand']
org/apache/commons/rng/examples/sampling/ProbabilityDensityApproximationCommand.java Field 'numBins' may be declared final xpath //ClassDeclaration[@SimpleName='BridgeTestCommand' or @SimpleName='ProbabilityDensityApproximationCommand' or @SimpleName='ExamplesStressCommand' or @SimpleName='ListCommand' or @SimpleName='OutputCommand' or @SimpleName='ResultsCommand' or @SimpleName='StressTestCommand' or @SimpleName='UniformSamplingVisualCheckCommand']
org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheckCommand.java Usage of System.out/err xpath //ClassDeclaration[@SimpleName='DiceGameApplication' or @SimpleName='ComputePi' or @SimpleName='UniformSamplingVisualCheckCommand' or @SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheckCommand.java Usage of System.out/err xpath //ClassDeclaration[@SimpleName='DiceGameApplication' or @SimpleName='ComputePi' or @SimpleName='UniformSamplingVisualCheckCommand' or @SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheckCommand.java Usage of System.out/err xpath //ClassDeclaration[@SimpleName='DiceGameApplication' or @SimpleName='ComputePi' or @SimpleName='UniformSamplingVisualCheckCommand' or @SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheckCommand.java Usage of System.out/err xpath //ClassDeclaration[@SimpleName='DiceGameApplication' or @SimpleName='ComputePi' or @SimpleName='UniformSamplingVisualCheckCommand' or @SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheckCommand.java Usage of System.out/err xpath //ClassDeclaration[@SimpleName='DiceGameApplication' or @SimpleName='ComputePi' or @SimpleName='UniformSamplingVisualCheckCommand' or @SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheckCommand.java Usage of System.out/err xpath //ClassDeclaration[@SimpleName='DiceGameApplication' or @SimpleName='ComputePi' or @SimpleName='UniformSamplingVisualCheckCommand' or @SimpleName='ProbabilityDensityApproximationCommand']
org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheckCommand.java Field 'lo' may be declared final xpath //ClassDeclaration[@SimpleName='BridgeTestCommand' or @SimpleName='ProbabilityDensityApproximationCommand' or @SimpleName='ExamplesStressCommand' or @SimpleName='ListCommand' or @SimpleName='OutputCommand' or @SimpleName='ResultsCommand' or @SimpleName='StressTestCommand' or @SimpleName='UniformSamplingVisualCheckCommand']
org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheckCommand.java Field 'bands' may be declared final xpath //ClassDeclaration[@SimpleName='BridgeTestCommand' or @SimpleName='ProbabilityDensityApproximationCommand' or @SimpleName='ExamplesStressCommand' or @SimpleName='ListCommand' or @SimpleName='OutputCommand' or @SimpleName='ResultsCommand' or @SimpleName='StressTestCommand' or @SimpleName='UniformSamplingVisualCheckCommand']
org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheckCommand.java Field 'numSamples' may be declared final xpath //ClassDeclaration[@SimpleName='BridgeTestCommand' or @SimpleName='ProbabilityDensityApproximationCommand' or @SimpleName='ExamplesStressCommand' or @SimpleName='ListCommand' or @SimpleName='OutputCommand' or @SimpleName='ResultsCommand' or @SimpleName='StressTestCommand' or @SimpleName='UniformSamplingVisualCheckCommand']