Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
6 0 138 0

Files

File  I  W  E
tutorial/domain/EntityX.java 0 33 0
tutorial/domain/MyBusinessService.java 0 31 0
tutorial/domain/MyBusinessServiceTest.java 0 26 0
tutorial/persistence/Database.java 0 48 0

Rules

Category Rule Violations Severity
imports CustomImportOrder
  • separateLineBetweenGroups: "true"
  • sortImportsInGroupAlphabetically: "true"
  • customImportOrderRules: "STATIC###THIRD_PARTY_PACKAGE"
  • tokens: "IMPORT, STATIC_IMPORT, PACKAGE_DEF"
4  Warning
indentation Indentation
  • throwsIndent: "4"
  • arrayInitIndent: "2"
  • caseIndent: "2"
  • basicOffset: "2"
  • braceAdjustment: "2"
  • lineWrappingIndentation: "4"
126  Warning
javadoc JavadocParagraph 5  Warning
MissingJavadocMethod
  • scope: "public"
  • tokens: "METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF"
  • minLineCount: "2"
  • allowedAnnotations: "Override, Test"
2  Warning
MissingJavadocType
  • scope: "protected"
  • excludeScope: "nothing"
  • tokens: "CLASS_DEF, INTERFACE_DEF, ENUM_DEF, RECORD_DEF, ANNOTATION_DEF"
1  Warning

Details

tutorial/domain/EntityX.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.math.BigDecimal' 8
 Warning javadoc MissingJavadocType Missing a Javadoc comment. 10
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 12
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 15
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 17
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 19
 Warning indentation Indentation 'ctor def modifier' has incorrect indentation level 4, expected level should be 2. 22
 Warning indentation Indentation 'ctor def rcurly' has incorrect indentation level 4, expected level should be 2. 23
 Warning indentation Indentation 'ctor def modifier' has incorrect indentation level 4, expected level should be 2. 25
 Warning indentation Indentation 'ctor def' child has incorrect indentation level 8, expected level should be 4. 26
 Warning indentation Indentation 'ctor def' child has incorrect indentation level 8, expected level should be 4. 27
 Warning indentation Indentation 'ctor def rcurly' has incorrect indentation level 4, expected level should be 2. 28
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 30
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 31
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 32
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 34
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 35
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 36
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 38
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 39
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 40
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 42
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 43
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 44
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 46
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 47
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 48
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 50
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 51
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 52
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 54
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 55
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 56

tutorial/domain/MyBusinessService.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.apache.commons.mail.Email' 9
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 17
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 24
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 30
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 45
 Warning indentation Indentation 'ctor def modifier' has incorrect indentation level 4, expected level should be 2. 47
 Warning indentation Indentation 'ctor def' child has incorrect indentation level 8, expected level should be 4. 48
 Warning indentation Indentation 'ctor def rcurly' has incorrect indentation level 4, expected level should be 2. 49
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 53
 Warning javadoc MissingJavadocMethod Missing a Javadoc comment. 53
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 56
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 59
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 60
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 63
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 65
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 66
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 68
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 69
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 70
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 71
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 76
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 77
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 79
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 80
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 82
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 83
 Warning indentation Indentation 'for' has incorrect indentation level 8, expected level should be 4. 85
 Warning indentation Indentation 'for' child has incorrect indentation level 12, expected level should be 6. 86
 Warning indentation Indentation 'for rcurly' has incorrect indentation level 8, expected level should be 4. 87
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 89
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 90

