Checkstyle Results

The following document contains the results of Checkstyle 9.3 with checkstyle.xml ruleset.

Summary

Files  Info  Warnings  Errors
33 0 52 0

Files

File  I  W  E
fr/univtln/bruno/samples/java101/tp3/Book.java 0 6 0
fr/univtln/bruno/samples/java101/tp3/BookTest.java 0 9 0
fr/univtln/bruno/samples/java101/tp3/CompareConsistencyTest.java 0 3 0
fr/univtln/bruno/samples/java101/tp3/Person.java 0 3 0
fr/univtln/bruno/samples/java101/tp3/PersonTest.java 0 4 0
fr/univtln/bruno/samples/java101/tp3/bestpractices/CollectionBestPractices.java 0 11 0
fr/univtln/bruno/samples/java101/tp3/comparable/ComparatorExamples.java 0 3 0
fr/univtln/bruno/samples/java101/tp3/functional/ParallelStreamsExamples.java 0 1 0
fr/univtln/bruno/samples/java101/tp3/list/ListExamples.java 0 3 0
fr/univtln/bruno/samples/java101/tp3/map/MapExamples.java 0 3 0
fr/univtln/bruno/samples/java101/tp3/queue/QueueExamples.java 0 5 0
fr/univtln/bruno/samples/java101/tp3/set/SetExamples.java 0 1 0

Rules

Category Rule Violations Severity
blocks NeedBraces 29  Warning
imports AvoidStarImport 9  Warning
UnusedImports 1  Warning
naming MethodName 7  Warning
whitespace WhitespaceAfter 6  Warning

Details

fr/univtln/bruno/samples/java101/tp3/Book.java

Severity Category Rule Message Line
 Warning blocks NeedBraces 'if' construct must use '{}'s. 38
 Warning blocks NeedBraces 'if' construct must use '{}'s. 39
 Warning blocks NeedBraces 'if' construct must use '{}'s. 40
 Warning blocks NeedBraces 'if' construct must use '{}'s. 41
 Warning blocks NeedBraces 'if' construct must use '{}'s. 42
 Warning blocks NeedBraces 'if' construct must use '{}'s. 54

fr/univtln/bruno/samples/java101/tp3/BookTest.java

Severity Category Rule Message Line
 Warning imports AvoidStarImport Using the '.*' form of import should be avoided - org.assertj.core.api.Assertions.*. 7
 Warning naming MethodName Name 'of_validatesArguments' must match pattern '^[a-z][a-zA-Z0-9]*$'. 12
 Warning naming MethodName Name 'compareTo_consistent_ordering' must match pattern '^[a-z][a-zA-Z0-9]*$'. 21
 Warning whitespace WhitespaceAfter ',' is not followed by whitespace. 22
 Warning whitespace WhitespaceAfter ',' is not followed by whitespace. 22
 Warning whitespace WhitespaceAfter ',' is not followed by whitespace. 23
 Warning whitespace WhitespaceAfter ',' is not followed by whitespace. 23
 Warning whitespace WhitespaceAfter ',' is not followed by whitespace. 24
 Warning whitespace WhitespaceAfter ',' is not followed by whitespace. 24

fr/univtln/bruno/samples/java101/tp3/CompareConsistencyTest.java

Severity Category Rule Message Line
 Warning imports AvoidStarImport Using the '.*' form of import should be avoided - org.assertj.core.api.Assertions.*. 5
 Warning naming MethodName Name 'person_compareTo_consistentWithEquals' must match pattern '^[a-z][a-zA-Z0-9]*$'. 10
 Warning naming MethodName Name 'book_compareTo_consistentWithEquals' must match pattern '^[a-z][a-zA-Z0-9]*$'. 18

fr/univtln/bruno/samples/java101/tp3/Person.java

Severity Category Rule Message Line
 Warning blocks NeedBraces 'if' construct must use '{}'s. 52
 Warning blocks NeedBraces 'if' construct must use '{}'s. 53
 Warning blocks NeedBraces 'if' construct must use '{}'s. 54

fr/univtln/bruno/samples/java101/tp3/PersonTest.java

Severity Category Rule Message Line
 Warning imports AvoidStarImport Using the '.*' form of import should be avoided - org.assertj.core.api.Assertions.*. 5
 Warning naming MethodName Name 'of_validatesArguments' must match pattern '^[a-z][a-zA-Z0-9]*$'. 10
 Warning naming MethodName Name 'compareTo_ordersByLastThenFirstThenAge' must match pattern '^[a-z][a-zA-Z0-9]*$'. 22
 Warning naming MethodName Name 'fullName_returnsConcatenation' must match pattern '^[a-z][a-zA-Z0-9]*$'. 34

fr/univtln/bruno/samples/java101/tp3/bestpractices/CollectionBestPractices.java

Severity Category Rule Message Line
 Warning imports AvoidStarImport Using the '.*' form of import should be avoided - java.util.*. 5
 Warning blocks NeedBraces 'if' construct must use '{}'s. 184
 Warning blocks NeedBraces 'if' construct must use '{}'s. 193
 Warning blocks NeedBraces 'for' construct must use '{}'s. 213
 Warning blocks NeedBraces 'for' construct must use '{}'s. 216
 Warning blocks NeedBraces 'for' construct must use '{}'s. 220
 Warning blocks NeedBraces 'for' construct must use '{}'s. 223
 Warning blocks NeedBraces 'for' construct must use '{}'s. 228
 Warning blocks NeedBraces 'for' construct must use '{}'s. 230
 Warning blocks NeedBraces 'for' construct must use '{}'s. 233
 Warning blocks NeedBraces 'for' construct must use '{}'s. 235

fr/univtln/bruno/samples/java101/tp3/comparable/ComparatorExamples.java

Severity Category Rule Message Line
 Warning imports AvoidStarImport Using the '.*' form of import should be avoided - java.util.*. 9
 Warning blocks NeedBraces 'if' construct must use '{}'s. 163
 Warning blocks NeedBraces 'if' construct must use '{}'s. 233

fr/univtln/bruno/samples/java101/tp3/functional/ParallelStreamsExamples.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.util.stream.Collectors. 7

fr/univtln/bruno/samples/java101/tp3/list/ListExamples.java

Severity Category Rule Message Line
 Warning imports AvoidStarImport Using the '.*' form of import should be avoided - java.util.*. 7
 Warning blocks NeedBraces 'if' construct must use '{}'s. 57
 Warning blocks NeedBraces 'if' construct must use '{}'s. 60

fr/univtln/bruno/samples/java101/tp3/map/MapExamples.java

Severity Category Rule Message Line
 Warning imports AvoidStarImport Using the '.*' form of import should be avoided - java.util.*. 7
 Warning blocks NeedBraces 'for' construct must use '{}'s. 101
 Warning blocks NeedBraces 'for' construct must use '{}'s. 113

fr/univtln/bruno/samples/java101/tp3/queue/QueueExamples.java

Severity Category Rule Message Line
 Warning imports AvoidStarImport Using the '.*' form of import should be avoided - java.util.*. 6
 Warning blocks NeedBraces 'while' construct must use '{}'s. 71
 Warning blocks NeedBraces 'while' construct must use '{}'s. 76
 Warning blocks NeedBraces 'while' construct must use '{}'s. 89
 Warning blocks NeedBraces 'if' construct must use '{}'s. 134

fr/univtln/bruno/samples/java101/tp3/set/SetExamples.java

Severity Category Rule Message Line
 Warning imports AvoidStarImport Using the '.*' form of import should be avoided - java.util.*. 6