Struts Apps - Checkstyle Results

##### Struts Apps

- Welcome

##### Components

- Struts Apps
- Struts EL
- Struts Extras
- Struts Faces
- Struts Scripting
- Struts Taglib
- Struts Tiles

##### Quick Links

- Apache Struts Home
- Struts 1

##### Project Documentation

- Project Information
- Project Reports
  - Checkstyle
  - CPD Report
  - JavaDocs
  - PMD Report
  - Source Xref
  - Surefire Report

## Checkstyle Results

The following document contains the results of Checkstyle.

## Summary

Files | Infos | Warnings | Errors
--- | --- | --- | ---
5 | 0 | 0 | 111

## Files

Files | I | W | E
--- | --- | --- | ---
org/apache/struts/webapp/el/exercise/Coord.java | 0 | 0 | 10
org/apache/struts/webapp/el/exercise/DynaSetAction.java | 0 | 0 | 3
org/apache/struts/webapp/el/exercise/HtmlSettersAction.java | 0 | 0 | 4
org/apache/struts/webapp/el/exercise/TestBean.java | 0 | 0 | 93
org/apache/struts/webapp/el/exercise/package.html | 0 | 0 | 1

## Rules

Rules | Violations | Severity
--- | --- | ---
PackageHtml | 1 | Error
NewlineAtEndOfFile | 0 | Error
Translation | 0 | Error

JavadocMethod

- allowUndeclaredRTE: `"true"`

66

Error

JavadocType | 1 | Error
JavadocVariable | 8 | Error
JavadocStyle | 1 | Error
ConstantName | 0 | Error
LocalFinalVariableName | 0 | Error
LocalVariableName | 0 | Error
MemberName | 0 | Error
MethodName | 0 | Error
PackageName | 0 | Error
ParameterName | 0 | Error
StaticVariableName | 0 | Error
TypeName | 0 | Error

RegexpHeader

- header
  1: `/\*\s*`
  2: `\*\s*\$Id.*\$`
  3: `\*\s*`
  4: `\*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.`
  5: `\*\s*`
  6: `\*\s*Licensed under the Apache License, Version 2\.0 \(the .License.\);`
  7: `\*\s*you may not use this file except in compliance with the License\.`
  8: `\*\s*You may obtain a copy of the License at`
  9: `\*\s*`
  10: `\*\s*http://www\.apache\.org/licenses/LICENSE\-2\.0`
  11: `\*\s*`
  12: `\*\s*Unless required by applicable law or agreed to in writing, software`
  13: `\*\s*distributed under the License is distributed on an .AS IS. BASIS,`
  14: `\*\s*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.`
  15: `\*\s*See the License for the specific language governing permissions and`
  16: `\*\s*limitations under the License\.`
  17: `\*/\s*`

4

Error

AvoidStarImport | 0 | Error
IllegalImport | 0 | Error
RedundantImport | 0 | Error
UnusedImports | 0 | Error
FileLength | 0 | Error

LineLength

- max: `"120"`
- ignorePattern: `"^ \* @version .*$"`

0

Error

MethodLength | 0 | Error
ParameterNumber | 0 | Error
EmptyForIteratorPad | 0 | Error

NoWhitespaceAfter

- tokens: `"BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"`

0

Error

NoWhitespaceBefore | 0 | Error
OperatorWrap | 0 | Error
ParenPad | 0 | Error
TypecastParenPad | 0 | Error
TabCharacter | 0 | Error
WhitespaceAfter | 0 | Error
WhitespaceAround | 0 | Error
ModifierOrder | 0 | Error
RedundantModifier | 0 | Error
AvoidNestedBlocks | 0 | Error
EmptyBlock | 0 | Error
LeftCurly | 0 | Error
NeedBraces | 0 | Error
RightCurly | 0 | Error
DoubleCheckedLocking | 0 | Error
EmptyStatement | 0 | Error
EqualsHashCode | 0 | Error
IllegalInstantiation | 0 | Error
InnerAssignment | 0 | Error
MagicNumber | 14 | Error
MissingSwitchDefault | 0 | Error
RedundantThrows | 0 | Error
SimplifyBooleanExpression | 0 | Error
SimplifyBooleanReturn | 0 | Error
FinalClass | 0 | Error
HideUtilityClassConstructor | 0 | Error
InterfaceIsType | 0 | Error

VisibilityModifier

- protectedAllowed: `"true"`

1

Error

ArrayTypeStyle | 15 | Error

GenericIllegalRegexp

- message: `"Line has trailing spaces."`
- format: `"\s+$"`

0

Error

TodoComment | 0 | Error
UpperEll | 0 | Error

## Details

