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 78 0

Files

File  I  W  E
com/pholser/junit/quickcheck/ForAll.java 0 2 0
com/pholser/junit/quickcheck/Property.java 0 4 0
com/pholser/junit/quickcheck/generator/ComponentizedGenerator.java 0 1 0
com/pholser/junit/quickcheck/generator/Ctor.java 0 3 0
com/pholser/junit/quickcheck/generator/Fields.java 0 4 0
com/pholser/junit/quickcheck/generator/Generator.java 0 2 0
com/pholser/junit/quickcheck/generator/GeneratorConfigurationException.java 0 1 0
com/pholser/junit/quickcheck/generator/Lambdas.java 0 3 0
com/pholser/junit/quickcheck/generator/Shrink.java 0 1 0
com/pholser/junit/quickcheck/generator/Size.java 0 3 0
com/pholser/junit/quickcheck/generator/ValuesOf.java 0 1 0
com/pholser/junit/quickcheck/internal/ParameterContext.java 0 3 0
com/pholser/junit/quickcheck/internal/ParameterTypeContext.java 0 4 0
com/pholser/junit/quickcheck/internal/PropertyParameterContext.java 0 1 0
com/pholser/junit/quickcheck/internal/RandomValueSupplier.java 0 2 0
com/pholser/junit/quickcheck/internal/Reflection.java 0 2 0
com/pholser/junit/quickcheck/internal/SampleSizer.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 3 0
com/pholser/junit/quickcheck/internal/generator/CompositeGenerator.java 0 1 0
com/pholser/junit/quickcheck/internal/generator/GenerationContext.java 0 3 0
com/pholser/junit/quickcheck/internal/generator/GeneratorRepository.java 0 1 0
com/pholser/junit/quickcheck/internal/generator/PropertyParameterGenerationContext.java 0 4 0
com/pholser/junit/quickcheck/internal/generator/RandomTheoryParameterGenerator.java 0 1 0
com/pholser/junit/quickcheck/random/SourceOfRandomness.java 0 2 0
com/pholser/junit/quickcheck/runner/JUnitQuickcheck.java 0 5 0
com/pholser/junit/quickcheck/runner/PropertyStatement.java 0 5 0
com/pholser/junit/quickcheck/runner/PropertyVerifier.java 0 4 0
com/pholser/junit/quickcheck/runner/ShrinkNode.java 0 4 0
com/pholser/junit/quickcheck/runner/Shrinker.java 0 3 0

Rules

Category Rule Violations Severity
annotation MissingDeprecated 6  Warning
MissingOverride 1  Warning
coding DeclarationOrder 1  Warning
EmptyStatement 2  Warning
HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
5  Warning
IllegalCatch 2  Warning
IllegalThrows 6  Warning
MagicNumber
  • ignoreNumbers: "-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 100"
3  Warning
MultipleStringLiterals 3  Warning
NestedIfDepth 1  Warning
ReturnCount
  • max: "4"
1  Warning
design FinalClass 1  Warning
VisibilityModifier
  • publicMemberPattern: "^$"
1  Warning
header Header
  • fileExtensions: "java"
  • headerFile: "/Users/prholser/java/junit-quickcheck/core/target/checkstyle-header.txt"
  • ignoreLines: "1, 24"
1  Error
imports ImportOrder
  • ordered: "true"
  • groups: "/^javax?\./,."
  • separated: "true"
  • option: "bottom"
14  Warning
UnusedImports 19  Warning
sizes AnonInnerLength 3  Warning
MethodLength
  • max: "40"
1  Warning
ParameterNumber
  • max: "4"
6  Warning
whitespace NoWhitespaceAfter 1  Warning

Details

com/pholser/junit/quickcheck/ForAll.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - com.pholser.junit.quickcheck.runner.JUnitQuickcheck. 32
 Warning imports UnusedImports Unused import - org.junit.contrib.theories.Theory. 34

