Checkstyle Results

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

rss feed

Summary

Files
 Info
 Warnings
 Errors
244 6 33 0

Files

File
 I
 W
 E
org/opentrafficsim/core/animation/Drawable.java 1 0 0
org/opentrafficsim/core/definitions/DefaultsNl.java 0 1 0
org/opentrafficsim/core/dsol/OtsDevsRealTimeParallelMove.java 1 1 0
org/opentrafficsim/core/dsol/SynchronizedRedBlackTree.java 1 0 0
org/opentrafficsim/core/geometry/DirectedPoint.java 0 3 0
org/opentrafficsim/core/geometry/OtsBufferingJts.java 1 0 0
org/opentrafficsim/core/geometry/OtsLine3d.java 2 0 0
org/opentrafficsim/core/geometry/OtsOffsetLinePk.java 0 1 0
org/opentrafficsim/core/gtu/Gtu.java 0 11 0
org/opentrafficsim/core/gtu/perception/DirectEgoPerception.java 0 13 0
org/opentrafficsim/core/gtu/plan/operational/OperationalPlanBuilder.java 0 1 0
org/opentrafficsim/core/network/Network.java 0 2 0

Rules

Category Rule Violations Severity
blocks EmptyBlock 1
 Warning
NeedBraces 11
 Warning
design DesignForExtension 5
 Warning
VisibilityModifier 4
 Warning
javadoc JavadocPackage 1
 Info
misc TodoComment 8
 Warning
naming StaticVariableName 4
 Warning
sizes LineLength
  • max: "128"
3
 Info
MethodLength 2
 Info

Details

org/opentrafficsim/core/animation/Drawable.java

Severity Category Rule Message Line
 Info
javadoc JavadocPackage Missing package-info.java file. 1

org/opentrafficsim/core/definitions/DefaultsNl.java

Severity Category Rule Message Line
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 37

org/opentrafficsim/core/dsol/OtsDevsRealTimeParallelMove.java

Severity Category Rule Message Line
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 89
 Info
sizes MethodLength Method length is 336 lines (max allowed is 150). 91

org/opentrafficsim/core/dsol/SynchronizedRedBlackTree.java

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

org/opentrafficsim/core/geometry/DirectedPoint.java

Severity Category Rule Message Line
 Warning
design DesignForExtension Class 'DirectedPoint' looks like designed for extension (can be subclassed), but the method 'getRotX' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'DirectedPoint' final or making the method 'getRotX' static/final/abstract/empty, or adding allowed annotation for the method. 58
 Warning
design DesignForExtension Class 'DirectedPoint' looks like designed for extension (can be subclassed), but the method 'getRotY' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'DirectedPoint' final or making the method 'getRotY' static/final/abstract/empty, or adding allowed annotation for the method. 63
 Warning
design DesignForExtension Class 'DirectedPoint' looks like designed for extension (can be subclassed), but the method 'getRotZ' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'DirectedPoint' final or making the method 'getRotZ' static/final/abstract/empty, or adding allowed annotation for the method. 68

org/opentrafficsim/core/geometry/OtsBufferingJts.java

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

org/opentrafficsim/core/geometry/OtsLine3d.java

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

org/opentrafficsim/core/geometry/OtsOffsetLinePk.java

Severity Category Rule Message Line
 Warning
blocks EmptyBlock Must have at least one statement. 257

org/opentrafficsim/core/gtu/Gtu.java

Severity Category Rule Message Line
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 128
 Warning
naming StaticVariableName Name 'ALIGNED' must match pattern '^[a-z][a-zA-Z0-9]*$'. 129
 Warning
design VisibilityModifier Variable 'ALIGNED' must be private and have accessor methods. 129
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 132
 Warning
naming StaticVariableName Name 'ALIGN_COUNT' must match pattern '^[a-z][a-zA-Z0-9]*$'. 133
 Warning
design VisibilityModifier Variable 'ALIGN_COUNT' must be private and have accessor methods. 133
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 859
 Warning
naming StaticVariableName Name 'MOVE_EVENT' must match pattern '^[a-z][a-zA-Z0-9]*$'. 1023
 Warning
design VisibilityModifier Variable 'MOVE_EVENT' must be private and have accessor methods. 1023
 Warning
naming StaticVariableName Name 'DESTROY_EVENT' must match pattern '^[a-z][a-zA-Z0-9]*$'. 1036
 Warning
design VisibilityModifier Variable 'DESTROY_EVENT' must be private and have accessor methods. 1036

org/opentrafficsim/core/gtu/perception/DirectEgoPerception.java

Severity Category Rule Message Line
 Warning
design DesignForExtension Class 'DirectEgoPerception' looks like designed for extension (can be subclassed), but the method 'hashCode' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'DirectEgoPerception' final or making the method 'hashCode' static/final/abstract/empty, or adding allowed annotation for the method. 161
 Warning
design DesignForExtension Class 'DirectEgoPerception' looks like designed for extension (can be subclassed), but the method 'equals' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'DirectEgoPerception' final or making the method 'equals' static/final/abstract/empty, or adding allowed annotation for the method. 173
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 176
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 178
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 180
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 185
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 188
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 192
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 195
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 199
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 202
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 206
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 209

org/opentrafficsim/core/gtu/plan/operational/OperationalPlanBuilder.java

Severity Category Rule Message Line
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 67

org/opentrafficsim/core/network/Network.java

Severity Category Rule Message Line
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 773
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 897