The following document contains the results of Checkstyle 6.2 with development/dsol-checks.xml ruleset.
Category | Rule | Violations | Severity |
---|---|---|---|
coding | HiddenField
|
1 | ![]() |
InnerAssignment | 1 | ![]() | |
MissingSwitchDefault | 2 | ![]() | |
design | DesignForExtension | 22 | ![]() |
VisibilityModifier | 28 | ![]() | |
javadoc | JavadocMethod | 1 | ![]() |
JavadocStyle
|
5 | ![]() | |
misc | FinalParameters | 61 | ![]() |
modifier | ModifierOrder | 35 | ![]() |
RedundantModifier | 9 | ![]() | |
naming | ConstantName | 2 | ![]() |
StaticVariableName | 3 | ![]() | |
sizes | FileLength | 1 | ![]() |
LineLength
|
5 | ![]() | |
MethodLength | 2 | ![]() | |
whitespace | WhitespaceAfter | 1 | ![]() |
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 |
![]() |
design | DesignForExtension | Method 'setClientSocket' is not designed for extension - needs to be abstract, final or empty. | 129 |
![]() |
design | DesignForExtension | Method 'getClientSocket' is not designed for extension - needs to be abstract, final or empty. | 161 |
![]() |
design | DesignForExtension | Method 'notify' is not designed for extension - needs to be abstract, final or empty. | 192 |
![]() |
misc | FinalParameters | Parameter event should be final. | 193 |
![]() |
design | DesignForExtension | Method 'getId' is not designed for extension - needs to be abstract, final or empty. | 227 |
![]() |
design | DesignForExtension | Method 'updateDetector' is not designed for extension - needs to be abstract, final or empty. | 234 |
![]() |
design | DesignForExtension | Method 'clone' is not designed for extension - needs to be abstract, final or empty. | 243 |
![]() |
misc | FinalParameters | Parameter newSimulator should be final. | 244 |
![]() |
misc | FinalParameters | Parameter newNetwork should be final. | 244 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 26 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 33 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 36 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 39 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 42 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 45 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 48 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 51 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 51 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 83 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 130). | 87 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 133). | 95 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 49 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 52 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 55 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 58 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 61 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 64 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 67 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 70 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 73 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 76 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 79 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 82 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 85 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 88 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 91 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 94 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 97 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 100 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 103 |
![]() |
design | VisibilityModifier | Variable 'streams' must be private and have accessor methods. | 106 |
![]() |
design | VisibilityModifier | Variable 'routes' must be private and have accessor methods. | 109 |
![]() |
misc | FinalParameters | Parameter o1 should be final. | 123 |
![]() |
misc | FinalParameters | Parameter o2 should be final. | 123 |
![]() |
whitespace | WhitespaceAfter | ',' is not followed by whitespace. | 142 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 279 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 311 |
![]() |
coding | MissingSwitchDefault | switch without "default" clause. | 334 |
![]() |
coding | MissingSwitchDefault | switch without "default" clause. | 356 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 399 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 402 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 405 |
![]() |
modifier | ModifierOrder | 'private' modifier out of order with the JLS suggestions. | 408 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 627 |
![]() |
misc | FinalParameters | Parameter steps should be final. | 633 |
![]() |
coding | InnerAssignment | Inner assignments should be avoided. | 637 |
![]() |
design | DesignForExtension | Method 'render' is not designed for extension - needs to be abstract, final or empty. | 714 |
![]() |
misc | FinalParameters | Parameter e should be final. | 862 |
![]() |
design | VisibilityModifier | Variable 'testPanel' must be private and have accessor methods. | 871 |
![]() |
design | VisibilityModifier | Variable 'checkBoxPanel' must be private and have accessor methods. | 874 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | FileLength | File length is 2,826 lines (max allowed is 2,000). | 1 |
![]() |
design | VisibilityModifier | Variable 'controllerName' must be private and have accessor methods. | 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 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 80 |
![]() |
design | VisibilityModifier | Variable 'trafcodRules' must be private and have accessor methods. | 83 |
![]() |
design | VisibilityModifier | Variable 'tokenisedRules' must be private and have accessor methods. | 86 |
![]() |
design | VisibilityModifier | Variable 'variables' must be private and have accessor methods. | 89 |
![]() |
design | VisibilityModifier | Variable 'variablesInDefinitionOrder' must be private and have accessor methods. | 92 |
![]() |
design | VisibilityModifier | Variable 'detectors' must be private and have accessor methods. | 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 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 104 |
![]() |
modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 107 |
![]() |
design | VisibilityModifier | Variable 'numberOfConflictGroups' must be private and have accessor methods. | 110 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 133 |
![]() |
misc | FinalParameters | Parameter controllerName should be final. | 155 |
![]() |
misc | FinalParameters | Parameter display should be final. | 157 |
![]() |
misc | FinalParameters | Parameter controllerName should be final. | 230 |
![]() |
misc | FinalParameters | Parameter display should be final. | 230 |
![]() |
sizes | MethodLength | Method length is 219 lines (max allowed is 150). | 248 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 129). | 408 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 129). | 413 |
![]() |
design | DesignForExtension | Method 'checkConsistency' is not designed for extension - needs to be abstract, final or empty. | 473 |
![]() |
misc | FinalParameters | Parameter sensors should be final. | 512 |
![]() |
naming | StaticVariableName | Name 'BIND_UNARY_MINUS' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 910 |
![]() |
misc | FinalParameters | Parameter tokens should be final. | 1166 |
![]() |
sizes | MethodLength | Method length is 271 lines (max allowed is 150). | 1377 |
![]() |
misc | FinalParameters | Parameter name should be final. | 1690 |
![]() |
misc | FinalParameters | Parameter stream should be final. | 1690 |
![]() |
misc | FinalParameters | Parameter flags should be final. | 1690 |
![]() |
misc | FinalParameters | Parameter location should be final. | 1690 |
![]() |
design | DesignForExtension | Method 'getSimulator' is not designed for extension - needs to be abstract, final or empty. | 1728 |
![]() |
design | DesignForExtension | Method 'getStructureNumber' is not designed for extension - needs to be abstract, final or empty. | 1737 |
![]() |
design | DesignForExtension | Method 'updateDetector' is not designed for extension - needs to be abstract, final or empty. | 1743 |
![]() |
misc | FinalParameters | Parameter detectorId should be final. | 1744 |
![]() |
misc | FinalParameters | Parameter detectingGTU should be final. | 1744 |
![]() |
design | DesignForExtension | Method 'traceVariablesOfStream' is not designed for extension - needs to be abstract, final or empty. | 1761 |
![]() |
design | DesignForExtension | Method 'traceVariable' is not designed for extension - needs to be abstract, final or empty. | 1786 |
![]() |
design | DesignForExtension | Method 'notify' is not designed for extension - needs to be abstract, final or empty. | 1805 |
![]() |
misc | FinalParameters | Parameter event should be final. | 1806 |
![]() |
design | DesignForExtension | Method 'fireTrafCODEvent' is not designed for extension - needs to be abstract, final or empty. | 1876 |
![]() |
design | DesignForExtension | Method 'getId' is not designed for extension - needs to be abstract, final or empty. | 1889 |
![]() |
design | VisibilityModifier | Variable 'flags' must be private and have accessor methods. | 2100 |
![]() |
design | VisibilityModifier | Variable 'value' must be private and have accessor methods. | 2103 |
![]() |
design | VisibilityModifier | Variable 'timerMax10' must be private and have accessor methods. | 2106 |
![]() |
design | VisibilityModifier | Variable 'color' must be private and have accessor methods. | 2109 |
![]() |
design | VisibilityModifier | Variable 'name' must be private and have accessor methods. | 2112 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 2114 |
![]() |
design | VisibilityModifier | Variable 'stream' must be private and have accessor methods. | 2115 |
![]() |
design | VisibilityModifier | Variable 'refCount' must be private and have accessor methods. | 2118 |
![]() |
design | VisibilityModifier | Variable 'updateTime10' must be private and have accessor methods. | 2121 |
![]() |
design | VisibilityModifier | Variable 'startSource' must be private and have accessor methods. | 2124 |
![]() |
design | VisibilityModifier | Variable 'endSource' must be private and have accessor methods. | 2127 |
![]() |
naming | StaticVariableName | Name 'ROWLETTERS' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 2133 |
![]() |
misc | FinalParameters | Parameter trafCOD should be final. | 2172 |
![]() |
misc | FinalParameters | Parameter sensor should be final. | 2206 |
![]() |
misc | FinalParameters | Parameter newValue should be final. | 2328 |
![]() |
misc | FinalParameters | Parameter timeStamp10 should be final. | 2328 |
![]() |
misc | FinalParameters | Parameter cause should be final. | 2328 |
![]() |
misc | FinalParameters | Parameter trafCOD should be final. | 2328 |
![]() |
coding | HiddenField | 'trafCOD' hides a field. | 2328 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 147). | 2386 |
![]() |
misc | FinalParameters | Parameter colorValue should be final. | 2481 |
![]() |
misc | FinalParameters | Parameter value10 should be final. | 2530 |
![]() |
misc | FinalParameters | Parameter startSource should be final. | 2554 |
![]() |
misc | FinalParameters | Parameter endSource should be final. | 2578 |
![]() |
misc | FinalParameters | Parameter printFlags should be final. | 2609 |
![]() |
misc | FinalParameters | Parameter event should be final. | 2718 |
![]() |
design | VisibilityModifier | Variable 'cause' must be private and have accessor methods. | 2739 |
![]() |
javadoc | JavadocMethod | Missing a Javadoc comment. | 2750 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'defaultInitialDelay' must be private and have accessor methods. | 54 |
![]() |
design | DesignForExtension | Method 'paintComponent' is not designed for extension - needs to be abstract, final or empty. | 68 |
![]() |
design | DesignForExtension | Method 'addTrafCODObject' is not designed for extension - needs to be abstract, final or empty. | 83 |
![]() |
design | DesignForExtension | Method 'mouseDragged' is not designed for extension - needs to be abstract, final or empty. | 89 |
![]() |
misc | FinalParameters | Parameter e should be final. | 90 |
![]() |
design | DesignForExtension | Method 'mouseMoved' is not designed for extension - needs to be abstract, final or empty. | 96 |
![]() |
misc | FinalParameters | Parameter e should be final. | 97 |
![]() |
misc | FinalParameters | Parameter e should be final. | 114 |
![]() |
misc | FinalParameters | Parameter e should be final. | 121 |
![]() |
misc | FinalParameters | Parameter e should be final. | 128 |
![]() |
design | DesignForExtension | Method 'mouseEntered' is not designed for extension - needs to be abstract, final or empty. | 134 |
![]() |
misc | FinalParameters | Parameter e should be final. | 135 |
![]() |
design | DesignForExtension | Method 'mouseExited' is not designed for extension - needs to be abstract, final or empty. | 141 |
![]() |
misc | FinalParameters | Parameter e should be final. | 142 |
![]() |
javadoc | JavadocStyle | First sentence should end with a period. | 155 |
![]() |
naming | ConstantName | Name 'xOffset' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 196 |
![]() |
naming | ConstantName | Name 'yOffset' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. | 199 |
![]() |
misc | FinalParameters | Parameter center should be final. | 207 |
![]() |
misc | FinalParameters | Parameter description should be final. | 207 |
![]() |
misc | FinalParameters | Parameter g2 should be final. | 218 |
![]() |
misc | FinalParameters | Parameter event should be final. | 228 |
![]() |
misc | FinalParameters | Parameter testX should be final. | 293 |
![]() |
misc | FinalParameters | Parameter testY should be final. | 293 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 361 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 361 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 368 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 368 |
![]() |
misc | FinalParameters | Parameter weak should be final. | 368 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 375 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 375 |
![]() |
misc | FinalParameters | Parameter position should be final. | 375 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 382 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 382 |
![]() |
misc | FinalParameters | Parameter position should be final. | 382 |
![]() |
misc | FinalParameters | Parameter weak should be final. | 382 |
![]() |
misc | FinalParameters | Parameter listener should be final. | 390 |
![]() |
misc | FinalParameters | Parameter eventType should be final. | 390 |
![]() |
misc | FinalParameters | Parameter trafficLightColor should be final. | 404 |
![]() |
misc | FinalParameters | Parameter g2 should be final. | 415 |