## Checkstyle Results

The following document contains the results of Checkstyle 8.29 with sun_checks.xml ruleset.

rss feed

## Summary

Files | Info | Warnings | Errors
--- | --- | --- | ---
26 | 0 | 0 | 238

## Files

File | I | W | E
--- | --- | --- | ---
cli/src/test/resources/log4j.properties | 0 | 0 | 1
cli/target/test-classes/log4j.properties | 0 | 0 | 1
core/src/test/resources/log4j.properties | 0 | 0 | 1
core/target/test-classes/log4j.properties | 0 | 0 | 1
csvutils/src/test/resources/log4j.properties | 0 | 0 | 20
csvutils/target/test-classes/log4j.properties | 0 | 0 | 20
mime/src/test/resources/log4j.properties | 0 | 0 | 20
mime/target/test-classes/log4j.properties | 0 | 0 | 20
org/apache/any23/encoding/EncodingUtils.java | 0 | 0 | 93
org/apache/any23/encoding/TikaEncodingDetector.java | 0 | 0 | 55
test-resources/src/test/resources/microdata/microdata-basic-expected.properties | 0 | 0 | 1
test-resources/src/test/resources/microdata/microdata-itemref-expected.properties | 0 | 0 | 1
test-resources/src/test/resources/microdata/microdata-nested-expected.properties | 0 | 0 | 1
test-resources/target/test-classes/microdata/microdata-basic-expected.properties | 0 | 0 | 1
test-resources/target/test-classes/microdata/microdata-itemref-expected.properties | 0 | 0 | 1
test-resources/target/test-classes/microdata/microdata-nested-expected.properties | 0 | 0 | 1

## Rules

Category | Rule | Violations | Severity
--- | --- | --- | ---
blocks | NeedBraces | 1 | Error
coding | MagicNumber | 11 | Error
design | DesignForExtension | 2 | Error
| HideUtilityClassConstructor | 1 | Error
javadoc | JavadocMethod | 2 | Error
| JavadocPackage | 1 | Error
| JavadocStyle | 1 | Error
| JavadocVariable | 16 | Error
misc | FinalParameters | 37 | Error
| NewlineAtEndOfFile | 6 | Error
naming | ConstantName | 12 | Error
| LocalVariableName | 1 | Error
| MethodName | 2 | Error
regexp | RegexpSingleline format: `"\s+$"` maximum: `"0"` message: `"Line has trailing spaces."` minimum: `"0"` | 85 | Error
sizes | LineLength fileExtensions: `"java"` | 50 | Error
whitespace | NoWhitespaceAfter | 10 | Error

## Details

### cli/src/test/resources/log4j.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | regexp | RegexpSingleline | Line has trailing spaces. | 9

### cli/target/test-classes/log4j.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | regexp | RegexpSingleline | Line has trailing spaces. | 9

### core/src/test/resources/log4j.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | regexp | RegexpSingleline | Line has trailing spaces. | 19

### core/target/test-classes/log4j.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | regexp | RegexpSingleline | Line has trailing spaces. | 19

### csvutils/src/test/resources/log4j.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | regexp | RegexpSingleline | Line has trailing spaces. | 15
Error | regexp | RegexpSingleline | Line has trailing spaces. | 16
Error | regexp | RegexpSingleline | Line has trailing spaces. | 17
Error | regexp | RegexpSingleline | Line has trailing spaces. | 18
Error | regexp | RegexpSingleline | Line has trailing spaces. | 19
Error | regexp | RegexpSingleline | Line has trailing spaces. | 20
Error | regexp | RegexpSingleline | Line has trailing spaces. | 21
Error | regexp | RegexpSingleline | Line has trailing spaces. | 22
Error | regexp | RegexpSingleline | Line has trailing spaces. | 23
Error | regexp | RegexpSingleline | Line has trailing spaces. | 24
Error | regexp | RegexpSingleline | Line has trailing spaces. | 25
Error | regexp | RegexpSingleline | Line has trailing spaces. | 26
Error | regexp | RegexpSingleline | Line has trailing spaces. | 27
Error | regexp | RegexpSingleline | Line has trailing spaces. | 28
Error | regexp | RegexpSingleline | Line has trailing spaces. | 29
Error | regexp | RegexpSingleline | Line has trailing spaces. | 30
Error | regexp | RegexpSingleline | Line has trailing spaces. | 31
Error | regexp | RegexpSingleline | Line has trailing spaces. | 32
Error | regexp | RegexpSingleline | Line has trailing spaces. | 33
Error | regexp | RegexpSingleline | Line has trailing spaces. | 34

