Checkstyle Results

The following document contains the results of Checkstyle 10.14.0 with struts_checks.xml ruleset.

Summary

Files  Info  Warnings  Errors
8 0 0 25

Files

File  I  W  E
org/apache/struts/apps/scriptingmailreader/Constants.java 0 0 3
org/apache/struts/apps/scriptingmailreader/plugin/MemoryDatabasePlugIn.java 0 0 16
org/apache/struts/apps/scriptingmailreader/resources/AlternateApplicationResources.properties 0 0 1
org/apache/struts/apps/scriptingmailreader/resources/AlternateApplicationResources_ja.properties 0 0 1
org/apache/struts/apps/scriptingmailreader/resources/ApplicationResources.properties 0 0 1
org/apache/struts/apps/scriptingmailreader/resources/ApplicationResources_ja.properties 0 0 1
org/apache/struts/apps/scriptingmailreader/resources/ApplicationResources_ru.properties 0 0 1
struts-scripting.properties 0 0 1

Rules

Category Rule Violations Severity
coding MagicNumber 3  Error
design HideUtilityClassConstructor 1  Error
header RegexpHeader
  • header
    1: /
    2: *
    3: s*
    4: 
    5: *
    6: s*
    7: $Id.*
    8: $
    9: 
    10: *
    11: s*
    12: 
    13: *
    14: s*Copyright
    15: d{4}(-
    16: d{4}|,
    17: d{4})* The Apache Software Fou
    18: datio
    19: .
    20: 
    21: *
    22: s*
    23: 
    24: *
    25: s*Lice
    26: sed u
    27: der the Apache Lice
    28: se, Versio
    29:  2
    30: .0
    31: (the .Lice
    32: se.
    33: );
    34: 
    35: *
    36: s*you may
    37: ot use this file except i
    38:  complia
    39: ce with the Lice
    40: se
    41: .
    42: 
    43: *
    44: s*You may obtai
    45:  a copy of the Lice
    46: se at
    47: 
    48: *
    49: s*
    50: 
    51: *
    52: s*http://www
    53: .apache
    54: .org/lice
    55: ses/LICENSE
    56: -2
    57: .0
    58: 
    59: *
    60: s*
    61: 
    62: *
    63: s*U
    64: less required by applicable law or agreed to i
    65:  writi
    66: g, software
    67: 
    68: *
    69: s*distributed u
    70: der the Lice
    71: se is distributed o
    72:  a
    73:  .AS IS. BASIS,
    74: 
    75: *
    76: s*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied
    77: .
    78: 
    79: *
    80: s*See the Lice
    81: se for the specific la
    82: guage gover
    83: i
    84: g permissio
    85: s a
    86: d
    87: 
    88: *
    89: s*limitatio
    90: s u
    91: der the Lice
    92: se
    93: .
    94: 
    95: */
    96: s*
8  Error
javadoc JavadocMethod
  • validateThrows: "true"
1  Error
JavadocPackage
  • allowLegacy: "true"
2  Error
MissingJavadocMethod 2  Error
misc ArrayTypeStyle 1  Error
FinalParameters 3  Error
NewlineAtEndOfFile 1  Error
modifier ModifierOrder 1  Error
whitespace MethodParamPad 1  Error
OperatorWrap 1  Error

Details

org/apache/struts/apps/scriptingmailreader/Constants.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 design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 34

org/apache/struts/apps/scriptingmailreader/plugin/MemoryDatabasePlugIn.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 modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 74
 Error javadoc MissingJavadocMethod Missing a Javadoc comment. 93
 Error javadoc MissingJavadocMethod Missing a Javadoc comment. 97
 Error misc FinalParameters Parameter pathname should be final. 97
 Error misc FinalParameters Parameter servlet should be final. 136
 Error misc FinalParameters Parameter config should be final. 136
 Error whitespace OperatorWrap '+' should be on a new line. 154
 Error javadoc JavadocMethod @return tag should be present and have description. 179
 Error whitespace MethodParamPad '(' should be on the previous line. 190
 Error coding MagicNumber '1024' is a magic number. 198
 Error coding MagicNumber '1024' is a magic number. 199
 Error misc ArrayTypeStyle Array brackets at illegal position. 201
 Error coding MagicNumber '1024' is a magic number. 201

org/apache/struts/apps/scriptingmailreader/resources/AlternateApplicationResources.properties

Severity Category Rule Message Line
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

org/apache/struts/apps/scriptingmailreader/resources/AlternateApplicationResources_ja.properties

Severity Category Rule Message Line
 Error header RegexpHeader Missing a header - not enough lines in file. 1

org/apache/struts/apps/scriptingmailreader/resources/ApplicationResources.properties

Severity Category Rule Message Line
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

org/apache/struts/apps/scriptingmailreader/resources/ApplicationResources_ja.properties

Severity Category Rule Message Line
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

org/apache/struts/apps/scriptingmailreader/resources/ApplicationResources_ru.properties

Severity Category Rule Message Line
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

struts-scripting.properties

Severity Category Rule Message Line
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1