### org/apache/struts/webapp/el/exercise/Coord.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| Missing a Javadoc comment. | 28
| Missing a Javadoc comment. | 29
| Missing a Javadoc comment. | 31
| Missing a Javadoc comment. | 34
| Missing a Javadoc comment. | 39
| Missing a Javadoc comment. | 43
| Missing a Javadoc comment. | 47
| Missing a Javadoc comment. | 51
| Missing a Javadoc comment. | 55

### org/apache/struts/webapp/el/exercise/DynaSetAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| Missing a Javadoc comment. | 33
| Missing a Javadoc comment. | 34

### org/apache/struts/webapp/el/exercise/HtmlSettersAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| Unused @param tag for 'actionForm'. | 52
| Expected an @return tag. | 57
| Expected @param tag for 'form'. | 58

### org/apache/struts/webapp/el/exercise/TestBean.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| Missing a Javadoc comment. | 54
| '10' is a magic number. | 56
| Missing a Javadoc comment. | 75
| Missing a Javadoc comment. | 86
| Missing a Javadoc comment. | 90
| Array brackets at illegal position. | 90
| Missing a Javadoc comment. | 100
| Missing a Javadoc comment. | 104
| Missing a Javadoc comment. | 115
| Missing a Javadoc comment. | 119
| Array brackets at illegal position. | 119
| '321.0' is a magic number. | 127
| Missing a Javadoc comment. | 129
| Missing a Javadoc comment. | 133
| First sentence should end with a period. | 138
| Missing a Javadoc comment. | 143
| Missing a Javadoc comment. | 147
| '123.0' is a magic number. | 155
| Missing a Javadoc comment. | 157
| Missing a Javadoc comment. | 161
| Array brackets at illegal position. | 169
| '10' is a magic number. | 169
| '20' is a magic number. | 169
| '30' is a magic number. | 169
| '40' is a magic number. | 169
| Missing a Javadoc comment. | 171
| Missing a Javadoc comment. | 175
| Array brackets at illegal position. | 175
| Missing a Javadoc comment. | 179
| Array brackets at illegal position. | 179
| '10' is a magic number. | 179
| '20' is a magic number. | 179
| '30' is a magic number. | 179
| '40' is a magic number. | 179
| Missing a Javadoc comment. | 181
| Missing a Javadoc comment. | 185
| Missing a Javadoc comment. | 190
| Array brackets at illegal position. | 190
| Missing a Javadoc comment. | 192
| Missing a Javadoc comment. | 196
| Array brackets at illegal position. | 196
| '123' is a magic number. | 203
| Missing a Javadoc comment. | 205
| Missing a Javadoc comment. | 209
| '321' is a magic number. | 217
| Missing a Javadoc comment. | 219
| Missing a Javadoc comment. | 223
| Missing a Javadoc comment. | 234
| Missing a Javadoc comment. | 238
| Array brackets at illegal position. | 238
| Missing a Javadoc comment. | 248
| Missing a Javadoc comment. | 261
| Missing a Javadoc comment. | 265
| '987' is a magic number. | 273
| Missing a Javadoc comment. | 275
| Missing a Javadoc comment. | 279
| Missing a Javadoc comment. | 289
| Missing a Javadoc comment. | 293
| Array brackets at illegal position. | 301
| Missing a Javadoc comment. | 304
| Missing a Javadoc comment. | 308
| Array brackets at illegal position. | 308
| Missing a Javadoc comment. | 312
| Array brackets at illegal position. | 312
| Missing a Javadoc comment. | 315
| Missing a Javadoc comment. | 319
| Missing a Javadoc comment. | 323
| Array brackets at illegal position. | 323
| Missing a Javadoc comment. | 326
| Missing a Javadoc comment. | 330
| Array brackets at illegal position. | 330
| Missing a Javadoc comment. | 332
| Missing a Javadoc comment. | 336
| Array brackets at illegal position. | 336
| Missing a Javadoc comment. | 345
| Missing a Javadoc comment. | 349
| Missing a Javadoc comment. | 358
| Missing a Javadoc comment. | 362
| Missing a Javadoc comment. | 375
| Missing a Javadoc comment. | 379
| Missing a Javadoc comment. | 383
| Variable 'images' must be private and have accessor methods. | 390
| Array brackets at illegal position. | 390
| Missing a Javadoc comment. | 392
| Missing a Javadoc comment. | 396
| Missing a Javadoc comment. | 398
| Missing a Javadoc comment. | 402
| Missing a Javadoc comment. | 406
| Missing a Javadoc comment. | 415
| Missing a Javadoc comment. | 419
| Expected @param tag for 'mapping'. | 429
| Expected @param tag for 'request'. | 429

### org/apache/struts/webapp/el/exercise/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0