Checkstyle Results

The following document contains the results of Checkstyle 6.2 with development/dsol-checks.xml ruleset. rss feed

Summary

Files  Info  Warnings  Errors
7 6 154 0

Rules

Category Rule Violations Severity
coding HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
1  Warning
InnerAssignment 1  Warning
MissingSwitchDefault 2  Warning
design DesignForExtension 16  Warning
VisibilityModifier 24  Warning
javadoc JavadocMethod 1  Warning
JavadocStyle
  • checkHtml: "false"
5  Warning
misc FinalParameters 56  Warning
modifier ModifierOrder 34  Warning
RedundantModifier 8  Warning
naming ConstantName 2  Warning
StaticVariableName 2  Warning
sizes FileLength 1  Warning
LineLength
  • max: "128"
4  Info
MethodLength 2  Info
whitespace WhitespaceAfter 1  Warning

Details

org/opentrafficsim/trafficcontrol/TrafficController.java

Severity Category Rule Message Line
 Warning modifier RedundantModifier Redundant 'public' modifier. 24
 Warning modifier RedundantModifier Redundant 'public' modifier. 31
 Warning modifier RedundantModifier Redundant 'final' modifier. 34
 Warning modifier RedundantModifier Redundant 'final' modifier. 37
 Warning modifier RedundantModifier Redundant 'final' modifier. 40
 Warning modifier RedundantModifier Redundant 'final' modifier. 43
 Warning modifier RedundantModifier Redundant 'public' modifier. 46
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 46
 Warning modifier RedundantModifier Redundant 'public' modifier. 78
 Info sizes LineLength Line is longer than 128 characters (found 130). 82
 Info sizes LineLength Line is longer than 128 characters (found 133). 90

org/opentrafficsim/trafficcontrol/trafcod/Diagram.java

Severity Category Rule Message Line
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 49
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 52
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 55
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 58
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 61
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 64
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 67
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 70
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 73
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 76
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 79
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 82
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 85
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 88
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 91
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 94
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 97
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 100
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 103
 Warning design VisibilityModifier Variable 'streams' must be private and have accessor methods. 106
 Warning design VisibilityModifier Variable 'routes' must be private and have accessor methods. 109
 Warning misc FinalParameters Parameter o1 should be final. 123
 Warning misc FinalParameters Parameter o2 should be final. 123
 Warning whitespace WhitespaceAfter ',' is not followed by whitespace. 142
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 279
 Warning javadoc JavadocStyle First sentence should end with a period. 311
 Warning coding MissingSwitchDefault switch without "default" clause. 334
 Warning coding MissingSwitchDefault switch without "default" clause. 356
 Warning modifier ModifierOrder 'private' modifier out of order with the JLS suggestions. 399
 Warning modifier ModifierOrder 'private' modifier out of order with the JLS suggestions. 402
 Warning modifier ModifierOrder 'private' modifier out of order with the JLS suggestions. 405
 Warning modifier ModifierOrder 'private' modifier out of order with the JLS suggestions. 408
 Warning javadoc JavadocStyle First sentence should end with a period. 627
 Warning misc FinalParameters Parameter steps should be final. 633
 Warning coding InnerAssignment Inner assignments should be avoided. 637
 Warning design DesignForExtension Method 'render' is not designed for extension - needs to be abstract, final or empty. 714
 Warning misc FinalParameters Parameter e should be final. 862
 Warning design VisibilityModifier Variable 'testPanel' must be private and have accessor methods. 871
 Warning design VisibilityModifier Variable 'checkBoxPanel' must be private and have accessor methods. 874

org/opentrafficsim/trafficcontrol/trafcod/TrafCOD.java

