Checkstyle Results

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

Summary

Files
 Info
 Warnings
 Errors
4 0 0 53

Files

File
 I
 W
 E
Date.java 0 0 28
DateController.java 0 0 10
NumerosValidosException.java 0 0 4
Principal.java 0 0 11

Rules

Category Rule Violations Severity
coding HiddenField 3
 Error
MagicNumber 3
 Error
SimplifyBooleanReturn 1
 Error
design DesignForExtension 8
 Error
HideUtilityClassConstructor 1
 Error
VisibilityModifier 4
 Error
imports AvoidStarImport 1
 Error
javadoc JavadocPackage 1
 Error
JavadocVariable 5
 Error
MissingJavadocMethod 11
 Error
misc FinalParameters 6
 Error
naming StaticVariableName 1
 Error
sizes LineLength
  • fileExtensions: "java"
2
 Error
whitespace FileTabCharacter 4
 Error
NoWhitespaceAfter 1
 Error
WhitespaceAround 1
 Error

Details

Date.java

Severity Category Rule Message Line
 Error
javadoc JavadocPackage Missing package-info.java file. 1
 Error
whitespace FileTabCharacter File contains tab characters (this is the first instance). 3
 Error
javadoc JavadocVariable Missing a Javadoc comment. 3
 Error
design VisibilityModifier Variable 'day' must be private and have accessor methods. 3
 Error
javadoc JavadocVariable Missing a Javadoc comment. 4
 Error
design VisibilityModifier Variable 'month' must be private and have accessor methods. 4
 Error
javadoc JavadocVariable Missing a Javadoc comment. 5
 Error
design VisibilityModifier Variable 'year' must be private and have accessor methods. 5
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 7
 Error
design DesignForExtension Class 'Date' looks like designed for extension (can be subclassed), but the method 'getDay' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Date' final or making the method 'getDay' static/final/abstract/empty, or adding allowed annotation for the method. 11
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 11
 Error
design DesignForExtension Class 'Date' looks like designed for extension (can be subclassed), but the method 'setDay' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Date' final or making the method 'setDay' static/final/abstract/empty, or adding allowed annotation for the method. 15
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 15
 Error
misc FinalParameters Parameter day should be final. 15
 Error
coding HiddenField 'day' hides a field. 15
 Error
design DesignForExtension Class 'Date' looks like designed for extension (can be subclassed), but the method 'getMonth' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Date' final or making the method 'getMonth' static/final/abstract/empty, or adding allowed annotation for the method. 19
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 19
 Error
design DesignForExtension Class 'Date' looks like designed for extension (can be subclassed), but the method 'setMonth' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Date' final or making the method 'setMonth' static/final/abstract/empty, or adding allowed annotation for the method. 23
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 23
 Error
misc FinalParameters Parameter month should be final. 23
 Error
coding HiddenField 'month' hides a field. 23
 Error
design DesignForExtension Class 'Date' looks like designed for extension (can be subclassed), but the method 'getYear' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Date' final or making the method 'getYear' static/final/abstract/empty, or adding allowed annotation for the method. 27
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 27
 Error
design DesignForExtension Class 'Date' looks like designed for extension (can be subclassed), but the method 'setYear' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Date' final or making the method 'setYear' static/final/abstract/empty, or adding allowed annotation for the method. 31
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 31
 Error
misc FinalParameters Parameter year should be final. 31
 Error
coding HiddenField 'year' hides a field. 31
 Error
design DesignForExtension Class 'Date' looks like designed for extension (can be subclassed), but the method 'toString' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Date' final or making the method 'toString' static/final/abstract/empty, or adding allowed annotation for the method. 35

DateController.java

Severity Category Rule Message Line
 Error
whitespace FileTabCharacter File contains tab characters (this is the first instance). 4
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 4
 Error
design DesignForExtension Class 'DateController' looks like designed for extension (can be subclassed), but the method 'isLeapYear' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'DateController' final or making the method 'isLeapYear' static/final/abstract/empty, or adding allowed annotation for the method. 8
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 8
 Error
misc FinalParameters Parameter t should be final. 8
 Error
sizes LineLength Line is longer than 80 characters (found 94). 11
 Error
coding MagicNumber '4' is a magic number. 13
 Error
coding MagicNumber '100' is a magic number. 14
 Error
coding SimplifyBooleanReturn Conditional logic can be removed. 15
 Error
coding MagicNumber '400' is a magic number. 15

NumerosValidosException.java

Severity Category Rule Message Line
 Error
whitespace WhitespaceAround '{' is not preceded with whitespace. 2
 Error
whitespace FileTabCharacter File contains tab characters (this is the first instance). 3
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 3
 Error
misc FinalParameters Parameter errorMessage should be final. 3

Principal.java

Severity Category Rule Message Line
 Error
imports AvoidStarImport Using the '.*' form of import should be avoided - java.util.*. 2
 Error
design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 4
 Error
whitespace FileTabCharacter File contains tab characters (this is the first instance). 5
 Error
javadoc JavadocVariable Missing a Javadoc comment. 5
 Error
naming StaticVariableName Name 'TECLADO' must match pattern '^[a-z][a-zA-Z0-9]*$'. 5
 Error
design VisibilityModifier Variable 'TECLADO' must be private and have accessor methods. 5
 Error
javadoc JavadocVariable Missing a Javadoc comment. 6
 Error
javadoc MissingJavadocMethod Missing a Javadoc comment. 8
 Error
misc FinalParameters Parameter args should be final. 8
 Error
whitespace NoWhitespaceAfter '{' is followed by whitespace. 10
 Error
sizes LineLength Line is longer than 80 characters (found 81). 31