Checkstyle Results
The following document contains the results of Checkstyle 10.15.0 with /config/dsol-checks.xml ruleset.
Summary
| Files | |||
|---|---|---|---|
| 344 | 42 | 83 | 0 |
Files
Rules
| Category | Rule | Violations | Severity |
|---|---|---|---|
| coding | InnerAssignment | 1 | |
| design | FinalClass | 1 | |
| HideUtilityClassConstructor | 2 | ||
| VisibilityModifier | 16 | ||
| imports | UnusedImports | 1 | |
| javadoc | JavadocPackage | 1 | |
| JavadocStyle | 1 | ||
| misc | TodoComment | 39 | |
| modifier | RedundantModifier | 12 | |
| naming | StaticVariableName | 10 | |
| sizes | LineLength
|
2 | |
| MethodLength | 7 | ||
| ParameterNumber | 32 |
Details
org/opentrafficsim/road/gtu/generator/GeneratorPositions.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| modifier | RedundantModifier | Redundant 'public' modifier. | 868 |
org/opentrafficsim/road/gtu/generator/Platoons.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| imports | UnusedImports | Unused import - java.util.Set. | 7 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 313 |
org/opentrafficsim/road/gtu/lane/LaneBasedGtu.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'eventMargin' must be private and have accessor methods. | 147 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 153 | |
| design | VisibilityModifier | Variable 'CACHING' must be private and have accessor methods. | 154 | |
| naming | StaticVariableName | Name 'CACHING' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 154 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 157 | |
| design | VisibilityModifier | Variable 'CACHED_POSITION' must be private and have accessor methods. | 158 | |
| naming | StaticVariableName | Name 'CACHED_POSITION' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 158 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 161 | |
| design | VisibilityModifier | Variable 'NON_CACHED_POSITION' must be private and have accessor methods. | 162 | |
| naming | StaticVariableName | Name 'NON_CACHED_POSITION' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 162 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 210 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 314 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 358 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 378 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 1403 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 1404 | |
| design | VisibilityModifier | Variable 'LANEBASED_MOVE_EVENT' must be private and have accessor methods. | 1725 | |
| naming | StaticVariableName | Name 'LANEBASED_MOVE_EVENT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 1725 | |
| design | VisibilityModifier | Variable 'LANEBASED_DESTROY_EVENT' must be private and have accessor methods. | 1743 | |
| naming | StaticVariableName | Name 'LANEBASED_DESTROY_EVENT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 1743 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 1753 | |
| design | VisibilityModifier | Variable 'LANE_ENTER_EVENT' must be private and have accessor methods. | 1759 | |
| naming | StaticVariableName | Name 'LANE_ENTER_EVENT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 1759 | |
| design | VisibilityModifier | Variable 'LANE_EXIT_EVENT' must be private and have accessor methods. | 1770 | |
| naming | StaticVariableName | Name 'LANE_EXIT_EVENT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 1770 | |
| design | VisibilityModifier | Variable 'LANE_CHANGE_EVENT' must be private and have accessor methods. | 1780 | |
| naming | StaticVariableName | Name 'LANE_CHANGE_EVENT' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 1780 |
org/opentrafficsim/road/gtu/lane/control/DelayedActuation.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 45 |
org/opentrafficsim/road/gtu/lane/perception/DownstreamNeighborsIterable.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 8). | 77 |
org/opentrafficsim/road/gtu/lane/perception/LaneBasedObjectIterable.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 8). | 47 |
org/opentrafficsim/road/gtu/lane/perception/PerceptionCollectable.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| modifier | RedundantModifier | Redundant 'public' modifier. | 74 | |
| modifier | RedundantModifier | Redundant 'public' modifier. | 108 | |
| modifier | RedundantModifier | Redundant 'public' modifier. | 133 | |
| design | VisibilityModifier | Variable 'object' must be private and have accessor methods. | 243 | |
| design | VisibilityModifier | Variable 'distance' must be private and have accessor methods. | 246 |
org/opentrafficsim/road/gtu/lane/perception/PerceptionCollectableFiltered.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| javadoc | JavadocStyle | First sentence should end with a period. | 167 | |
| modifier | RedundantModifier | Redundant 'public' modifier. | 172 | |
| modifier | RedundantModifier | Redundant 'public' modifier. | 205 |
org/opentrafficsim/road/gtu/lane/perception/RollingLaneStructure.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | MethodLength | Method update length is 181 lines (max allowed is 150). | 190 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 1224 |
org/opentrafficsim/road/gtu/lane/perception/categories/DirectInfrastructurePerception.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 45 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 117 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 446 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 457 |
org/opentrafficsim/road/gtu/lane/perception/headway/AbstractHeadwayGtu.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 8). | 103 |
org/opentrafficsim/road/gtu/lane/perception/headway/HeadwayGtuSimple.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 54 | |
| sizes | ParameterNumber | More than 7 parameters (found 9). | 115 |
org/opentrafficsim/road/gtu/lane/perception/headway/HeadwayGtuType.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 123 |
org/opentrafficsim/road/gtu/lane/perception/mental/AdaptationSituationalAwareness.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | LineLength | Line is longer than 128 characters (found 131). | 20 |
org/opentrafficsim/road/gtu/lane/perception/mental/TaskManager.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 21 |
org/opentrafficsim/road/gtu/lane/perception/mental/sdm/Distraction.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 8). | 59 |
org/opentrafficsim/road/gtu/lane/plan/operational/LaneChange.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'MIN_LC_LENGTH_FACTOR' must be private and have accessor methods. | 76 | |
| naming | StaticVariableName | Name 'MIN_LC_LENGTH_FACTOR' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 76 | |
| sizes | MethodLength | Method getPath length is 200 lines (max allowed is 150). | 223 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 370 | |
| sizes | ParameterNumber | More than 7 parameters (found 10). | 579 | |
| sizes | ParameterNumber | More than 7 parameters (found 10). | 643 | |
| sizes | ParameterNumber | More than 7 parameters (found 11). | 673 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 693 | |
| sizes | ParameterNumber | More than 7 parameters (found 10). | 732 | |
| sizes | ParameterNumber | More than 7 parameters (found 10). | 823 |
org/opentrafficsim/road/gtu/lane/plan/operational/LaneOperationalPlanBuilder.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 50 |
org/opentrafficsim/road/gtu/lane/tactical/LaneBasedCfLcTacticalPlanner.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 206 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 350 | |
| sizes | MethodLength | Method suitability length is 163 lines (max allowed is 150). | 414 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 625 |
org/opentrafficsim/road/gtu/lane/tactical/directedlanechange/AbstractDirectedLaneChangeModel.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 56 |
org/opentrafficsim/road/gtu/lane/tactical/lanechangemobil/LaneChangeModel.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 13 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationConflicts.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 46 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationIncentive.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 49 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationNoRightOvertake.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 45 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationSpeedLimitTransition.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 32 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationTrafficLights.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 33 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/IncentiveQueue.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 62 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/IncentiveSpeed.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 32 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/Lmrs.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 125 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/LmrsFactory.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 94 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 109 |
org/opentrafficsim/road/gtu/lane/tactical/toledo/Toledo.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | MethodLength | Method generateOperationalPlan length is 187 lines (max allowed is 150). | 95 | |
| sizes | MethodLength | Method getGapInfo length is 165 lines (max allowed is 150). | 297 |
org/opentrafficsim/road/gtu/lane/tactical/toledo/ToledoCfTester.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 29 |
org/opentrafficsim/road/gtu/lane/tactical/util/AnticipationInfo.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| modifier | RedundantModifier | Redundant 'final' modifier. | 28 |
org/opentrafficsim/road/gtu/lane/tactical/util/ConflictUtil.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| naming | StaticVariableName | Name 'CROSSSTANDING' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 108 | |
| sizes | MethodLength | Method approachConflicts length is 185 lines (max allowed is 150). | 139 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 190 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 541 |
org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/Cooperation.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 104 |
org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/GapAcceptance.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 8). | 37 | |
| sizes | ParameterNumber | More than 7 parameters (found 8). | 93 | |
| sizes | ParameterNumber | More than 7 parameters (found 8). | 181 |
org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/LmrsUtil.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 10). | 453 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 521 |
org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/Synchronization.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 49 | |
| sizes | ParameterNumber | More than 7 parameters (found 9). | 129 | |
| sizes | ParameterNumber | More than 7 parameters (found 9). | 181 | |
| sizes | MethodLength | Method synchronize length is 192 lines (max allowed is 150). | 208 | |
| sizes | ParameterNumber | More than 7 parameters (found 9). | 209 | |
| modifier | RedundantModifier | Redundant 'public' modifier. | 421 | |
| sizes | ParameterNumber | More than 7 parameters (found 9). | 450 | |
| sizes | ParameterNumber | More than 7 parameters (found 14). | 582 |
org/opentrafficsim/road/network/LaneAccessLaw.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| javadoc | JavadocPackage | Missing package-info.java file. | 1 |
org/opentrafficsim/road/network/RoadNetwork.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 176 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 357 | |
| modifier | RedundantModifier | Redundant 'static' modifier. | 526 |
org/opentrafficsim/road/network/factory/LaneFactory.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 8). | 123 |
org/opentrafficsim/road/network/lane/Lane.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| coding | InnerAssignment | Inner assignments should be avoided. | 933 |
org/opentrafficsim/road/network/lane/LaneGeometryUtil.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | FinalClass | Class LaneGeometryUtil should be declared as final. | 32 | |
| sizes | ParameterNumber | More than 7 parameters (found 8). | 167 |
org/opentrafficsim/road/network/lane/changing/OvertakingConditions.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 277 |
org/opentrafficsim/road/network/lane/conflict/ConflictBuilder.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 284 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 510 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 620 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 1274 | |
| design | VisibilityModifier | Variable 'cbr' must be private and have accessor methods. | 1295 | |
| design | VisibilityModifier | Variable 'nrOfJobs' must be private and have accessor methods. | 1298 | |
| modifier | RedundantModifier | Redundant 'static' modifier. | 1352 | |
| design | VisibilityModifier | Variable 'cbr' must be private and have accessor methods. | 1373 | |
| design | VisibilityModifier | Variable 'nrOfJobs' must be private and have accessor methods. | 1376 | |
| modifier | RedundantModifier | Redundant 'static' modifier. | 1467 |
org/opentrafficsim/road/network/lane/object/detector/LoopDetector.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | ParameterNumber | More than 7 parameters (found 9). | 393 |
org/opentrafficsim/road/od/Category.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| sizes | LineLength | Line is longer than 128 characters (found 130). | 114 |
org/opentrafficsim/road/od/OdApplier.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| modifier | RedundantModifier | Redundant 'static' modifier. | 928 |
