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
34 4 156 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 38 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 JavadocMethod 18  Warning
JavadocStyle 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. 31
 Warning javadoc JavadocStyle First sentence should end with a period. 35

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. 46

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

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

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. 62
 Warning javadoc JavadocStyle First sentence should end with a period. 66
 Warning javadoc JavadocVariable Missing a Javadoc comment. 74
 Warning design VisibilityModifier Variable 'interLine' must be private and have accessor methods. 74

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. 40
 Warning javadoc JavadocStyle First sentence should end with a period. 44
 Warning misc FinalParameters Parameter juncTag should be final. 97
 Warning misc FinalParameters Parameter simulator should be final. 97
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 98
 Warning blocks NeedBraces 'for' construct must use '{}'s. 112

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

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 41
 Warning javadoc JavadocStyle First sentence should end with a period. 45
 Warning javadoc JavadocStyle First sentence should end with a period. 49
 Warning javadoc JavadocStyle First sentence should end with a period. 53
 Warning misc FinalParameters Parameter orientation should be final. 105
 Warning blocks NeedBraces 'if' construct must use '{}'s. 113
 Warning blocks NeedBraces 'if' construct must use '{}'s. 118
 Warning blocks NeedBraces 'if' construct must use '{}'s. 123

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

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 32
 Warning javadoc JavadocStyle First sentence should end with a period. 36
 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

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

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

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

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

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). 76

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

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

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

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

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. 117
 Warning javadoc JavadocMethod Expected @param tag for 'geometryTag'. 117
 Warning misc FinalParameters Parameter elevationTags should be final. 117
 Warning javadoc JavadocMethod Expected @param tag for 'elevationTags'. 117
 Warning blocks NeedBraces 'if' construct must use '{}'s. 120
 Warning blocks NeedBraces 'if' construct must use '{}'s. 127
 Warning misc FinalParameters Parameter parser should be final. 146
 Warning javadoc JavadocMethod Expected @param tag for 'parser'. 146
 Warning misc FinalParameters Parameter planViewTag should be final. 146
 Warning javadoc JavadocMethod Expected @param tag for 'planViewTag'. 146
 Warning misc FinalParameters Parameter geometryTag should be final. 147
 Warning javadoc JavadocMethod Expected @param tag for 'geometryTag'. 147
 Warning misc FinalParameters Parameter geometryCount should be final. 147
 Warning javadoc JavadocMethod Expected @param tag for 'geometryCount'. 147
 Warning javadoc JavadocMethod Expected @throws tag for 'OTSGeometryException'. 147
 Warning misc FinalParameters Parameter planViewTag should be final. 187
 Warning javadoc JavadocMethod Expected @param tag for 'planViewTag'. 187
 Warning misc FinalParameters Parameter geometryTag should be final. 187
 Warning javadoc JavadocMethod Expected @param tag for 'geometryTag'. 187
 Warning misc FinalParameters Parameter geometryCount should be final. 187
 Warning javadoc JavadocMethod Expected @param tag for 'geometryCount'. 187
 Warning misc FinalParameters Parameter roadTag should be final. 188
 Warning javadoc JavadocMethod Expected @param tag for 'roadTag'. 188
 Warning javadoc JavadocMethod Expected @throws tag for 'OTSGeometryException'. 188
 Warning misc FinalParameters Parameter pFrom should be final. 227
 Warning javadoc JavadocMethod Expected @param tag for 'pFrom'. 227
 Warning misc FinalParameters Parameter pTo should be final. 227
 Warning javadoc JavadocMethod Expected @param tag for 'pTo'. 227
 Warning misc FinalParameters Parameter pRadius should be final. 227
 Warning javadoc JavadocMethod Expected @param tag for 'pRadius'. 227
 Warning misc FinalParameters Parameter pMinDistance should be final. 228
 Warning javadoc JavadocMethod Expected @param tag for 'pMinDistance'. 228
 Warning misc FinalParameters Parameter shortest should be final. 228
 Warning javadoc JavadocMethod Expected @param tag for 'shortest'. 228
 Warning misc FinalParameters Parameter side should be final. 228
 Warning javadoc JavadocMethod Expected @param tag for 'side'. 228
 Warning blocks NeedBraces 'if' construct must use '{}'s. 363

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

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 32
 Warning javadoc JavadocStyle First sentence should end with a period. 36
 Warning javadoc JavadocStyle First sentence should end with a period. 40
 Warning javadoc JavadocStyle First sentence should end with a period. 48

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

