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
35 4 138 0

Files

File  I  W  E
org/opentrafficsim/road/network/factory/opendrive/ConnectionTag.java 0 2 0
org/opentrafficsim/road/network/factory/opendrive/Controller.java 1 5 0
org/opentrafficsim/road/network/factory/opendrive/ControllerTag.java 0 1 0
org/opentrafficsim/road/network/factory/opendrive/ElevationProfileTag.java 0 1 0
org/opentrafficsim/road/network/factory/opendrive/ElevationTag.java 0 1 0
org/opentrafficsim/road/network/factory/opendrive/GeometryTag.java 0 4 0
org/opentrafficsim/road/network/factory/opendrive/HeaderTag.java 0 9 0
org/opentrafficsim/road/network/factory/opendrive/JunctionTag.java 0 6 0
org/opentrafficsim/road/network/factory/opendrive/LaneSectionTag.java 0 8 0
org/opentrafficsim/road/network/factory/opendrive/LaneTag.java 0 6 0
org/opentrafficsim/road/network/factory/opendrive/LanesTag.java 0 2 0
org/opentrafficsim/road/network/factory/opendrive/LateralProfileTag.java 0 1 0
org/opentrafficsim/road/network/factory/opendrive/LinkTag.java 1 0 0
org/opentrafficsim/road/network/factory/opendrive/ObjectsTag.java 0 1 0
org/opentrafficsim/road/network/factory/opendrive/OpenDriveNetworkLaneParser.java 0 4 0
org/opentrafficsim/road/network/factory/opendrive/OpenDriveNetworkWriter.java 0 2 0
org/opentrafficsim/road/network/factory/opendrive/PlanViewTag.java 0 20 0
org/opentrafficsim/road/network/factory/opendrive/RoadMarkTag.java 0 4 0
org/opentrafficsim/road/network/factory/opendrive/RoadTag.java 2 55 0
org/opentrafficsim/road/network/factory/opendrive/SignalsTag.java 0 2 0
org/opentrafficsim/road/network/factory/opendrive/SuperElevationTag.java 0 1 0
org/opentrafficsim/road/network/factory/opendrive/TrafficLightState.java 0 3 0

Rules

Category Rule Violations Severity
blocks AvoidNestedBlocks
  • allowInSwitchCase: "true"
1  Warning
EmptyBlock 3  Warning
NeedBraces 37  Warning
design DesignForExtension 5  Warning
VisibilityModifier 1  Warning
javadoc JavadocStyle
  • checkHtml: "false"
44  Warning
JavadocVariable 1  Warning
misc FinalParameters 38  Warning
naming LocalVariableName 8  Warning
sizes MethodLength 4  Info

Details

org/opentrafficsim/road/network/factory/opendrive/ConnectionTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 30
 Warning javadoc JavadocStyle First sentence should end with a period. 34

org/opentrafficsim/road/network/factory/opendrive/Controller.java

Severity Category Rule Message Line
 Warning blocks EmptyBlock Must have at least one statement. 66
 Warning design DesignForExtension Method 'unBlock' is not designed for extension - needs to be abstract, final or empty. 80
 Info sizes MethodLength Method length is 171 lines (max allowed is 150). 80
 Warning design DesignForExtension Method 'addTrafficLight' is not designed for extension - needs to be abstract, final or empty. 257
 Warning misc FinalParameters Parameter sequence2 should be final. 257
 Warning misc FinalParameters Parameter trafficLight should be final. 257

org/opentrafficsim/road/network/factory/opendrive/ControllerTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 45

org/opentrafficsim/road/network/factory/opendrive/ElevationProfileTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 28

org/opentrafficsim/road/network/factory/opendrive/ElevationTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 46

org/opentrafficsim/road/network/factory/opendrive/GeometryTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 64
 Warning javadoc JavadocStyle First sentence should end with a period. 68
 Warning javadoc JavadocVariable Missing a Javadoc comment. 76
 Warning design VisibilityModifier Variable 'interLine' must be private and have accessor methods. 76

org/opentrafficsim/road/network/factory/opendrive/HeaderTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 48
 Warning javadoc JavadocStyle First sentence should end with a period. 52
 Warning javadoc JavadocStyle First sentence should end with a period. 56
 Warning javadoc JavadocStyle First sentence should end with a period. 60
 Warning javadoc JavadocStyle First sentence should end with a period. 68
 Warning javadoc JavadocStyle First sentence should end with a period. 72
 Warning javadoc JavadocStyle First sentence should end with a period. 76
 Warning design DesignForExtension Method 'getOriginLat' is not designed for extension - needs to be abstract, final or empty. 165
 Warning design DesignForExtension Method 'getOriginLong' is not designed for extension - needs to be abstract, final or empty. 173