### csvutils/target/test-classes/log4j.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | regexp | RegexpSingleline | Line has trailing spaces. | 15
Error | regexp | RegexpSingleline | Line has trailing spaces. | 16
Error | regexp | RegexpSingleline | Line has trailing spaces. | 17
Error | regexp | RegexpSingleline | Line has trailing spaces. | 18
Error | regexp | RegexpSingleline | Line has trailing spaces. | 19
Error | regexp | RegexpSingleline | Line has trailing spaces. | 20
Error | regexp | RegexpSingleline | Line has trailing spaces. | 21
Error | regexp | RegexpSingleline | Line has trailing spaces. | 22
Error | regexp | RegexpSingleline | Line has trailing spaces. | 23
Error | regexp | RegexpSingleline | Line has trailing spaces. | 24
Error | regexp | RegexpSingleline | Line has trailing spaces. | 25
Error | regexp | RegexpSingleline | Line has trailing spaces. | 26
Error | regexp | RegexpSingleline | Line has trailing spaces. | 27
Error | regexp | RegexpSingleline | Line has trailing spaces. | 28
Error | regexp | RegexpSingleline | Line has trailing spaces. | 29
Error | regexp | RegexpSingleline | Line has trailing spaces. | 30
Error | regexp | RegexpSingleline | Line has trailing spaces. | 31
Error | regexp | RegexpSingleline | Line has trailing spaces. | 32
Error | regexp | RegexpSingleline | Line has trailing spaces. | 33
Error | regexp | RegexpSingleline | Line has trailing spaces. | 34

### mime/src/test/resources/log4j.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | regexp | RegexpSingleline | Line has trailing spaces. | 15
Error | regexp | RegexpSingleline | Line has trailing spaces. | 16
Error | regexp | RegexpSingleline | Line has trailing spaces. | 17
Error | regexp | RegexpSingleline | Line has trailing spaces. | 18
Error | regexp | RegexpSingleline | Line has trailing spaces. | 19
Error | regexp | RegexpSingleline | Line has trailing spaces. | 20
Error | regexp | RegexpSingleline | Line has trailing spaces. | 21
Error | regexp | RegexpSingleline | Line has trailing spaces. | 22
Error | regexp | RegexpSingleline | Line has trailing spaces. | 23
Error | regexp | RegexpSingleline | Line has trailing spaces. | 24
Error | regexp | RegexpSingleline | Line has trailing spaces. | 25
Error | regexp | RegexpSingleline | Line has trailing spaces. | 26
Error | regexp | RegexpSingleline | Line has trailing spaces. | 27
Error | regexp | RegexpSingleline | Line has trailing spaces. | 28
Error | regexp | RegexpSingleline | Line has trailing spaces. | 29
Error | regexp | RegexpSingleline | Line has trailing spaces. | 30
Error | regexp | RegexpSingleline | Line has trailing spaces. | 31
Error | regexp | RegexpSingleline | Line has trailing spaces. | 32
Error | regexp | RegexpSingleline | Line has trailing spaces. | 33
Error | regexp | RegexpSingleline | Line has trailing spaces. | 34

