Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
214 6 31 0

Files

File  I  W  E
org/opentrafficsim/core/distributions/FrequencyAndObject.java 0 1 0
org/opentrafficsim/core/dsol/OtsDevsRealTimeParallelMove.java 1 1 0
org/opentrafficsim/core/geometry/ContinuousBezier.java 0 1 0
org/opentrafficsim/core/geometry/ContinuousBezierCubic.java 1 0 0
org/opentrafficsim/core/geometry/Flattener.java 3 8 0
org/opentrafficsim/core/geometry/Ots2dSet.java 0 2 0
org/opentrafficsim/core/gtu/Gtu.java 0 12 0
org/opentrafficsim/core/gtu/plan/operational/Segment.java 0 2 0
org/opentrafficsim/core/gtu/plan/operational/Segments.java 0 1 0
org/opentrafficsim/core/network/CapacityLink.java 1 0 0
org/opentrafficsim/core/network/Network.java 0 1 0
org/opentrafficsim/core/network/Node.java 0 1 0
org/opentrafficsim/core/network/route/Route.java 0 1 0

Rules

Category Rule Violations Severity
coding HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
2  Warning
design FinalClass 1  Warning
VisibilityModifier 5  Warning
imports UnusedImports 3  Warning
javadoc JavadocMethod 1  Warning
misc NewlineAtEndOfFile
  • fileExtensions: "java"
  • lineSeparator: "crlf"
1  Warning
TodoComment 6  Warning
modifier RedundantModifier 8  Warning
naming StaticVariableName 4  Warning
sizes LineLength
  • max: "128"
5  Info
MethodLength 1  Info

Details

org/opentrafficsim/core/distributions/FrequencyAndObject.java

Severity Category Rule Message Line
 Warning misc NewlineAtEndOfFile File does not end with a newline. 1

org/opentrafficsim/core/dsol/OtsDevsRealTimeParallelMove.java

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

org/opentrafficsim/core/geometry/ContinuousBezier.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'points' must be private and have accessor methods. 53

org/opentrafficsim/core/geometry/ContinuousBezierCubic.java

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

org/opentrafficsim/core/geometry/Flattener.java

Severity Category Rule Message Line
 Warning modifier RedundantModifier Redundant 'public' modifier. 46
 Warning modifier RedundantModifier Redundant 'static' modifier. 46
 Warning modifier RedundantModifier Redundant 'public' modifier. 85
 Warning modifier RedundantModifier Redundant 'static' modifier. 85
 Info sizes LineLength Line is longer than 128 characters (found 133). 133
 Warning modifier RedundantModifier Redundant 'public' modifier. 165
 Warning modifier RedundantModifier Redundant 'static' modifier. 165
 Info sizes LineLength Line is longer than 128 characters (found 129). 245
 Warning modifier RedundantModifier Redundant 'public' modifier. 277
 Warning modifier RedundantModifier Redundant 'static' modifier. 277
 Info sizes LineLength Line is longer than 128 characters (found 129). 340

org/opentrafficsim/core/geometry/Ots2dSet.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.awt.geom.Rectangle2D. 3
 Warning imports UnusedImports Unused import - org.opentrafficsim.base.geometry.OtsGeometryException. 15

org/opentrafficsim/core/gtu/Gtu.java

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

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

Severity Category Rule Message Line
 Warning coding HiddenField 'duration' hides a field. 79
 Warning coding HiddenField 'duration' hides a field. 95

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

Severity Category Rule Message Line
 Warning design FinalClass Class Segments should be declared as final. 23

org/opentrafficsim/core/network/CapacityLink.java

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

org/opentrafficsim/core/network/Network.java

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

org/opentrafficsim/core/network/Node.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - org.opentrafficsim.base.geometry.SpatialObject. 22

org/opentrafficsim/core/network/route/Route.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod @return tag should be present and have description. 217