Severity Category Rule Message Line
 Warning sizes FileLength File length is 2,688 lines (max allowed is 2,000). 1
 Warning design VisibilityModifier Variable 'controllerName' must be private and have accessor methods. 59
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 62
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 65
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 68
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 71
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 74
 Warning design VisibilityModifier Variable 'trafcodRules' must be private and have accessor methods. 77
 Warning design VisibilityModifier Variable 'tokenisedRules' must be private and have accessor methods. 80
 Warning design VisibilityModifier Variable 'variables' must be private and have accessor methods. 83
 Warning design VisibilityModifier Variable 'variablesInDefinitionOrder' must be private and have accessor methods. 86
 Warning design VisibilityModifier Variable 'detectors' must be private and have accessor methods. 89
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 92
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 95
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 98
 Warning modifier ModifierOrder 'static' modifier out of order with the JLS suggestions. 101
 Warning design VisibilityModifier Variable 'numberOfConflictGroups' must be private and have accessor methods. 104
 Warning javadoc JavadocStyle First sentence should end with a period. 127
 Warning misc FinalParameters Parameter controllerName should be final. 149
 Warning misc FinalParameters Parameter display should be final. 151
 Info sizes MethodLength Method length is 219 lines (max allowed is 150). 229
 Info sizes LineLength Line is longer than 128 characters (found 129). 389
 Info sizes LineLength Line is longer than 128 characters (found 129). 394
 Warning design DesignForExtension Method 'checkConsistency' is not designed for extension - needs to be abstract, final or empty. 454
 Warning misc FinalParameters Parameter sensors should be final. 493
 Warning naming StaticVariableName Name 'BIND_UNARY_MINUS' must match pattern '^[a-z][a-zA-Z0-9]*$'. 891
 Warning misc FinalParameters Parameter tokens should be final. 1147
 Info sizes MethodLength Method length is 271 lines (max allowed is 150). 1358
 Warning misc FinalParameters Parameter name should be final. 1671
 Warning misc FinalParameters Parameter stream should be final. 1671
 Warning misc FinalParameters Parameter flags should be final. 1671
 Warning misc FinalParameters Parameter location should be final. 1671
 Warning design DesignForExtension Method 'getSimulator' is not designed for extension - needs to be abstract, final or empty. 1709
 Warning design DesignForExtension Method 'getStructureNumber' is not designed for extension - needs to be abstract, final or empty. 1718
 Warning design DesignForExtension Method 'updateDetector' is not designed for extension - needs to be abstract, final or empty. 1724
 Warning misc FinalParameters Parameter detectorId should be final. 1725
 Warning misc FinalParameters Parameter detectingGTU should be final. 1725
 Warning design DesignForExtension Method 'traceVariablesOfStream' is not designed for extension - needs to be abstract, final or empty. 1742
 Warning design DesignForExtension Method 'traceVariable' is not designed for extension - needs to be abstract, final or empty. 1767
 Warning design DesignForExtension Method 'notify' is not designed for extension - needs to be abstract, final or empty. 1786
 Warning misc FinalParameters Parameter event should be final. 1787
 Warning design DesignForExtension Method 'fireTrafCODEvent' is not designed for extension - needs to be abstract, final or empty. 1857
 Warning design DesignForExtension Method 'getId' is not designed for extension - needs to be abstract, final or empty. 1870
 Warning design VisibilityModifier Variable 'flags' must be private and have accessor methods. 2026
 Warning design VisibilityModifier Variable 'value' must be private and have accessor methods. 2029
 Warning design VisibilityModifier Variable 'timerMax10' must be private and have accessor methods. 2032
 Warning design VisibilityModifier Variable 'color' must be private and have accessor methods. 2035
 Warning design VisibilityModifier Variable 'name' must be private and have accessor methods. 2038
 Warning design VisibilityModifier Variable 'listPos' must be private and have accessor methods. 2041
 Warning javadoc JavadocStyle First sentence should end with a period. 2043
 Warning design VisibilityModifier Variable 'stream' must be private and have accessor methods. 2044
 Warning design VisibilityModifier Variable 'refCount' must be private and have accessor methods. 2047
 Warning design VisibilityModifier Variable 'updateTime10' must be private and have accessor methods. 2050
 Warning design VisibilityModifier Variable 'startSource' must be private and have accessor methods. 2053
 Warning design VisibilityModifier Variable 'endSource' must be private and have accessor methods. 2056
 Warning naming StaticVariableName Name 'ROWLETTERS' must match pattern '^[a-z][a-zA-Z0-9]*$'. 2062
 Warning misc FinalParameters Parameter trafCOD should be final. 2070
 Warning misc FinalParameters Parameter sensor should be final. 2104
 Warning misc FinalParameters Parameter newValue should be final. 2226
 Warning misc FinalParameters Parameter timeStamp10 should be final. 2226
 Warning misc FinalParameters Parameter cause should be final. 2226
 Warning misc FinalParameters Parameter trafCOD should be final. 2226
 Warning coding HiddenField 'trafCOD' hides a field. 2226
 Warning misc FinalParameters Parameter colorValue should be final. 2343
 Warning misc FinalParameters Parameter value10 should be final. 2392
 Warning misc FinalParameters Parameter startSource should be final. 2416
 Warning misc FinalParameters Parameter endSource should be final. 2440
 Warning misc FinalParameters Parameter printFlags should be final. 2471
 Warning misc FinalParameters Parameter event should be final. 2580
 Warning design VisibilityModifier Variable 'cause' must be private and have accessor methods. 2601
 Warning javadoc JavadocMethod Missing a Javadoc comment. 2612