### mime/target/test-classes/log4j.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | regexp | RegexpSingleline | Line has trailing spaces. | 15
Error | regexp | RegexpSingleline | Line has trailing spaces. | 16
Error | regexp | RegexpSingleline | Line has trailing spaces. | 17
Error | regexp | RegexpSingleline | Line has trailing spaces. | 18
Error | regexp | RegexpSingleline | Line has trailing spaces. | 19
Error | regexp | RegexpSingleline | Line has trailing spaces. | 20
Error | regexp | RegexpSingleline | Line has trailing spaces. | 21
Error | regexp | RegexpSingleline | Line has trailing spaces. | 22
Error | regexp | RegexpSingleline | Line has trailing spaces. | 23
Error | regexp | RegexpSingleline | Line has trailing spaces. | 24
Error | regexp | RegexpSingleline | Line has trailing spaces. | 25
Error | regexp | RegexpSingleline | Line has trailing spaces. | 26
Error | regexp | RegexpSingleline | Line has trailing spaces. | 27
Error | regexp | RegexpSingleline | Line has trailing spaces. | 28
Error | regexp | RegexpSingleline | Line has trailing spaces. | 29
Error | regexp | RegexpSingleline | Line has trailing spaces. | 30
Error | regexp | RegexpSingleline | Line has trailing spaces. | 31
Error | regexp | RegexpSingleline | Line has trailing spaces. | 32
Error | regexp | RegexpSingleline | Line has trailing spaces. | 33
Error | regexp | RegexpSingleline | Line has trailing spaces. | 34

