Checkstyle Results

The following document contains the results of Checkstyle 6.11.2 with /Users/prholser/java/junit-quickcheck/target/checkout/conf/src-checkstyle.xml ruleset. rss feed

Summary

Files  Info  Warnings  Errors
58 0 62 0

Files

File  I  W  E
com/pholser/junit/quickcheck/Pair.java 0 4 0
com/pholser/junit/quickcheck/Property.java 0 3 0
com/pholser/junit/quickcheck/generator/ComponentizedGenerator.java 0 1 0
com/pholser/junit/quickcheck/generator/Fields.java 0 1 0
com/pholser/junit/quickcheck/generator/Generator.java 0 3 0
com/pholser/junit/quickcheck/generator/Lambdas.java 0 3 0
com/pholser/junit/quickcheck/internal/CartesianIterator.java 0 2 0
com/pholser/junit/quickcheck/internal/FakeAnnotatedTypeFactory.java 0 1 0
com/pholser/junit/quickcheck/internal/ParameterTypeContext.java 0 3 0
com/pholser/junit/quickcheck/internal/Ranges.java 0 4 0
com/pholser/junit/quickcheck/internal/Reflection.java 0 1 0
com/pholser/junit/quickcheck/internal/SeededValue.java 0 1 0
com/pholser/junit/quickcheck/internal/Sequences.java 0 3 0
com/pholser/junit/quickcheck/internal/Weighted.java 0 1 0
com/pholser/junit/quickcheck/internal/generator/ArrayGenerator.java 0 2 0
com/pholser/junit/quickcheck/internal/generator/GeneratorRepository.java 0 1 0
com/pholser/junit/quickcheck/internal/generator/PropertyParameterGenerationContext.java 0 1 0
com/pholser/junit/quickcheck/random/SourceOfRandomness.java 0 2 0
com/pholser/junit/quickcheck/runner/PropertyFalsified.java 0 2 0
com/pholser/junit/quickcheck/runner/PropertyStatement.java 0 7 0
com/pholser/junit/quickcheck/runner/PropertyVerifier.java 0 6 0
com/pholser/junit/quickcheck/runner/ShrinkNode.java 0 3 0
com/pholser/junit/quickcheck/runner/Shrinker.java 0 3 0
com/pholser/junit/quickcheck/runner/sampling/ExhaustiveParameterSampler.java 0 2 0
com/pholser/junit/quickcheck/runner/sampling/TupleParameterSampler.java 0 2 0

Rules

Category Rule Violations Severity
coding EmptyStatement 1  Warning
ExplicitInitialization 1  Warning
IllegalCatch 4  Warning
IllegalThrows 5  Warning
MagicNumber
  • ignoreNumbers: "-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 100"
5  Warning
MissingSwitchDefault 1  Warning
MultipleStringLiterals 1  Warning
NestedIfDepth 1  Warning
ReturnCount
  • max: "4"
1  Warning
design VisibilityModifier
  • publicMemberPattern: "^$"
3  Warning
header Header
  • fileExtensions: "java"
  • headerFile: "/Users/prholser/java/junit-quickcheck/target/checkout/core/target/checkstyle-header.txt"
  • ignoreLines: "1, 24"
4  Error
imports ImportOrder
  • ordered: "true"
  • groups: "/^javax?\./,."
  • separated: "true"
  • option: "bottom"
14  Warning
javadoc JavadocType
  • scope: "public"
2  Warning
JavadocVariable
  • scope: "protected"
2  Warning
metrics ClassDataAbstractionCoupling
  • max: "10"
1  Warning
sizes AnonInnerLength 4  Warning
ParameterNumber
  • max: "4"
6  Warning
whitespace NoWhitespaceAfter 2  Warning
WhitespaceAround 4  Warning

Details

com/pholser/junit/quickcheck/Pair.java

Severity Category Rule Message Line
 Warning javadoc JavadocVariable Missing a Javadoc comment. 38
 Warning design VisibilityModifier Variable 'first' must be private and have accessor methods. 38
 Warning javadoc JavadocVariable Missing a Javadoc comment. 39
 Warning design VisibilityModifier Variable 'second' must be private and have accessor methods. 39

com/pholser/junit/quickcheck/Property.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.lang.annotation.ElementType.*' import. 34
 Warning coding MagicNumber '20' is a magic number. 81
 Warning coding MagicNumber '60_000' is a magic number. 87

com/pholser/junit/quickcheck/generator/ComponentizedGenerator.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.util.Collections.*' import. 35

com/pholser/junit/quickcheck/generator/Fields.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.util.stream.Collectors.*' import. 37

com/pholser/junit/quickcheck/generator/Generator.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.util.Collections.*' import. 45
 Warning whitespace WhitespaceAround '{' is not followed by whitespace. 318
 Warning whitespace WhitespaceAround '}' is not preceded with whitespace. 318

com/pholser/junit/quickcheck/generator/Lambdas.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.lang.System.*' import. 40
 Warning whitespace NoWhitespaceAfter '{' is followed by whitespace. 89
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 138

com/pholser/junit/quickcheck/internal/CartesianIterator.java

Severity Category Rule Message Line
 Warning header Header Line does not match expected header line of ' Copyright (c) 2010-2017 Paul R. Holser, Jr.'. 4
 Warning coding ExplicitInitialization Variable 'count' explicitly initialized to '0' (default value for its type). 37