org/opentrafficsim/trafficcontrol/trafcod/TrafCODDisplay.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'defaultInitialDelay' must be private and have accessor methods. 54
 Warning design DesignForExtension Method 'paintComponent' is not designed for extension - needs to be abstract, final or empty. 68
 Warning design DesignForExtension Method 'addTrafCODObject' is not designed for extension - needs to be abstract, final or empty. 83
 Warning design DesignForExtension Method 'mouseDragged' is not designed for extension - needs to be abstract, final or empty. 89
 Warning misc FinalParameters Parameter e should be final. 90
 Warning design DesignForExtension Method 'mouseMoved' is not designed for extension - needs to be abstract, final or empty. 96
 Warning misc FinalParameters Parameter e should be final. 97
 Warning misc FinalParameters Parameter e should be final. 114
 Warning misc FinalParameters Parameter e should be final. 121
 Warning misc FinalParameters Parameter e should be final. 128
 Warning design DesignForExtension Method 'mouseEntered' is not designed for extension - needs to be abstract, final or empty. 134
 Warning misc FinalParameters Parameter e should be final. 135
 Warning design DesignForExtension Method 'mouseExited' is not designed for extension - needs to be abstract, final or empty. 141
 Warning misc FinalParameters Parameter e should be final. 142
 Warning javadoc JavadocStyle First sentence should end with a period. 155
 Warning naming ConstantName Name 'xOffset' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 196
 Warning naming ConstantName Name 'yOffset' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 199
 Warning misc FinalParameters Parameter center should be final. 207
 Warning misc FinalParameters Parameter description should be final. 207
 Warning misc FinalParameters Parameter g2 should be final. 218
 Warning misc FinalParameters Parameter event should be final. 228
 Warning misc FinalParameters Parameter testX should be final. 293
 Warning misc FinalParameters Parameter testY should be final. 293
 Warning misc FinalParameters Parameter listener should be final. 361
 Warning misc FinalParameters Parameter eventType should be final. 361
 Warning misc FinalParameters Parameter listener should be final. 368
 Warning misc FinalParameters Parameter eventType should be final. 368
 Warning misc FinalParameters Parameter weak should be final. 368
 Warning misc FinalParameters Parameter listener should be final. 375
 Warning misc FinalParameters Parameter eventType should be final. 375
 Warning misc FinalParameters Parameter position should be final. 375
 Warning misc FinalParameters Parameter listener should be final. 382
 Warning misc FinalParameters Parameter eventType should be final. 382
 Warning misc FinalParameters Parameter position should be final. 382
 Warning misc FinalParameters Parameter weak should be final. 382
 Warning misc FinalParameters Parameter listener should be final. 390
 Warning misc FinalParameters Parameter eventType should be final. 390
 Warning misc FinalParameters Parameter trafficLightColor should be final. 404
 Warning misc FinalParameters Parameter g2 should be final. 415