Checkstyle Results
The following document contains the results of Checkstyle 10.14.0 with struts_checks.xml ruleset.
Summary
Files | Info | Warnings | Errors |
---|---|---|---|
31 | 0 | 0 | 245 |
Files
Rules
Category | Rule | Violations | Severity |
---|---|---|---|
coding | MagicNumber | 14 | Error |
design | HideUtilityClassConstructor | 1 | Error |
header | RegexpHeader
|
31 | Error |
javadoc | JavadocMethod
|
7 | Error |
JavadocPackage
|
11 | Error | |
JavadocStyle | 50 | Error | |
misc | FinalParameters | 106 | Error |
NewlineAtEndOfFile | 25 | Error |
Details
examples/MessageResources.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of '/\*\s*'. | 1 |
examples/MessageResources_de.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of '/\*\s*'. | 1 |
examples/MessageResources_en_CA.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Missing a header - not enough lines in file. | 1 |
examples/MessageResources_en_GB.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Missing a header - not enough lines in file. | 1 |
examples/MessageResources_en_US.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Missing a header - not enough lines in file. | 1 |
examples/MessageResources_es.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of '/\*\s*'. | 1 |
examples/MessageResources_fr.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of '/\*\s*'. | 1 |
examples/MessageResources_it.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of '/\*\s*'. | 1 |
examples/MessageResources_pt.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of '/\*\s*'. | 1 |
examples/SuccessAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | misc | FinalParameters | Parameter mapping should be final. | 91 |
Error | misc | FinalParameters | Parameter form should be final. | 92 |
Error | misc | FinalParameters | Parameter request should be final. | 93 |
Error | misc | FinalParameters | Parameter response should be final. | 94 |
examples/TestBean.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 27 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 37 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 40 |
Error | coding | MagicNumber | '45213.451' is a magic number. | 41 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 43 |
Error | coding | MagicNumber | '-123.582F' is a magic number. | 44 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 46 |
Error | coding | MagicNumber | '256' is a magic number. | 47 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 49 |
Error | coding | MagicNumber | '1321546L' is a magic number. | 50 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 52 |
Error | coding | MagicNumber | '257' is a magic number. | 53 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 55 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 58 |
Error | misc | FinalParameters | Parameter booleanValue should be final. | 132 |
Error | misc | FinalParameters | Parameter doubleValue should be final. | 140 |
Error | misc | FinalParameters | Parameter floatValue should be final. | 148 |
Error | misc | FinalParameters | Parameter intValue should be final. | 156 |
Error | misc | FinalParameters | Parameter longValue should be final. | 164 |
Error | misc | FinalParameters | Parameter shortValue should be final. | 172 |
Error | misc | FinalParameters | Parameter stringValue should be final. | 180 |
Error | misc | FinalParameters | Parameter date should be final. | 196 |
examples/bean/ExampleBean.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 28 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 38 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 41 |
Error | coding | MagicNumber | '45213.451' is a magic number. | 42 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 44 |
Error | coding | MagicNumber | '-123.582F' is a magic number. | 45 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 47 |
Error | coding | MagicNumber | '256' is a magic number. | 48 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 50 |
Error | coding | MagicNumber | '1321546L' is a magic number. | 51 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 53 |
Error | coding | MagicNumber | '257' is a magic number. | 54 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 56 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 59 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 62 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 65 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 68 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 71 |
Error | misc | FinalParameters | Parameter booleanValue should be final. | 148 |
Error | misc | FinalParameters | Parameter doubleValue should be final. | 156 |
Error | misc | FinalParameters | Parameter floatValue should be final. | 164 |
Error | misc | FinalParameters | Parameter intValue should be final. | 172 |
Error | misc | FinalParameters | Parameter longValue should be final. | 180 |
Error | misc | FinalParameters | Parameter shortValue should be final. | 188 |
Error | misc | FinalParameters | Parameter stringValue should be final. | 196 |
Error | misc | FinalParameters | Parameter list should be final. | 212 |
Error | misc | FinalParameters | Parameter nested should be final. | 228 |
Error | misc | FinalParameters | Parameter date should be final. | 244 |
Error | misc | FinalParameters | Parameter array should be final. | 260 |
Error | misc | FinalParameters | Parameter html should be final. | 276 |
examples/bean/NestedBean.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 27 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 37 |
Error | misc | FinalParameters | Parameter stringValue should be final. | 64 |
examples/bean/PrepareBeanAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | misc | FinalParameters | Parameter mapping should be final. | 67 |
Error | misc | FinalParameters | Parameter form should be final. | 68 |
Error | misc | FinalParameters | Parameter request should be final. | 69 |
Error | misc | FinalParameters | Parameter response should be final. | 70 |
examples/dyna/ProcessDynaAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 32 |
Error | misc | FinalParameters | Parameter mapping should be final. | 66 |
Error | misc | FinalParameters | Parameter form should be final. | 67 |
Error | misc | FinalParameters | Parameter request should be final. | 68 |
Error | misc | FinalParameters | Parameter response should be final. | 69 |
examples/links/PrepareLinksAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | misc | FinalParameters | Parameter mapping should be final. | 71 |
Error | misc | FinalParameters | Parameter form should be final. | 72 |
Error | misc | FinalParameters | Parameter request should be final. | 73 |
Error | misc | FinalParameters | Parameter response should be final. | 74 |
examples/links/ProcessLinksAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 32 |
Error | misc | FinalParameters | Parameter mapping should be final. | 66 |
Error | misc | FinalParameters | Parameter form should be final. | 67 |
Error | misc | FinalParameters | Parameter request should be final. | 68 |
Error | misc | FinalParameters | Parameter response should be final. | 69 |
examples/localization/ProcessLocalizationAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 36 |
Error | misc | FinalParameters | Parameter mapping should be final. | 70 |
Error | misc | FinalParameters | Parameter form should be final. | 71 |
Error | misc | FinalParameters | Parameter request should be final. | 72 |
Error | misc | FinalParameters | Parameter response should be final. | 73 |
examples/logic/PrepareLogicAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | misc | FinalParameters | Parameter mapping should be final. | 75 |
Error | misc | FinalParameters | Parameter form should be final. | 76 |
Error | misc | FinalParameters | Parameter request should be final. | 77 |
Error | misc | FinalParameters | Parameter response should be final. | 78 |
Error | coding | MagicNumber | '7' is a magic number. | 87 |
examples/multibox/MultiboxActionForm.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 30 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 40 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 43 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 57 |
Error | misc | FinalParameters | Parameter mapping should be final. | 63 |
Error | misc | FinalParameters | Parameter request should be final. | 63 |
Error | misc | FinalParameters | Parameter mapping should be final. | 89 |
Error | misc | FinalParameters | Parameter request should be final. | 90 |
Error | misc | FinalParameters | Parameter colors should be final. | 123 |
Error | misc | FinalParameters | Parameter fruits should be final. | 131 |
examples/multibox/PrepareMultiboxAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | misc | FinalParameters | Parameter mapping should be final. | 67 |
Error | misc | FinalParameters | Parameter form should be final. | 68 |
Error | misc | FinalParameters | Parameter request should be final. | 69 |
Error | misc | FinalParameters | Parameter response should be final. | 70 |
examples/multibox/ProcessMultiboxAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 32 |
Error | misc | FinalParameters | Parameter mapping should be final. | 66 |
Error | misc | FinalParameters | Parameter form should be final. | 67 |
Error | misc | FinalParameters | Parameter request should be final. | 68 |
Error | misc | FinalParameters | Parameter response should be final. | 69 |
examples/options/BookBean.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 24 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 33 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 38 |
Error | misc | FinalParameters | Parameter isbn should be final. | 50 |
Error | misc | FinalParameters | Parameter title should be final. | 50 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 65 |
examples/options/PrepareOptionsAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | misc | FinalParameters | Parameter mapping should be final. | 71 |
Error | misc | FinalParameters | Parameter form should be final. | 72 |
Error | misc | FinalParameters | Parameter request should be final. | 73 |
Error | misc | FinalParameters | Parameter response should be final. | 74 |
Error | coding | MagicNumber | '3' is a magic number. | 156 |
Error | coding | MagicNumber | '4' is a magic number. | 157 |
Error | coding | MagicNumber | '5' is a magic number. | 158 |
examples/options/ProcessOptionsAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 32 |
Error | misc | FinalParameters | Parameter mapping should be final. | 66 |
Error | misc | FinalParameters | Parameter form should be final. | 67 |
Error | misc | FinalParameters | Parameter request should be final. | 68 |
Error | misc | FinalParameters | Parameter response should be final. | 69 |
examples/simple/ProcessSimpleAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 32 |
Error | misc | FinalParameters | Parameter mapping should be final. | 66 |
Error | misc | FinalParameters | Parameter form should be final. | 67 |
Error | misc | FinalParameters | Parameter request should be final. | 68 |
Error | misc | FinalParameters | Parameter response should be final. | 69 |
examples/simple/SimpleActionForm.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 31 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 41 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 44 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 47 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 50 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 53 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 56 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 59 |
Error | misc | FinalParameters | Parameter mapping should be final. | 79 |
Error | misc | FinalParameters | Parameter request should be final. | 79 |
Error | misc | FinalParameters | Parameter mapping should be final. | 104 |
Error | misc | FinalParameters | Parameter request should be final. | 105 |
Error | misc | FinalParameters | Parameter color should be final. | 185 |
Error | misc | FinalParameters | Parameter confirm should be final. | 193 |
Error | misc | FinalParameters | Parameter hidden should be final. | 201 |
Error | misc | FinalParameters | Parameter message should be final. | 209 |
Error | misc | FinalParameters | Parameter name should be final. | 217 |
Error | misc | FinalParameters | Parameter rating should be final. | 225 |
Error | misc | FinalParameters | Parameter secret should be final. | 233 |
examples/token/PrepareTokenAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | misc | FinalParameters | Parameter mapping should be final. | 67 |
Error | misc | FinalParameters | Parameter form should be final. | 68 |
Error | misc | FinalParameters | Parameter request should be final. | 69 |
Error | misc | FinalParameters | Parameter response should be final. | 70 |
examples/token/ProcessTokenAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 35 |
Error | misc | FinalParameters | Parameter mapping should be final. | 69 |
Error | misc | FinalParameters | Parameter form should be final. | 70 |
Error | misc | FinalParameters | Parameter request should be final. | 71 |
Error | misc | FinalParameters | Parameter response should be final. | 72 |
examples/validator/CustomValidator.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | javadoc | JavadocPackage | Missing package-info.java file. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 34 |
Error | design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 39 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 52 |
Error | javadoc | JavadocMethod | @return tag should be present and have description. | 66 |
Error | misc | FinalParameters | Parameter bean should be final. | 67 |
Error | javadoc | JavadocMethod | Expected @param tag for 'bean'. | 67 |
Error | misc | FinalParameters | Parameter va should be final. | 68 |
Error | javadoc | JavadocMethod | Expected @param tag for 'va'. | 68 |
Error | misc | FinalParameters | Parameter field should be final. | 69 |
Error | javadoc | JavadocMethod | Expected @param tag for 'field'. | 69 |
Error | misc | FinalParameters | Parameter errors should be final. | 70 |
Error | javadoc | JavadocMethod | Expected @param tag for 'errors'. | 70 |
Error | misc | FinalParameters | Parameter validator should be final. | 71 |
Error | javadoc | JavadocMethod | Expected @param tag for 'validator'. | 71 |
Error | misc | FinalParameters | Parameter request should be final. | 72 |
Error | javadoc | JavadocMethod | Expected @param tag for 'request'. | 72 |
examples/validator/ProcessValidatorAction.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Error | misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
Error | header | RegexpHeader | Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4 |
Error | javadoc | JavadocStyle | First sentence should end with a period. | 32 |
Error | misc | FinalParameters | Parameter mapping should be final. | 66 |
Error | misc | FinalParameters | Parameter form should be final. | 67 |
Error | misc | FinalParameters | Parameter request should be final. | 68 |
Error | misc | FinalParameters | Parameter response should be final. | 69 |