Checkstyle Results
The following document contains the results of Checkstyle 10.15.0 with /config/dsol-checks.xml ruleset.
Summary
Files | ![]() |
![]() |
![]() |
---|---|---|---|
221 | 8 | 68 | 0 |
Files
Rules
Category | Rule | Violations | Severity |
---|---|---|---|
blocks | NeedBraces | 11 | ![]() |
coding | HiddenField
|
4 | ![]() |
design | DesignForExtension | 2 | ![]() |
FinalClass | 2 | ![]() | |
VisibilityModifier | 5 | ![]() | |
imports | UnusedImports | 1 | ![]() |
javadoc | JavadocPackage | 1 | ![]() |
misc | TodoComment | 9 | ![]() |
modifier | RedundantModifier | 10 | ![]() |
naming | StaticVariableName | 24 | ![]() |
sizes | LineLength
|
6 | ![]() |
MethodLength | 1 | ![]() |
Details
org/opentrafficsim/core/animation/Drawable.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | 1 |
org/opentrafficsim/core/dsol/OtsDevsRealTimeParallelMove.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 89 |
![]() |
sizes | MethodLength | Method run length is 336 lines (max allowed is 150). | 91 |
org/opentrafficsim/core/dsol/SynchronizedRedBlackTree.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | LineLength | Line is longer than 128 characters (found 129). | 14 |
org/opentrafficsim/core/geometry/Bezier.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | LineLength | Line is longer than 128 characters (found 130). | 98 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 130). | 117 |
org/opentrafficsim/core/geometry/ContinuousArc.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
coding | HiddenField | 'angle' hides a field. | 124 |
org/opentrafficsim/core/geometry/ContinuousBezier.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'points' must be private and have accessor methods. | 53 |
org/opentrafficsim/core/geometry/Flattener.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 46 |
![]() |
modifier | RedundantModifier | Redundant 'static' modifier. | 46 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 86 |
![]() |
modifier | RedundantModifier | Redundant 'static' modifier. | 86 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 133). | 135 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 167 |
![]() |
modifier | RedundantModifier | Redundant 'static' modifier. | 167 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 129). | 248 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 280 |
![]() |
modifier | RedundantModifier | Redundant 'static' modifier. | 280 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 129). | 344 |
org/opentrafficsim/core/geometry/FractionalLengthData.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 170 |
org/opentrafficsim/core/geometry/Fresnel.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | FinalClass | Class Fresnel should be declared as final. | 19 |
![]() |
naming | StaticVariableName | Name 'CN1' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 24 |
![]() |
naming | StaticVariableName | Name 'CD1' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 33 |
![]() |
naming | StaticVariableName | Name 'CN2' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 42 |
![]() |
naming | StaticVariableName | Name 'CD2' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 52 |
![]() |
naming | StaticVariableName | Name 'SN1' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 62 |
![]() |
naming | StaticVariableName | Name 'SD1' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 71 |
![]() |
naming | StaticVariableName | Name 'SN2' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 80 |
![]() |
naming | StaticVariableName | Name 'SD2' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 90 |
![]() |
naming | StaticVariableName | Name 'FN3' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 100 |
![]() |
naming | StaticVariableName | Name 'FD3' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 110 |
![]() |
naming | StaticVariableName | Name 'FN4' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 120 |
![]() |
naming | StaticVariableName | Name 'FD4' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 130 |
![]() |
naming | StaticVariableName | Name 'FN5' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 140 |
![]() |
naming | StaticVariableName | Name 'FD5' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 151 |
![]() |
naming | StaticVariableName | Name 'GN3' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 162 |
![]() |
naming | StaticVariableName | Name 'GD3' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 172 |
![]() |
naming | StaticVariableName | Name 'GN4' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 182 |
![]() |
naming | StaticVariableName | Name 'GD4' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 192 |
![]() |
naming | StaticVariableName | Name 'GN5' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 202 |
![]() |
naming | StaticVariableName | Name 'GD5' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 213 |
org/opentrafficsim/core/geometry/Ots2dSet.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
imports | UnusedImports | Unused import - java.awt.geom.Rectangle2D. | 3 |
org/opentrafficsim/core/geometry/OtsGeometryUtil.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 141 |
![]() |
modifier | RedundantModifier | Redundant 'final' modifier. | 142 |
org/opentrafficsim/core/geometry/OtsLine2d.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
coding | HiddenField | 'line2d' hides a field. | 97 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 928 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 971 |
org/opentrafficsim/core/gtu/Gtu.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 128 |
![]() |
design | VisibilityModifier | Variable 'ALIGNED' must be private and have accessor methods. | 129 |
![]() |
naming | StaticVariableName | Name 'ALIGNED' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 129 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 132 |
![]() |
design | VisibilityModifier | Variable 'ALIGN_COUNT' must be private and have accessor methods. | 133 |
![]() |
naming | StaticVariableName | Name 'ALIGN_COUNT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 133 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 339 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 863 |
![]() |
design | VisibilityModifier | Variable 'MOVE_EVENT' must be private and have accessor methods. | 1027 |
![]() |
naming | StaticVariableName | Name 'MOVE_EVENT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 1027 |
![]() |
design | VisibilityModifier | Variable 'DESTROY_EVENT' must be private and have accessor methods. | 1040 |
![]() |
naming | StaticVariableName | Name 'DESTROY_EVENT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 1040 |
org/opentrafficsim/core/gtu/perception/DirectEgoPerception.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
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 |
![]() |
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 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 176 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 178 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 180 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 185 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 188 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 192 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 195 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 199 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 202 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 206 |
![]() |
blocks | NeedBraces | 'if' construct must use '{}'s. | 209 |
org/opentrafficsim/core/gtu/plan/operational/Segment.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
coding | HiddenField | 'duration' hides a field. | 79 |
![]() |
coding | HiddenField | 'duration' hides a field. | 95 |
org/opentrafficsim/core/gtu/plan/operational/Segments.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | FinalClass | Class Segments should be declared as final. | 23 |
org/opentrafficsim/core/network/Network.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 773 |