Checkstyle Results

The following document contains the results of Checkstyle 9.3 with src/test/resources/iut-caen-checks.xml ruleset.

Summary

Files  Info  Warnings  Errors
12 0 70 0

Files

File  I  W  E
com/kerware/simulateur/Simulateur.java 0 70 0

Rules

Category Rule Violations Severity
coding MagicNumber 47  Warning
MissingSwitchDefault 1  Warning
design DesignForExtension 10  Warning
metrics CyclomaticComplexity
  • max: "15"
1  Warning
sizes LineLength
  • fileExtensions: "java"
  • max: "100"
  • ignorePattern: "^package.*|^import.*|href\s*=\s*"[^"]*"|http://|https://|ftp://"
10  Error
MethodLength
  • max: "50"
  • tokens: "METHOD_DEF"
1  Warning

Details

com/kerware/simulateur/Simulateur.java

Severity Category Rule Message Line
 Warning coding MagicNumber '11294' is a magic number. 29
 Warning coding MagicNumber '28797' is a magic number. 30
 Warning coding MagicNumber '82341' is a magic number. 31
 Warning coding MagicNumber '177106' is a magic number. 32
 Warning coding MagicNumber '6' is a magic number. 35
 Warning coding MagicNumber '0.11' is a magic number. 39
 Warning coding MagicNumber '0.3' is a magic number. 40
 Warning coding MagicNumber '0.41' is a magic number. 41
 Warning coding MagicNumber '0.45' is a magic number. 42
 Warning coding MagicNumber '5' is a magic number. 44
 Warning coding MagicNumber '250000' is a magic number. 48
 Warning coding MagicNumber '500000' is a magic number. 49
 Warning coding MagicNumber '1000000' is a magic number. 50
 Warning coding MagicNumber '5' is a magic number. 53
 Warning coding MagicNumber '0.03' is a magic number. 57
 Warning coding MagicNumber '0.04' is a magic number. 58
 Warning coding MagicNumber '0.04' is a magic number. 59
 Warning coding MagicNumber '4' is a magic number. 61
 Warning coding MagicNumber '0.03' is a magic number. 66
 Warning coding MagicNumber '0.04' is a magic number. 67
 Warning coding MagicNumber '4' is a magic number. 69
 Warning coding MagicNumber '14171' is a magic number. 72
 Warning coding MagicNumber '495' is a magic number. 73
 Warning coding MagicNumber '0.1' is a magic number. 74
 Warning coding MagicNumber '1759' is a magic number. 77
 Warning coding MagicNumber '1929' is a magic number. 79
 Warning coding MagicNumber '3191' is a magic number. 80
 Warning coding MagicNumber '873' is a magic number. 82
 Warning coding MagicNumber '1444' is a magic number. 83
 Warning coding MagicNumber '0.4525' is a magic number. 84
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'getRevenuReference' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'getRevenuReference' static/final/abstract/empty, or adding allowed annotation for the method. 122
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'getDecote' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'getDecote' static/final/abstract/empty, or adding allowed annotation for the method. 126
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'getAbattement' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'getAbattement' static/final/abstract/empty, or adding allowed annotation for the method. 131
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'getNbParts' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'getNbParts' static/final/abstract/empty, or adding allowed annotation for the method. 135
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'getImpotAvantDecote' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'getImpotAvantDecote' static/final/abstract/empty, or adding allowed annotation for the method. 139
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'getImpotNet' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'getImpotNet' static/final/abstract/empty, or adding allowed annotation for the method. 143
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'getRevenuNetDeclatant1' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'getRevenuNetDeclatant1' static/final/abstract/empty, or adding allowed annotation for the method. 147
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'getRevenuNetDeclatant2' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'getRevenuNetDeclatant2' static/final/abstract/empty, or adding allowed annotation for the method. 151
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'getContribExceptionnelle' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'getContribExceptionnelle' static/final/abstract/empty, or adding allowed annotation for the method. 155
 Warning sizes LineLength Line is longer than 100 characters (found 150). 162
 Warning design DesignForExtension Class 'Simulateur' looks like designed for extension (can be subclassed), but the method 'calculImpot' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Simulateur' final or making the method 'calculImpot' static/final/abstract/empty, or adding allowed annotation for the method. 162
 Warning metrics CyclomaticComplexity Cyclomatic Complexity is 52 (max allowed is 15). 162
 Warning sizes MethodLength Method calculImpot length is 286 lines (max allowed is 50). 162
 Warning sizes LineLength Line is longer than 100 characters (found 106). 174
 Warning sizes LineLength Line is longer than 100 characters (found 128). 182
 Warning coding MagicNumber '7' is a magic number. 185
 Warning sizes LineLength Line is longer than 100 characters (found 101). 186
 Warning sizes LineLength Line is longer than 100 characters (found 107). 189
 Warning sizes LineLength Line is longer than 100 characters (found 141). 193
 Warning sizes LineLength Line is longer than 100 characters (found 136). 195
 Warning coding MagicNumber '3' is a magic number. 210
 Warning coding MagicNumber '4' is a magic number. 211
 Warning coding MagicNumber '5' is a magic number. 212
 Warning coding MagicNumber '3' is a magic number. 217
 Warning coding MagicNumber '4' is a magic number. 218
 Warning coding MagicNumber '3' is a magic number. 223
 Warning coding MagicNumber '4' is a magic number. 224
 Warning coding MagicNumber '3' is a magic number. 229
 Warning coding MagicNumber '3' is a magic number. 234
 Warning coding MissingSwitchDefault switch without "default" clause. 278
 Warning coding MagicNumber '0.5' is a magic number. 301
 Warning coding MagicNumber '0.5' is a magic number. 312
 Warning coding MagicNumber '0.5' is a magic number. 322
 Warning sizes LineLength Line is longer than 100 characters (found 108). 340
 Warning sizes LineLength Line is longer than 100 characters (found 103). 342
 Warning coding MagicNumber '5' is a magic number. 346
 Warning sizes LineLength Line is longer than 100 characters (found 109). 349
 Warning coding MagicNumber '5' is a magic number. 366
 Warning coding MagicNumber '5' is a magic number. 387
 Warning coding MagicNumber '0.5' is a magic number. 405