### org/apache/any23/encoding/EncodingUtils.java

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 38
Error | javadoc | JavadocStyle | First sentence should end with a period. | 40
Error | sizes | LineLength | Line is longer than 80 characters (found 96). | 41
Error | javadoc | JavadocMethod | Expected @return tag. | 43
Error | naming | MethodName | Name 'iso_8859_1' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 43
Error | misc | FinalParameters | Parameter is should be final. | 43
Error | javadoc | JavadocMethod | Expected @param tag for 'is'. | 43
Error | coding | MagicNumber | '8192' is a magic number. | 44
Error | coding | MagicNumber | '8192' is a magic number. | 45
Error | coding | MagicNumber | '0xFF' is a magic number. | 49
Error | misc | FinalParameters | Parameter stats should be final. | 56
Error | misc | FinalParameters | Parameter charset should be final. | 56
Error | sizes | LineLength | Line is longer than 80 characters (found 97). | 63
Error | sizes | LineLength | Line is longer than 80 characters (found 107). | 67
Error | sizes | LineLength | Line is longer than 80 characters (found 93). | 76
Error | sizes | LineLength | Line is longer than 80 characters (found 91). | 91
Error | sizes | LineLength | Line is longer than 80 characters (found 90). | 107
Error | sizes | LineLength | Line is longer than 80 characters (found 90). | 124
Error | sizes | LineLength | Line is longer than 80 characters (found 91). | 139
Error | naming | MethodName | Name 'iso_8859_1_or_15' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 151
Error | misc | FinalParameters | Parameter stats should be final. | 151
Error | coding | MagicNumber | '0xa4' is a magic number. | 154
Error | sizes | LineLength | Line is longer than 80 characters (found 86). | 164
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 164
Error | naming | ConstantName | Name 'windows1252Illegals' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 164
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 164
Error | sizes | LineLength | Line is longer than 80 characters (found 86). | 165
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 165
Error | naming | ConstantName | Name 'windows1250Illegals' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 165
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 165
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 166
Error | naming | ConstantName | Name 'iso_8859_7Illegals' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 166
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 166
Error | sizes | LineLength | Line is longer than 80 characters (found 120). | 167
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 167
Error | naming | ConstantName | Name 'windows1253Illegals' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 167
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 167
Error | sizes | LineLength | Line is longer than 80 characters (found 120). | 170
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 170
Error | naming | ConstantName | Name 'windows1255Illegals' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 170
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 170
Error | sizes | LineLength | Line is longer than 80 characters (found 85). | 171
Error | sizes | LineLength | Line is longer than 80 characters (found 119). | 173
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 173
Error | naming | ConstantName | Name 'iso_8859_8Illegals' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 173
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 173
Error | sizes | LineLength | Line is longer than 80 characters (found 119). | 174
Error | sizes | LineLength | Line is longer than 80 characters (found 98). | 177
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 177
Error | naming | ConstantName | Name 'windows1254Illegals' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 177
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 177
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 179
Error | naming | ConstantName | Name 'windows1251Illegals' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 179
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 179
Error | sizes | LineLength | Line is longer than 80 characters (found 119). | 181
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 181
Error | naming | ConstantName | Name 'iso_8859_6Illegals' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 181
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 181
Error | sizes | LineLength | Line is longer than 80 characters (found 119). | 182
Error | sizes | LineLength | Line is longer than 80 characters (found 109). | 183
Error | misc | FinalParameters | Parameter stats should be final. | 185
Error | misc | FinalParameters | Parameter illegals should be final. | 185
Error | misc | FinalParameters | Parameter ts should be final. | 194
Error | coding | MagicNumber | '0x80' is a magic number. | 195
Error | coding | MagicNumber | '0xA0' is a magic number. | 195
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 205
Error | misc | FinalParameters | Parameter buffer should be final. | 208
Error | misc | FinalParameters | Parameter offset should be final. | 208
Error | misc | FinalParameters | Parameter length should be final. | 208
Error | sizes | LineLength | Line is longer than 80 characters (found 89). | 220
Error | misc | FinalParameters | Parameter stream should be final. | 222
Error | sizes | LineLength | Line is longer than 80 characters (found 84). | 223
Error | coding | MagicNumber | '8192' is a magic number. | 224
Error | misc | FinalParameters | Parameter charset should be final. | 232
Error | misc | FinalParameters | Parameter charset should be final. | 251
Error | sizes | LineLength | Line is longer than 80 characters (found 116). | 259
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 259
Error | naming | ConstantName | Name 'charsetMetas' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 259
Error | misc | FinalParameters | Parameter stats should be final. | 261
Error | misc | FinalParameters | Parameter root should be final. | 261
Error | sizes | LineLength | Line is longer than 80 characters (found 88). | 263
Error | sizes | LineLength | Line is longer than 80 characters (found 91). | 267
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 275
Error | naming | ConstantName | Name 'contentTypeCharsetPattern' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 275
Error | misc | FinalParameters | Parameter contentType should be final. | 278
Error | blocks | NeedBraces | 'if' construct must use '{}'s. | 279
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 292
Error | naming | ConstantName | Name 'xmlEncoding' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 292
Error | sizes | LineLength | Line is longer than 80 characters (found 104). | 293
Error | misc | FinalParameters | Parameter stats should be final. | 295
Error | misc | FinalParameters | Parameter str should be final. | 295
Error | sizes | LineLength | Line is longer than 80 characters (found 82). | 326
Error | sizes | LineLength | Line is longer than 80 characters (found 95). | 328