tutorial/domain/MyBusinessServiceTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'org.apache.commons.mail.EmailException' 12
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 22
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 26
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 30
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 39
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 41
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 42
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 44
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 47
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 48
 Warning indentation Indentation 'block lcurly' has incorrect indentation level 12, expected level should be one of the following: 6, 8, 10. 49
 Warning indentation Indentation 'block' child has incorrect indentation level 16, expected level should be one of the following: 8, 14. 50
 Warning indentation Indentation 'block' child has incorrect indentation level 16, expected level should be one of the following: 8, 14. 51
 Warning indentation Indentation 'block rcurly' has incorrect indentation level 12, expected level should be one of the following: 6, 8, 10. 52
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 54
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 62
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 64
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 65
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 66
 Warning indentation Indentation 'block lcurly' has incorrect indentation level 12, expected level should be one of the following: 6, 8, 10. 67
 Warning indentation Indentation 'block' child has incorrect indentation level 16, expected level should be one of the following: 8, 14. 68
 Warning indentation Indentation 'block' child has incorrect indentation level 16, expected level should be one of the following: 8, 14. 69
 Warning indentation Indentation 'block rcurly' has incorrect indentation level 12, expected level should be one of the following: 6, 8, 10. 70
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 73
 Warning indentation Indentation 'block' child has incorrect indentation level 12, expected level should be 10. 74
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 76

tutorial/persistence/Database.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Extra separation in import group before 'java.sql.SQLException' 9
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 15
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 25
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 36
 Warning indentation Indentation 'member def modifier' has incorrect indentation level 4, expected level should be 2. 37
 Warning indentation Indentation 'static initialization' has incorrect indentation level 4, expected level should be 2. 39
 Warning indentation Indentation 'static initialization' child has incorrect indentation level 8, expected level should be 4. 40
 Warning indentation Indentation 'try' has incorrect indentation level 8, expected level should be 4. 42
 Warning indentation Indentation 'try' child has incorrect indentation level 12, expected level should be 6. 43
 Warning indentation Indentation 'try rcurly' has incorrect indentation level 8, expected level should be 4. 44
 Warning indentation Indentation 'catch' child has incorrect indentation level 12, expected level should be 6. 45
 Warning indentation Indentation 'catch rcurly' has incorrect indentation level 8, expected level should be 4. 46
 Warning indentation Indentation 'static initialization' child has incorrect indentation level 8, expected level should be 4. 48
 Warning indentation Indentation 'static initialization rcurly' has incorrect indentation level 4, expected level should be 2. 49
 Warning indentation Indentation 'ctor def modifier' has incorrect indentation level 4, expected level should be 2. 51
 Warning indentation Indentation 'ctor def rcurly' has incorrect indentation level 4, expected level should be 2. 52
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 54
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 55
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 56
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 58
 Warning javadoc MissingJavadocMethod Missing a Javadoc comment. 58
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 59
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 60
 Warning indentation Indentation 'for' has incorrect indentation level 8, expected level should be 4. 62
 Warning indentation Indentation 'for' child has incorrect indentation level 12, expected level should be 6. 63
 Warning indentation Indentation 'for' child has incorrect indentation level 12, expected level should be 6. 64
 Warning indentation Indentation 'for rcurly' has incorrect indentation level 8, expected level should be 4. 65
 Warning indentation Indentation 'try' has incorrect indentation level 8, expected level should be 4. 67
 Warning indentation Indentation 'try' child has incorrect indentation level 12, expected level should be 6. 68
 Warning indentation Indentation 'try rcurly' has incorrect indentation level 8, expected level should be 4. 69
 Warning indentation Indentation 'catch' child has incorrect indentation level 12, expected level should be 6. 70
 Warning indentation Indentation 'catch' child has incorrect indentation level 12, expected level should be 6. 71
 Warning indentation Indentation 'catch rcurly' has incorrect indentation level 8, expected level should be 4. 72
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 73
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 75
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 76
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 77
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 79
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 80
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 81
 Warning indentation Indentation 'method def modifier' has incorrect indentation level 4, expected level should be 2. 83
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 84
 Warning indentation Indentation 'if' has incorrect indentation level 8, expected level should be 4. 86
 Warning indentation Indentation 'if' child has incorrect indentation level 12, expected level should be 6. 87
 Warning indentation Indentation 'if' child has incorrect indentation level 12, expected level should be 6. 88
 Warning indentation Indentation 'if rcurly' has incorrect indentation level 8, expected level should be 4. 89
 Warning indentation Indentation 'method def' child has incorrect indentation level 8, expected level should be 4. 91
 Warning indentation Indentation 'method def rcurly' has incorrect indentation level 4, expected level should be 2. 92