Struts Scripting - Checkstyle Results

##### Struts Scripting

- Welcome
- User Guide
- Source Guide

##### Components

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

##### Quick Links

- Javadoc
- 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
--- | --- | --- | ---
6 | 0 | 0 | 9

## Files

Files | I | W | E
--- | --- | --- | ---
org/apache/struts/scripting/BSFManagerFilter.java | 0 | 0 | 1
org/apache/struts/scripting/RequestToVariableFilter.java | 0 | 0 | 1
org/apache/struts/scripting/ScriptAction.java | 0 | 0 | 5
org/apache/struts/scripting/StrutsInfo.java | 0 | 0 | 1
org/apache/struts/scripting/TestFilter.java | 0 | 0 | 1

## Rules

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

JavadocMethod

- allowUndeclaredRTE: `"true"`

0

Error

JavadocType | 0 | Error
JavadocVariable | 0 | Error
JavadocStyle | 0 | 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*`

5

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 | 0 | 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"`

4

Error

ArrayTypeStyle | 0 | Error

GenericIllegalRegexp

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

0

Error

TodoComment | 0 | Error
UpperEll | 0 | Error

## Details

### org/apache/struts/scripting/BSFManagerFilter.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

### org/apache/struts/scripting/RequestToVariableFilter.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

### org/apache/struts/scripting/ScriptAction.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
| Variable 'file' must be private and have accessor methods. | 496
| Variable 'lang' must be private and have accessor methods. | 499
| Variable 'timeLastLoaded' must be private and have accessor methods. | 502
| Variable 'string' must be private and have accessor methods. | 505

### org/apache/struts/scripting/StrutsInfo.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

### org/apache/struts/scripting/TestFilter.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