Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
80 3 26 0

Files

File  I  W  E
org/opentrafficsim/draw/Colors.java 0 5 0
org/opentrafficsim/draw/TextAnimation.java 1 1 0
org/opentrafficsim/draw/egtf/Egtf.java 0 2 0
org/opentrafficsim/draw/graphs/AbstractPlot.java 0 1 0
org/opentrafficsim/draw/graphs/ContourDataSource.java 1 2 0
org/opentrafficsim/draw/graphs/FundamentalDiagram.java 0 3 0
org/opentrafficsim/draw/graphs/GraphPath.java 0 1 0
org/opentrafficsim/draw/graphs/PlotScheduler.java 0 1 0
org/opentrafficsim/draw/network/LinkAnimation.java 1 3 0
org/opentrafficsim/draw/network/NodeAnimation.java 0 1 0
org/opentrafficsim/draw/road/CrossSectionElementAnimation.java 0 2 0
org/opentrafficsim/draw/road/LaneDetectorAnimation.java 0 2 0
org/opentrafficsim/draw/road/PriorityAnimation.java 0 1 0
org/opentrafficsim/draw/road/StripeAnimation.java 0 1 0

Rules

Category Rule Violations Severity
coding HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
4  Warning
design FinalClass 2  Warning
HideUtilityClassConstructor 1  Warning
VisibilityModifier 4  Warning
javadoc JavadocStyle 1  Warning
misc TodoComment 4  Warning
modifier ModifierOrder 1  Warning
RedundantModifier 7  Warning
naming StaticVariableName 2  Warning
sizes LineLength
  • max: "128"
1  Info
ParameterNumber 2  Info

Details

org/opentrafficsim/draw/Colors.java

Severity Category Rule Message Line
 Warning design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 14
 Warning design VisibilityModifier Variable 'COLORS' must be private and have accessor methods. 18
 Warning naming StaticVariableName Name 'COLORS' must match pattern '^[a-z][a-zA-Z0-9]*$'. 18
 Warning design VisibilityModifier Variable 'NAMES' must be private and have accessor methods. 22
 Warning naming StaticVariableName Name 'NAMES' must match pattern '^[a-z][a-zA-Z0-9]*$'. 22

org/opentrafficsim/draw/TextAnimation.java

Severity Category Rule Message Line
 Info sizes ParameterNumber More than 7 parameters (found 8). 175
 Warning coding HiddenField 'dynamic' hides a field. 188

org/opentrafficsim/draw/egtf/Egtf.java

Severity Category Rule Message Line
 Warning design FinalClass Class DualWeightedMean should be declared as final. 1076
 Warning design FinalClass Class WeightedMean should be declared as final. 1161

org/opentrafficsim/draw/graphs/AbstractPlot.java

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

org/opentrafficsim/draw/graphs/ContourDataSource.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'spaceAxis' must be private and have accessor methods. 111
 Warning design VisibilityModifier Variable 'timeAxis' must be private and have accessor methods. 114
 Info sizes LineLength Line is longer than 128 characters (found 129). 217

org/opentrafficsim/draw/graphs/FundamentalDiagram.java

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

org/opentrafficsim/draw/graphs/GraphPath.java

Severity Category Rule Message Line
 Warning modifier RedundantModifier Redundant 'static' modifier. 235

org/opentrafficsim/draw/graphs/PlotScheduler.java

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

org/opentrafficsim/draw/network/LinkAnimation.java

Severity Category Rule Message Line
 Warning coding HiddenField 'dynamic' hides a field. 87
 Warning coding HiddenField 'designLine' hides a field. 99
 Warning coding HiddenField 'endPoint' hides a field. 128
 Info sizes ParameterNumber More than 7 parameters (found 8). 184

org/opentrafficsim/draw/network/NodeAnimation.java

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

org/opentrafficsim/draw/road/CrossSectionElementAnimation.java

Severity Category Rule Message Line
 Warning modifier ModifierOrder 'public' modifier out of order with the JLS suggestions. 115
 Warning modifier RedundantModifier Redundant 'public' modifier. 115

org/opentrafficsim/draw/road/LaneDetectorAnimation.java

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

org/opentrafficsim/draw/road/PriorityAnimation.java

Severity Category Rule Message Line
 Warning modifier RedundantModifier Redundant 'static' modifier. 317

org/opentrafficsim/draw/road/StripeAnimation.java

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