The following document contains the results of Checkstyle 8.26 with development/dsol-checks.xml ruleset.
Files | ![]() |
![]() |
![]() |
---|---|---|---|
12 | 4 | 171 | 0 |
Category | Rule | Violations | Severity |
---|---|---|---|
coding | HiddenField
|
2 | ![]() |
InnerAssignment | 1 | ![]() | |
MissingSwitchDefault | 2 | ![]() | |
design | DesignForExtension | 1 | ![]() |
VisibilityModifier | 31 | ![]() | |
javadoc | JavadocStyle
|
5 | ![]() |
misc | FinalParameters | 62 | ![]() |
TodoComment | 1 | ![]() | |
modifier | ModifierOrder | 36 | ![]() |
RedundantModifier | 22 | ![]() | |
naming | ConstantName | 3 | ![]() |
StaticVariableName | 3 | ![]() | |
sizes | FileLength | 1 | ![]() |
LineLength
|
1 | ![]() | |
MethodLength | 3 | ![]() | |
whitespace | WhitespaceAfter | 1 | ![]() |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'id' must be private and have accessor methods. | 25 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 21 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | MethodLength | Method length is 194 lines (max allowed is 150). | 68 |
![]() |
coding | HiddenField | 'simulator' hides a field. | 456 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 476 |
![]() |
misc | FinalParameters | Parameter obj should be final. | 597 |
![]() |
design | VisibilityModifier | Variable 'offset' must be private and have accessor methods. | 708 |
![]() |
design | VisibilityModifier | Variable 'newColor' must be private and have accessor methods. | 711 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 718 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 749 |
![]() |
naming | ConstantName | Name 'compareMargin' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 749 |
![]() |
misc | FinalParameters | Parameter o should be final. | 752 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 29 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 32 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 35 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 38 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 41 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 44 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 47 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 47 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 79 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'id' must be private and have accessor methods. | 49 |
![]() |
design | VisibilityModifier | Variable 'simulator' must be private and have accessor methods. | 52 |
![]() |
naming | StaticVariableName | Name 'PORT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 55 |
![]() |
design | VisibilityModifier | Variable 'PORT' must be private and have accessor methods. | 55 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 58 |
![]() |
design | VisibilityModifier | Variable 'serverSocket' must be private and have accessor methods. | 61 |
![]() |
design | VisibilityModifier | Variable 'acceptThread' must be private and have accessor methods. | 73 |
![]() |
misc | FinalParameters | Parameter event should be final. | 193 |
![]() |
misc | FinalParameters | Parameter newSimulator should be final. | 251 |
![]() |
misc | FinalParameters | Parameter newNetwork should be final. | 251 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 48 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 51 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 54 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 57 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 60 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 63 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 66 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 69 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 72 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 75 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 78 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 81 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 84 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 87 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 90 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 93 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 96 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 99 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 102 |
![]() |
design | VisibilityModifier | Variable 'streams' must be private and have accessor methods. | 105 |
![]() |
design | VisibilityModifier | Variable 'routes' must be private and have accessor methods. | 108 |
![]() |
misc | FinalParameters | Parameter o1 should be final. | 122 |
![]() |
misc | FinalParameters | Parameter o2 should be final. | 122 |
![]() |
whitespace | WhitespaceAfter | ',' is not followed by whitespace. | 141 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 278 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 310 |
![]() |
coding | MissingSwitchDefault | switch without "default" clause. | 333 |
![]() |
coding | MissingSwitchDefault | switch without "default" clause. | 355 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 398 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 401 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 404 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 407 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 414 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 430 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 451 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 468 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 540 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 550 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 561 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 628 |
![]() |
misc | FinalParameters | Parameter steps should be final. | 634 |
![]() |
coding | InnerAssignment | Inner assignments should be avoided. | 638 |
![]() |
misc | FinalParameters | Parameter e should be final. | 863 |
![]() |
design | VisibilityModifier | Variable 'testPanel' must be private and have accessor methods. | 872 |
![]() |
design | VisibilityModifier | Variable 'checkBoxPanel' must be private and have accessor methods. | 875 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | FileLength | File length is 2,838 lines (max allowed is 2,000). | 1 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 65 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 68 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 71 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 74 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 77 |
![]() |
design | VisibilityModifier | Variable 'tokenisedRules' must be private and have accessor methods. | 80 |
![]() |
design | VisibilityModifier | Variable 'variables' must be private and have accessor methods. | 83 |
![]() |
design | VisibilityModifier | Variable 'variablesInDefinitionOrder' must be private and have accessor methods. | 86 |
![]() |
design | VisibilityModifier | Variable 'detectors' must be private and have accessor methods. | 89 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 92 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 95 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 98 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 101 |
![]() |
design | VisibilityModifier | Variable 'numberOfConflictGroups' must be private and have accessor methods. | 104 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 127 |
![]() |
design | VisibilityModifier | Variable 'displayBackground' must be private and have accessor methods. | 137 |
![]() |
design | VisibilityModifier | Variable 'displayObjectLocations' must be private and have accessor methods. | 140 |
![]() |
misc | FinalParameters | Parameter controllerName should be final. | 164 |
![]() |
misc | FinalParameters | Parameter display should be final. | 164 |
![]() |
misc | FinalParameters | Parameter controllerName should be final. | 183 |
![]() |
sizes | MethodLength | Method length is 151 lines (max allowed is 150). | 252 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 134). | 556 |
![]() |
naming | StaticVariableName | Name 'BIND_UNARY_MINUS' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 919 |
![]() |
misc | FinalParameters | Parameter tokens should be final. | 1175 |
![]() |
sizes | MethodLength | Method length is 269 lines (max allowed is 150). | 1386 |
![]() |
misc | FinalParameters | Parameter name should be final. | 1697 |
![]() |
misc | FinalParameters | Parameter stream should be final. | 1697 |
![]() |
misc | FinalParameters | Parameter flags should be final. | 1697 |
![]() |
misc | FinalParameters | Parameter location should be final. | 1697 |
![]() |
misc | FinalParameters | Parameter detectorId should be final. | 1751 |
![]() |
misc | FinalParameters | Parameter detectingGTU should be final. | 1751 |
![]() |
misc | FinalParameters | Parameter event should be final. | 1812 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 1970 |
![]() |
design | VisibilityModifier | Variable 'flags' must be private and have accessor methods. | 2096 |
![]() |
design | VisibilityModifier | Variable 'value' must be private and have accessor methods. | 2099 |
![]() |
design | VisibilityModifier | Variable 'timerMax10' must be private and have accessor methods. | 2102 |
![]() |
design | VisibilityModifier | Variable 'color' must be private and have accessor methods. | 2105 |
![]() |
design | VisibilityModifier | Variable 'name' must be private and have accessor methods. | 2108 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 2110 |
![]() |
design | VisibilityModifier | Variable 'stream' must be private and have accessor methods. | 2111 |
![]() |
design | VisibilityModifier | Variable 'refCount' must be private and have accessor methods. | 2114 |
![]() |
design | VisibilityModifier | Variable 'updateTime10' must be private and have accessor methods. | 2117 |
![]() |
design | VisibilityModifier | Variable 'startSource' must be private and have accessor methods. | 2120 |
![]() |
design | VisibilityModifier | Variable 'endSource' must be private and have accessor methods. | 2123 |
![]() |
naming | StaticVariableName | Name 'ROWLETTERS' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 2129 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 2182 |
![]() |
misc | FinalParameters | Parameter trafCOD should be final. | 2182 |
![]() |
misc | FinalParameters | Parameter sensor should be final. | 2216 |
![]() |
misc | FinalParameters | Parameter newValue should be final. | 2338 |
![]() |
misc | FinalParameters | Parameter timeStamp10 should be final. | 2338 |
![]() |
misc | FinalParameters | Parameter cause should be final. | 2338 |
![]() |
misc | FinalParameters | Parameter trafCOD should be final. | 2338 |
![]() |
coding | HiddenField | 'trafCOD' hides a field. | 2338 |
![]() |
misc | FinalParameters | Parameter colorValue should be final. | 2492 |
![]() |
misc | FinalParameters | Parameter value10 should be final. | 2541 |
![]() |
misc | FinalParameters | Parameter startSource should be final. | 2565 |
![]() |
misc | FinalParameters | Parameter endSource should be final. | 2589 |
![]() |
misc | FinalParameters | Parameter printFlags should be final. | 2620 |
![]() |
misc | FinalParameters | Parameter event should be final. | 2729 |
![]() |
design | VisibilityModifier | Variable 'cause' must be private and have accessor methods. | 2750 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 2756 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'defaultInitialDelay' must be private and have accessor methods. | 54 |
![]() |
design | DesignForExtension | Class 'TrafCODDisplay' looks like designed for extension (can be subclassed), but the method 'paintComponent' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'TrafCODDisplay' final or making the method 'paintComponent' static/final/abstract/empty, or adding allowed annotation for the method. | 86 |
![]() |
misc | FinalParameters | Parameter e should be final. | 108 |
![]() |
misc | FinalParameters | Parameter e should be final. | 115 |
![]() |
misc | FinalParameters | Parameter e should be final. | 132 |
![]() |
misc | FinalParameters | Parameter e should be final. | 139 |
![]() |
misc | FinalParameters | Parameter e should be final. | 146 |
![]() |
misc | FinalParameters | Parameter e should be final. | 153 |
![]() |
misc | FinalParameters | Parameter e should be final. | 160 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 173 |
![]() |
naming | ConstantName | Name 'xOffset' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 217 |
![]() |
naming | ConstantName | Name 'yOffset' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 220 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 229 |
![]() |
misc | FinalParameters | Parameter center should be final. | 229 |
![]() |
misc | FinalParameters | Parameter id should be final. | 229 |
![]() |
misc | FinalParameters | Parameter description should be final. | 229 |
![]() |
misc | FinalParameters | Parameter g2 should be final. | 241 |
![]() |
misc | FinalParameters | Parameter event should be final. | 251 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 314 |
![]() |
misc | FinalParameters | Parameter testX should be final. | 325 |
![]() |
misc | FinalParameters | Parameter testY should be final. | 325 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 400 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 400 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 407 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 407 |
![]() |
misc | FinalParameters | Parameter weak should be final. | 407 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 414 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 414 |
![]() |
misc | FinalParameters | Parameter position should be final. | 414 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 421 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 421 |
![]() |
misc | FinalParameters | Parameter position should be final. | 421 |
![]() |
misc | FinalParameters | Parameter weak should be final. | 421 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 429 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 429 |
![]() |
misc | FinalParameters | Parameter trafficLightColor should be final. | 443 |
![]() |
misc | FinalParameters | Parameter g2 should be final. | 454 |