com/pholser/junit/quickcheck/Property.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - com.pholser.junit.quickcheck.generator.Shrink. 31
 Warning imports UnusedImports Unused import - com.pholser.junit.quickcheck.runner.JUnitQuickcheck. 32
 Warning imports UnusedImports Unused import - org.junit.runner.RunWith. 33
 Warning coding MagicNumber '20' is a magic number. 72

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

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

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

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - org.junit.contrib.theories.Theory. 31
 Warning imports ImportOrder Wrong order for 'java.lang.reflect.AnnotatedType' import. 33
 Warning imports UnusedImports Unused import - java.util.ServiceLoader. 38

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

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - org.junit.contrib.theories.Theory. 31
 Warning imports ImportOrder Wrong order for 'java.lang.reflect.AnnotatedType' import. 33
 Warning imports UnusedImports Unused import - java.util.ServiceLoader. 37
 Warning annotation MissingDeprecated Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description. 63

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

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.util.Collections.*' import. 45
 Warning annotation MissingOverride Must include @java.lang.Override annotation when {@inheritDoc} Javadoc tag exists. 122

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

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.lang.reflect.AnnotatedType. 27

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

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

com/pholser/junit/quickcheck/generator/Shrink.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/generator/Size.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.util.Collection. 30
 Warning imports UnusedImports Unused import - java.util.Map. 31
 Warning imports UnusedImports Unused import - com.pholser.junit.quickcheck.Property. 33

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

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - com.pholser.junit.quickcheck.Property. 31

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

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.lang.reflect.AnnotatedElement' import. 30
 Warning annotation MissingDeprecated Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description. 34
 Warning coding MultipleStringLiterals The String "seed" appears 2 times in the file. 42

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

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.lang.String.*' import. 54
 Warning imports ImportOrder 'org.javaruntype.type.Types.*' should be separated from previous imports. 56
 Warning sizes ParameterNumber More than 4 parameters (found 5). 98
 Warning sizes MethodLength Method length is 60 lines (max allowed is 40). 229

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

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.util.List' import. 37
 Warning annotation MissingDeprecated Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description. 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 coding ReturnCount Return count is 5 (max allowed is 4). 254

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

Severity Category Rule Message Line
 Warning annotation MissingDeprecated Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description. 31

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/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. 43
 Warning imports ImportOrder Wrong order for 'java.util.stream.StreamSupport.*' import. 46
 Warning coding HiddenField 'lengthRange' hides a field. 67

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

Severity Category Rule Message Line
 Warning imports ImportOrder Wrong order for 'java.lang.reflect.AnnotatedType' import. 35

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

Severity Category Rule Message Line
 Warning annotation MissingDeprecated Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description. 37
 Warning coding HiddenField 'random' hides a field. 60
 Warning coding EmptyStatement Empty statement. 65

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

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

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

Severity Category Rule Message Line
 Warning sizes ParameterNumber More than 4 parameters (found 5). 52
 Warning coding HiddenField 'parameter' hides a field. 67
 Warning coding HiddenField 'random' hides a field. 68
 Warning coding EmptyStatement Empty statement. 83

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

Severity Category Rule Message Line
 Warning annotation MissingDeprecated Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description. 37

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

Severity Category Rule Message Line
 Warning coding MagicNumber '181783497276652981L' is a magic number. 55
 Warning coding MagicNumber '8682522807148012L' is a magic number. 55

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

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - org.junit.After. 36
 Warning imports UnusedImports Unused import - org.junit.AfterClass. 37
 Warning imports UnusedImports Unused import - org.junit.Before. 38
 Warning imports UnusedImports Unused import - org.junit.BeforeClass. 39
 Warning imports UnusedImports Unused import - org.junit.Rule. 40

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

Severity Category Rule Message Line
 Warning imports ImportOrder 'org.junit.Assert.*' should be separated from previous imports. 54
 Warning sizes ParameterNumber More than 4 parameters (found 5). 65
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 101
 Warning coding IllegalCatch Catching 'Throwable' is not allowed. 127
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 139

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

Severity Category Rule Message Line
 Warning sizes ParameterNumber More than 4 parameters (found 6). 47
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 64
 Warning coding IllegalCatch Catching 'Throwable' is not allowed. 79
 Warning coding HiddenField 'method' hides a field. 90

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

Severity Category Rule Message Line
 Warning design FinalClass Class ShrinkNode should be declared as final. 39
 Warning coding DeclarationOrder Constructor definition in wrong order. 56
 Warning sizes ParameterNumber More than 4 parameters (found 6). 56
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 82

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

Severity Category Rule Message Line
 Warning sizes ParameterNumber More than 4 parameters (found 5). 43
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 58
 Warning coding NestedIfDepth Nested if-else depth is 2 (max allowed is 1). 74