### org/apache/any23/encoding/TikaEncodingDetector.java

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1
Error | sizes | LineLength | Line is longer than 80 characters (found 108). | 46
Error | regexp | RegexpSingleline | Line has trailing spaces. | 51
Error | design | DesignForExtension | Class 'TikaEncodingDetector' looks like designed for extension (can be subclassed), but the method 'guessEncoding' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'TikaEncodingDetector' final or making the method 'guessEncoding' static/final/abstract/empty, or adding allowed annotation for the method. | 56
Error | misc | FinalParameters | Parameter input should be final. | 57
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 61
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 62
Error | javadoc | JavadocVariable | Missing a Javadoc comment. | 63
Error | sizes | LineLength | Line is longer than 80 characters (found 95). | 65
Error | misc | FinalParameters | Parameter is should be final. | 65
Error | misc | FinalParameters | Parameter declared should be final. | 65
Error | sizes | LineLength | Line is longer than 80 characters (found 89). | 72
Error | sizes | LineLength | Line is longer than 80 characters (found 90). | 74
Error | sizes | LineLength | Line is longer than 80 characters (found 112). | 85
Error | sizes | LineLength | Line is longer than 80 characters (found 94). | 86
Error | naming | LocalVariableName | Name 'iso_8859_1' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 87
Error | sizes | LineLength | Line is longer than 80 characters (found 83). | 104
Error | sizes | LineLength | Line is longer than 80 characters (found 107). | 108
Error | sizes | LineLength | Line is longer than 80 characters (found 103). | 109
Error | sizes | LineLength | Line is longer than 80 characters (found 82). | 113
Error | sizes | LineLength | Line is longer than 80 characters (found 90). | 115
Error | coding | MagicNumber | '5' is a magic number. | 117
Error | coding | MagicNumber | '5' is a magic number. | 117
Error | coding | MagicNumber | '100' is a magic number. | 121
Error | coding | MagicNumber | '600' is a magic number. | 121
Error | sizes | LineLength | Line is longer than 80 characters (found 114). | 136
Error | sizes | LineLength | Line is longer than 80 characters (found 87). | 139
Error | sizes | LineLength | Line is longer than 80 characters (found 110). | 148
Error | sizes | LineLength | Line is longer than 80 characters (found 107). | 152
Error | design | DesignForExtension | Class 'TikaEncodingDetector' looks like designed for extension (can be subclassed), but the method 'guessEncoding' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'TikaEncodingDetector' final or making the method 'guessEncoding' static/final/abstract/empty, or adding allowed annotation for the method. | 157
Error | sizes | LineLength | Line is longer than 80 characters (found 88). | 158
Error | misc | FinalParameters | Parameter is should be final. | 158
Error | misc | FinalParameters | Parameter contentType should be final. | 158
Error | sizes | LineLength | Line is longer than 80 characters (found 110). | 172
Error | misc | FinalParameters | Parameter is should be final. | 172
Error | misc | FinalParameters | Parameter function should be final. | 172
Error | misc | FinalParameters | Parameter html should be final. | 181
Error | misc | FinalParameters | Parameter errors should be final. | 181
Error | sizes | LineLength | Line is longer than 80 characters (found 94). | 183
Error | misc | FinalParameters | Parameter node should be final. | 193
Error | whitespace | NoWhitespaceAfter | '{' is followed by whitespace. | 194
Error | misc | FinalParameters | Parameter node should be final. | 197
Error | misc | FinalParameters | Parameter depth should be final. | 197
Error | sizes | LineLength | Line is longer than 80 characters (found 84). | 198
Error | sizes | LineLength | Line is longer than 80 characters (found 105). | 202
Error | misc | FinalParameters | Parameter node should be final. | 208
Error | misc | FinalParameters | Parameter depth should be final. | 208
Error | misc | FinalParameters | Parameter node should be final. | 214
Error | misc | FinalParameters | Parameter node should be final. | 218
Error | misc | FinalParameters | Parameter depth should be final. | 218
Error | sizes | LineLength | Line is longer than 80 characters (found 104). | 227
Error | sizes | LineLength | Line is longer than 80 characters (found 99). | 238
Error | sizes | LineLength | Line is longer than 80 characters (found 101). | 243
Error | misc | FinalParameters | Parameter node should be final. | 249
Error | misc | FinalParameters | Parameter depth should be final. | 249

### test-resources/src/test/resources/microdata/microdata-basic-expected.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1

### test-resources/src/test/resources/microdata/microdata-itemref-expected.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1

### test-resources/src/test/resources/microdata/microdata-nested-expected.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1

### test-resources/target/test-classes/microdata/microdata-basic-expected.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1

### test-resources/target/test-classes/microdata/microdata-itemref-expected.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1

### test-resources/target/test-classes/microdata/microdata-nested-expected.properties

Severity | Category | Rule | Message | Line
--- | --- | --- | --- | ---
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1