Checkstyle Results

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

rss feed

Summary

Files
 Info
 Warnings
 Errors
40 7 94 0

Files

File
 I
 W
 E
org/opentrafficsim/road/network/factory/opendrive/old/Controller.java 1 3 0
org/opentrafficsim/road/network/factory/opendrive/old/GeneratorAnimation.java 0 1 0
org/opentrafficsim/road/network/factory/opendrive/old/GeometryTag.java 0 2 0
org/opentrafficsim/road/network/factory/opendrive/old/JunctionTag.java 0 5 0
org/opentrafficsim/road/network/factory/opendrive/old/LaneSectionTag.java 0 4 0
org/opentrafficsim/road/network/factory/opendrive/old/LanesTag.java 0 1 0
org/opentrafficsim/road/network/factory/opendrive/old/LateralProfileTag.java 1 0 0
org/opentrafficsim/road/network/factory/opendrive/old/ObjectTag.java 1 0 0
org/opentrafficsim/road/network/factory/opendrive/old/PlanViewTag.java 1 19 0
org/opentrafficsim/road/network/factory/opendrive/old/RoadTag.java 2 58 0
org/opentrafficsim/road/network/factory/opendrive/old/SignalTag.java 1 0 0
org/opentrafficsim/road/network/factory/opendrive/parser/OpenDriveNetworkWriter.java 0 1 0

Rules

Category Rule Violations Severity
blocks AvoidNestedBlocks
  • allowInSwitchCase: "true"
1
 Warning
EmptyBlock 3
 Warning
NeedBraces 44
 Warning
design VisibilityModifier 1
 Warning
javadoc JavadocVariable 1
 Warning
misc FinalParameters 35
 Warning
modifier RedundantModifier 1
 Warning
naming LocalVariableName 8
 Warning
sizes LineLength
  • max: "128"
4
 Info
MethodLength 3
 Info

Details

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

Severity Category Rule Message Line
 Warning
blocks EmptyBlock Must have at least one statement. 66
 Info
sizes MethodLength Method length is 171 lines (max allowed is 150). 80
 Warning
misc FinalParameters Parameter sequence2 should be final. 257
 Warning
misc FinalParameters Parameter trafficLight should be final. 257

org/opentrafficsim/road/network/factory/opendrive/old/GeneratorAnimation.java

Severity Category Rule Message Line
 Warning
modifier RedundantModifier Redundant 'public' modifier. 93

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

Severity Category Rule Message Line
 Warning
javadoc JavadocVariable Missing a Javadoc comment. 77
 Warning
design VisibilityModifier Variable 'interLine' must be private and have accessor methods. 77

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

Severity Category Rule Message Line
 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 'if' construct must use '{}'s. 99
 Warning
blocks NeedBraces 'for' construct must use '{}'s. 114

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

Severity Category Rule Message Line
 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/old/LanesTag.java

Severity Category Rule Message Line
 Warning
misc FinalParameters Parameter s should be final. 65

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

Severity Category Rule Message Line
 Info
sizes LineLength Line is longer than 128 characters (found 129). 40

org/opentrafficsim/road/network/factory/opendrive/old/ObjectTag.java

Severity Category Rule Message Line
 Info
sizes LineLength Line is longer than 128 characters (found 131). 93

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

Severity Category Rule Message Line
 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
 Info
sizes LineLength Line is longer than 128 characters (found 129). 147
 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/old/RoadTag.java

Severity Category Rule Message Line
 Info
sizes MethodLength Method length is 200 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. 322
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 324
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 346
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 350
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 386
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 388
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 391
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 393
 Info
sizes MethodLength Method length is 449 lines (max allowed is 150). 408
 Warning
misc FinalParameters Parameter roadTag should be final. 408
 Warning
misc FinalParameters Parameter simulator should be final. 408
 Warning
misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 409
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 435
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 441
 Warning
naming LocalVariableName Name 'laneWidth_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 474
 Warning
naming LocalVariableName Name 'laneWidth_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 475
 Warning
naming LocalVariableName Name 'leftOffset_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 477
 Warning
naming LocalVariableName Name 'leftOffset_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 479
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 530
 Warning
naming LocalVariableName Name 'laneWidth_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 684
 Warning
naming LocalVariableName Name 'laneWidth_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 685
 Warning
naming LocalVariableName Name 'leftOffset_start' must match pattern '^[a-z][a-zA-Z0-9]*$'. 687
 Warning
naming LocalVariableName Name 'leftOffset_end' must match pattern '^[a-z][a-zA-Z0-9]*$'. 689
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 741
 Warning
misc FinalParameters Parameter roadTag should be final. 867
 Warning
misc FinalParameters Parameter openDriveNetworkLaneParser should be final. 867
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 870
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 880
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 882
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 884
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 889
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 891
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 893
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 935
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 948
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 950
 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. 1005
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 1019
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 1021
 Warning
blocks EmptyBlock Must have at least one statement. 1052
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 1055

org/opentrafficsim/road/network/factory/opendrive/old/SignalTag.java

Severity Category Rule Message Line
 Info
sizes LineLength Line is longer than 128 characters (found 131). 79

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

Severity Category Rule Message Line
 Warning
misc FinalParameters Parameter network should be final. 31