org/opentrafficsim/road/network/factory/opendrive/JunctionTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 39
 Warning javadoc JavadocStyle First sentence should end with a period. 43
 Warning misc FinalParameters Parameter juncTag should be final. 96
 Warning misc FinalParameters Parameter simulator should be final. 96
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 97
 Warning blocks NeedBraces 'for' construct must use '{}'s. 111

org/opentrafficsim/road/network/factory/opendrive/LaneSectionTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 40
 Warning javadoc JavadocStyle First sentence should end with a period. 44
 Warning javadoc JavadocStyle First sentence should end with a period. 48
 Warning javadoc JavadocStyle First sentence should end with a period. 52
 Warning misc FinalParameters Parameter orientation should be final. 104
 Warning blocks NeedBraces 'if' construct must use '{}'s. 112
 Warning blocks NeedBraces 'if' construct must use '{}'s. 117
 Warning blocks NeedBraces 'if' construct must use '{}'s. 122

org/opentrafficsim/road/network/factory/opendrive/LaneTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 31
 Warning javadoc JavadocStyle First sentence should end with a period. 35
 Warning javadoc JavadocStyle First sentence should end with a period. 47
 Warning javadoc JavadocStyle First sentence should end with a period. 51
 Warning javadoc JavadocStyle First sentence should end with a period. 55
 Warning javadoc JavadocStyle First sentence should end with a period. 59

org/opentrafficsim/road/network/factory/opendrive/LanesTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 29
 Warning misc FinalParameters Parameter s should be final. 65

org/opentrafficsim/road/network/factory/opendrive/LateralProfileTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 27

org/opentrafficsim/road/network/factory/opendrive/LinkTag.java

Severity Category Rule Message Line
 Info sizes MethodLength Method length is 153 lines (max allowed is 150). 75

org/opentrafficsim/road/network/factory/opendrive/ObjectsTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 27

org/opentrafficsim/road/network/factory/opendrive/OpenDriveNetworkLaneParser.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 75
 Warning javadoc JavadocStyle First sentence should end with a period. 83
 Warning javadoc JavadocStyle First sentence should end with a period. 87
 Warning design DesignForExtension Method 'getHeaderTag' is not designed for extension - needs to be abstract, final or empty. 226

org/opentrafficsim/road/network/factory/opendrive/OpenDriveNetworkWriter.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 21
 Warning misc FinalParameters Parameter network should be final. 31

org/opentrafficsim/road/network/factory/opendrive/PlanViewTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 35
 Warning misc FinalParameters Parameter geometryTag should be final. 118
 Warning misc FinalParameters Parameter elevationTags should be final. 118
 Warning blocks NeedBraces 'if' construct must use '{}'s. 121
 Warning blocks NeedBraces 'if' construct must use '{}'s. 128
 Warning misc FinalParameters Parameter parser should be final. 147
 Warning misc FinalParameters Parameter planViewTag should be final. 147
 Warning misc FinalParameters Parameter geometryTag should be final. 147
 Warning misc FinalParameters Parameter geometryCount should be final. 148
 Warning misc FinalParameters Parameter planViewTag should be final. 188
 Warning misc FinalParameters Parameter geometryTag should be final. 188
 Warning misc FinalParameters Parameter geometryCount should be final. 188
 Warning misc FinalParameters Parameter roadTag should be final. 188
 Warning misc FinalParameters Parameter pFrom should be final. 228
 Warning misc FinalParameters Parameter pTo should be final. 228
 Warning misc FinalParameters Parameter pRadius should be final. 228
 Warning misc FinalParameters Parameter pMinDistance should be final. 228
 Warning misc FinalParameters Parameter shortest should be final. 229
 Warning misc FinalParameters Parameter side should be final. 229
 Warning blocks NeedBraces 'if' construct must use '{}'s. 362

org/opentrafficsim/road/network/factory/opendrive/RoadMarkTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 31
 Warning javadoc JavadocStyle First sentence should end with a period. 35
 Warning javadoc JavadocStyle First sentence should end with a period. 39
 Warning javadoc JavadocStyle First sentence should end with a period. 47