com/pholser/junit/quickcheck/internal/FakeAnnotatedTypeFactory.java

Severity Category Rule Message Line
 Warning sizes AnonInnerLength Anonymous inner class length is 25 lines (max allowed is 20). 43

com/pholser/junit/quickcheck/internal/ParameterTypeContext.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.lang.String.*' import. 55
 Warning imports ImportOrder 'org.javaruntype.type.Types.*' should be separated from previous imports. 57
 Warning sizes ParameterNumber More than 4 parameters (found 5). 100

com/pholser/junit/quickcheck/internal/Ranges.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.lang.String.*' import. 33
 Warning coding MagicNumber '62' is a magic number. 97
 Warning coding MagicNumber '62' is a magic number. 97
 Warning coding MagicNumber '64' is a magic number. 125

com/pholser/junit/quickcheck/internal/Reflection.java

Severity Category Rule Message Line
 Warning coding ReturnCount Return count is 5 (max allowed is 4). 269

com/pholser/junit/quickcheck/internal/SeededValue.java

Severity Category Rule Message Line
 Warning header Header Line does not match expected header line of ' The MIT License'. 2

com/pholser/junit/quickcheck/internal/Sequences.java

Severity Category Rule Message Line
 Warning sizes AnonInnerLength Anonymous inner class length is 23 lines (max allowed is 20). 44
 Warning sizes AnonInnerLength Anonymous inner class length is 23 lines (max allowed is 20). 73
 Warning sizes AnonInnerLength Anonymous inner class length is 22 lines (max allowed is 20). 99

com/pholser/junit/quickcheck/internal/Weighted.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'item' must be private and have accessor methods. 29

com/pholser/junit/quickcheck/internal/generator/ArrayGenerator.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'com.pholser.junit.quickcheck.internal.Ranges.*' import. 44
 Warning imports ImportOrder Wrong order for 'java.util.stream.StreamSupport.*' import. 47

com/pholser/junit/quickcheck/internal/generator/GeneratorRepository.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.util.Arrays.*' import. 57

com/pholser/junit/quickcheck/internal/generator/PropertyParameterGenerationContext.java

Severity Category Rule Message Line
 Warning coding EmptyStatement Empty statement. 77

com/pholser/junit/quickcheck/random/SourceOfRandomness.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.util.concurrent.TimeUnit.*' import. 42
 Warning whitespace NoWhitespaceAfter '{' is followed by whitespace. 387

com/pholser/junit/quickcheck/runner/PropertyFalsified.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "Seeds: %s%n" appears 2 times in the file. 45
 Warning sizes ParameterNumber More than 4 parameters (found 6). 53

com/pholser/junit/quickcheck/runner/PropertyStatement.java

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.util.stream.Collectors.*' import. 58
 Warning imports ImportOrder 'org.junit.Assert.*' should be separated from previous imports. 59
 Warning metrics ClassDataAbstractionCoupling Class Data Abstraction Coupling is 11 (max allowed is 10) classes [AssertionError, ExhaustiveParameterSampler, ParameterTypeContext, PropertyParameterContext, PropertyParameterGenerationContext, PropertyVerifier, Random, ShrinkControl, Shrinker, SourceOfRandomness, TupleParameterSampler]. 61
 Warning coding IllegalCatch Catching 'Throwable' is not allowed. 140
 Warning sizes ParameterNumber More than 4 parameters (found 5). 147
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 153
 Warning coding MissingSwitchDefault switch without "default" clause. 180

com/pholser/junit/quickcheck/runner/PropertyVerifier.java

Severity Category Rule Message Line
 Warning sizes ParameterNumber More than 4 parameters (found 7). 48
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 67
 Warning coding IllegalCatch Catching 'Throwable' is not allowed. 84
 Warning whitespace WhitespaceAround '{' is not followed by whitespace. 84
 Warning whitespace WhitespaceAround '}' is not preceded with whitespace. 84
 Warning coding IllegalCatch Catching 'Throwable' is not allowed. 87

com/pholser/junit/quickcheck/runner/ShrinkNode.java

Severity Category Rule Message Line
 Warning sizes ParameterNumber More than 4 parameters (found 8). 50
 Warning sizes ParameterNumber More than 4 parameters (found 6). 74
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 95

com/pholser/junit/quickcheck/runner/Shrinker.java

Severity Category Rule Message Line
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 68
 Warning coding NestedIfDepth Nested if-else depth is 2 (max allowed is 1). 87
 Warning coding IllegalCatch Catching 'Throwable' is not allowed. 108

com/pholser/junit/quickcheck/runner/sampling/ExhaustiveParameterSampler.java

Severity Category Rule Message Line
 Warning header Header Line does not match expected header line of ' Copyright (c) 2010-2017 Paul R. Holser, Jr.'. 4
 Warning javadoc JavadocType Missing a Javadoc comment. 41

com/pholser/junit/quickcheck/runner/sampling/TupleParameterSampler.java

Severity Category Rule Message Line
 Warning header Header Line does not match expected header line of ' Copyright (c) 2010-2017 Paul R. Holser, Jr.'. 4
 Warning javadoc JavadocType Missing a Javadoc comment. 38