Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
48 0 47 0

Rules

Category Rule Violations Severity
coding EmptyStatement 1  Warning
HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
1  Warning
IllegalCatch 4  Warning
IllegalThrows 6  Warning
MagicNumber
  • ignoreNumbers: "-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 100"
2  Warning
MultipleStringLiterals 5  Warning
NestedIfDepth 1  Warning
ReturnCount
  • max: "4"
1  Warning
design FinalClass 2  Warning
VisibilityModifier
  • publicMemberPattern: "^$"
1  Warning
imports ImportOrder
  • ordered: "true"
  • groups: "/^javax?\./,."
  • separated: "true"
  • option: "bottom"
1  Warning
javadoc JavadocStyle
  • scope: "protected"
1  Warning
JavadocType
  • scope: "public"
1  Warning
sizes AnonInnerLength 5  Warning
ParameterNumber
  • max: "4"
8  Warning
whitespace NoWhitespaceAfter 3  Warning
WhitespaceAround 4  Warning

Details

com/pholser/junit/quickcheck/Property.java

Severity Category Rule Message Line
 Warning coding MagicNumber '20' is a magic number. 73
 Warning coding MagicNumber '60_000' is a magic number. 79

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

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 139

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

Severity Category Rule Message Line
 Warning whitespace WhitespaceAround '{' is not followed by whitespace. 319
 Warning whitespace WhitespaceAround '}' is not preceded with whitespace. 319

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

Severity Category Rule Message Line
 Warning whitespace NoWhitespaceAfter '{' is followed by whitespace. 88
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 135

com/pholser/junit/quickcheck/hook/NilMinimalCounterexampleHook.java

Severity Category Rule Message Line
 Warning javadoc JavadocType Missing a Javadoc comment. 30

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

Severity Category Rule Message Line
 Warning design FinalClass Class FakeAnnotatedTypeFactory should be declared as final. 33
 Warning sizes AnonInnerLength Anonymous inner class length is 26 lines (max allowed is 20). 43
 Warning sizes AnonInnerLength Anonymous inner class length is 21 lines (max allowed is 20). 72

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

Severity Category Rule Message Line
 Warning sizes ParameterNumber More than 4 parameters (found 5). 101

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

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "seed" appears 2 times in the file. 40

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

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "java.lang.annotation" appears 2 times in the file. 139
 Warning whitespace NoWhitespaceAfter '!' is followed by whitespace. 196
 Warning coding ReturnCount Return count is 5 (max allowed is 4). 265

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

Severity Category Rule Message Line
 Warning sizes AnonInnerLength Anonymous inner class length is 21 lines (max allowed is 20). 41
 Warning sizes AnonInnerLength Anonymous inner class length is 21 lines (max allowed is 20). 65
 Warning sizes AnonInnerLength Anonymous inner class length is 22 lines (max allowed is 20). 89

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

Severity Category Rule Message Line
 Warning sizes ParameterNumber More than 4 parameters (found 5). 37

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/GeneratorRepository.java

Severity Category Rule Message Line
 Warning coding HiddenField 'generators' hides a field. 185

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

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

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

Severity Category Rule Message Line
 Warning whitespace NoWhitespaceAfter '{' is followed by whitespace. 355

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

Severity Category Rule Message Line
 Warning design FinalClass Class PropertyFalsified should be declared as final. 30
 Warning coding MultipleStringLiterals The String "Property %s falsified.%n" appears 2 times in the file. 43
 Warning coding MultipleStringLiterals The String "Original failure message: [%s]%n" appears 2 times in the file. 44
 Warning coding MultipleStringLiterals The String "Seeds: %s%n" appears 2 times in the file. 46
 Warning sizes ParameterNumber More than 4 parameters (found 5). 54

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

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.util.stream.Collectors.*' import. 54
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 103
 Warning coding IllegalCatch Catching 'Throwable' is not allowed. 135
 Warning sizes ParameterNumber More than 4 parameters (found 5). 142
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 148

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 7). 48
 Warning sizes ParameterNumber More than 4 parameters (found 5). 70
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 90

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

Severity Category Rule Message Line
 Warning sizes ParameterNumber More than 4 parameters (found 7). 48
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 70
 Warning coding NestedIfDepth Nested if-else depth is 2 (max allowed is 1). 89
 Warning coding IllegalCatch Catching 'Throwable' is not allowed. 110