org/opentrafficsim/road/network/factory/opendrive/RoadTag.java

Severity Category Rule Message Line
 Info sizes MethodLength Method length is 194 lines (max allowed is 150). 195
 Warning misc FinalParameters Parameter roadTag should be final. 195
 Warning misc FinalParameters Parameter simulator should be final. 195
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 196
 Warning blocks AvoidNestedBlocks Avoid nested blocks. 203
 Warning blocks NeedBraces 'if' construct must use '{}'s. 205
 Warning blocks NeedBraces 'if' construct must use '{}'s. 207
 Warning blocks NeedBraces 'if' construct must use '{}'s. 209
 Warning blocks NeedBraces 'if' construct must use '{}'s. 242
 Warning blocks NeedBraces 'if' construct must use '{}'s. 246
 Warning blocks NeedBraces 'if' construct must use '{}'s. 277
 Warning blocks NeedBraces 'if' construct must use '{}'s. 281
 Warning blocks NeedBraces 'if' construct must use '{}'s. 317
 Warning blocks NeedBraces 'if' construct must use '{}'s. 319
 Warning blocks NeedBraces 'if' construct must use '{}'s. 343
 Warning blocks NeedBraces 'if' construct must use '{}'s. 347
 Warning blocks NeedBraces 'if' construct must use '{}'s. 382
 Warning blocks NeedBraces 'if' construct must use '{}'s. 384
 Info sizes MethodLength Method length is 443 lines (max allowed is 150). 402
 Warning misc FinalParameters Parameter roadTag should be final. 402
 Warning misc FinalParameters Parameter simulator should be final. 402
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 403
 Warning blocks NeedBraces 'if' construct must use '{}'s. 429
 Warning blocks NeedBraces 'if' construct must use '{}'s. 435
 Warning naming LocalVariableName Name 'laneWidth_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 468
 Warning naming LocalVariableName Name 'laneWidth_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 469
 Warning naming LocalVariableName Name 'leftOffset_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 471
 Warning naming LocalVariableName Name 'leftOffset_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 473
 Warning blocks NeedBraces 'if' construct must use '{}'s. 526
 Warning naming LocalVariableName Name 'laneWidth_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 672
 Warning naming LocalVariableName Name 'laneWidth_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 673
 Warning naming LocalVariableName Name 'leftOffset_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 675
 Warning naming LocalVariableName Name 'leftOffset_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 677
 Warning blocks NeedBraces 'if' construct must use '{}'s. 731
 Warning misc FinalParameters Parameter roadTag should be final. 855
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 855
 Warning blocks NeedBraces 'if' construct must use '{}'s. 857
 Warning blocks NeedBraces 'if' construct must use '{}'s. 867
 Warning blocks NeedBraces 'if' construct must use '{}'s. 869
 Warning blocks NeedBraces 'else' construct must use '{}'s. 871
 Warning blocks NeedBraces 'if' construct must use '{}'s. 876
 Warning blocks NeedBraces 'if' construct must use '{}'s. 878
 Warning blocks NeedBraces 'else' construct must use '{}'s. 880
 Warning misc FinalParameters Parameter roadTag should be final. 912
 Warning misc FinalParameters Parameter simulator should be final. 912
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 913
 Warning blocks NeedBraces 'if' construct must use '{}'s. 931
 Warning blocks NeedBraces 'else' construct must use '{}'s. 933
 Warning blocks EmptyBlock Must have at least one statement. 969
 Warning blocks NeedBraces 'else' construct must use '{}'s. 972
 Warning misc FinalParameters Parameter roadTag should be final. 983
 Warning misc FinalParameters Parameter simulator should be final. 983
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 984
 Warning blocks NeedBraces 'if' construct must use '{}'s. 999
 Warning blocks NeedBraces 'else' construct must use '{}'s. 1001
 Warning blocks EmptyBlock Must have at least one statement. 1032
 Warning blocks NeedBraces 'else' construct must use '{}'s. 1035

org/opentrafficsim/road/network/factory/opendrive/SignalsTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 27
 Warning javadoc JavadocStyle First sentence should end with a period. 31

org/opentrafficsim/road/network/factory/opendrive/SuperElevationTag.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 47

org/opentrafficsim/road/network/factory/opendrive/TrafficLightState.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 15
 Warning javadoc JavadocStyle First sentence should end with a period. 18
 Warning javadoc JavadocStyle First sentence should end with a period. 21