Severity Category Rule Message Line
 Info sizes MethodLength Method length is 200 lines (max allowed is 150). 197
 Warning misc FinalParameters Parameter roadTag should be final. 197
 Warning misc FinalParameters Parameter simulator should be final. 197
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 198
 Warning blocks AvoidNestedBlocks Avoid nested blocks. 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. 211
 Warning blocks NeedBraces 'if' construct must use '{}'s. 245
 Warning blocks NeedBraces 'if' construct must use '{}'s. 249
 Warning blocks NeedBraces 'if' construct must use '{}'s. 282
 Warning blocks NeedBraces 'if' construct must use '{}'s. 286
 Warning blocks NeedBraces 'if' construct must use '{}'s. 323
 Warning blocks NeedBraces 'if' construct must use '{}'s. 325
 Warning blocks NeedBraces 'if' construct must use '{}'s. 350
 Warning blocks NeedBraces 'if' construct must use '{}'s. 354
 Warning blocks NeedBraces 'if' construct must use '{}'s. 390
 Warning blocks NeedBraces 'if' construct must use '{}'s. 392
 Info sizes MethodLength Method length is 453 lines (max allowed is 150). 410
 Warning misc FinalParameters Parameter roadTag should be final. 410
 Warning misc FinalParameters Parameter simulator should be final. 410
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 411
 Warning blocks NeedBraces 'if' construct must use '{}'s. 437
 Warning blocks NeedBraces 'if' construct must use '{}'s. 443
 Warning naming LocalVariableName Name 'laneWidth_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 476
 Warning naming LocalVariableName Name 'laneWidth_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 477
 Warning naming LocalVariableName Name 'leftOffset_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 479
 Warning naming LocalVariableName Name 'leftOffset_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 482
 Warning blocks NeedBraces 'if' construct must use '{}'s. 538
 Warning naming LocalVariableName Name 'laneWidth_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 685
 Warning naming LocalVariableName Name 'laneWidth_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 686
 Warning naming LocalVariableName Name 'leftOffset_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 688
 Warning naming LocalVariableName Name 'leftOffset_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 691
 Warning blocks NeedBraces 'if' construct must use '{}'s. 748
 Warning misc FinalParameters Parameter roadTag should be final. 871
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 871
 Warning blocks NeedBraces 'if' construct must use '{}'s. 873
 Warning blocks NeedBraces 'if' construct must use '{}'s. 883
 Warning blocks NeedBraces 'if' construct must use '{}'s. 885
 Warning blocks NeedBraces 'else' construct must use '{}'s. 887
 Warning blocks NeedBraces 'if' construct must use '{}'s. 892
 Warning blocks NeedBraces 'if' construct must use '{}'s. 894
 Warning blocks NeedBraces 'else' construct must use '{}'s. 896
 Warning misc FinalParameters Parameter roadTag should be final. 928
 Warning misc FinalParameters Parameter simulator should be final. 928
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 929
 Warning blocks NeedBraces 'if' construct must use '{}'s. 947
 Warning blocks NeedBraces 'else' construct must use '{}'s. 949
 Warning blocks EmptyBlock Must have at least one statement. 986
 Warning blocks NeedBraces 'else' construct must use '{}'s. 989
 Warning misc FinalParameters Parameter roadTag should be final. 1000
 Warning misc FinalParameters Parameter simulator should be final. 1000
 Warning misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 1001
 Warning blocks NeedBraces 'if' construct must use '{}'s. 1016
 Warning blocks NeedBraces 'else' construct must use '{}'s. 1018
 Warning blocks EmptyBlock Must have at least one statement. 1050
 Warning blocks NeedBraces 'else' construct must use '{}'s. 1053

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

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

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