Checkstyle Results
The following document contains the results of Checkstyle 10.17.0 with /config/dsol-checks.xml ruleset.
Summary
Files | ![]() |
![]() |
![]() |
---|---|---|---|
337 | 39 | 70 | 0 |
Files
Rules
Category | Rule | Violations | Severity |
---|---|---|---|
coding | HiddenField
|
5 | ![]() |
InnerAssignment | 2 | ![]() | |
design | HideUtilityClassConstructor | 2 | ![]() |
VisibilityModifier | 9 | ![]() | |
imports | UnusedImports | 3 | ![]() |
javadoc | JavadocMethod | 1 | ![]() |
JavadocPackage | 1 | ![]() | |
misc | TodoComment | 36 | ![]() |
modifier | RedundantModifier | 7 | ![]() |
naming | StaticVariableName | 5 | ![]() |
sizes | LineLength
|
2 | ![]() |
MethodLength | 6 | ![]() | |
ParameterNumber | 30 | ![]() |
Details
org/opentrafficsim/road/gtu/generator/GeneratorPositions.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 855 |
org/opentrafficsim/road/gtu/generator/GtuSpawner.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
coding | HiddenField | 'useDefaultGtuTemplate' hides a field. | 52 |
![]() |
coding | HiddenField | 'stream' hides a field. | 63 |
![]() |
coding | HiddenField | 'noLaneChangeDistance' hides a field. | 74 |
![]() |
coding | HiddenField | 'instantaneousLaneChanges' hides a field. | 85 |
![]() |
coding | HiddenField | 'errorHandler' hides a field. | 96 |
org/opentrafficsim/road/gtu/generator/Platoons.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 309 |
org/opentrafficsim/road/gtu/lane/LaneBasedGtu.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'eventMargin' must be private and have accessor methods. | 148 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 154 |
![]() |
design | VisibilityModifier | Variable 'CACHING' must be private and have accessor methods. | 155 |
![]() |
naming | StaticVariableName | Name 'CACHING' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 155 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 158 |
![]() |
design | VisibilityModifier | Variable 'CACHED_POSITION' must be private and have accessor methods. | 159 |
![]() |
naming | StaticVariableName | Name 'CACHED_POSITION' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 159 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 162 |
![]() |
design | VisibilityModifier | Variable 'NON_CACHED_POSITION' must be private and have accessor methods. | 163 |
![]() |
naming | StaticVariableName | Name 'NON_CACHED_POSITION' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 163 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 210 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 313 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 357 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 377 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 1397 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 1398 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 1752 |
org/opentrafficsim/road/gtu/lane/control/DelayedActuation.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 43 |
org/opentrafficsim/road/gtu/lane/perception/categories/DirectDefaultSimplePerception.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocMethod | @return tag should be present and have description. | 959 |
org/opentrafficsim/road/gtu/lane/perception/categories/DirectInfrastructurePerception.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 158 |
org/opentrafficsim/road/gtu/lane/perception/categories/neighbors/HeadwayGtuType.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
imports | UnusedImports | Unused import - org.opentrafficsim.base.geometry.OtsLocatable. | 7 |
![]() |
imports | UnusedImports | Unused import - org.opentrafficsim.road.network.lane.conflict.Conflict. | 16 |
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. | 78 |
![]() |
naming | StaticVariableName | Name 'MIN_LC_LENGTH_FACTOR' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 78 |
![]() |
sizes | MethodLength | Method getPath length is 226 lines (max allowed is 150). | 224 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 388 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 10). | 599 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 10). | 658 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 11). | 687 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 706 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 10). | 744 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 10). | 834 |
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. | 47 |
org/opentrafficsim/road/gtu/lane/tactical/LaneBasedCfLcTacticalPlanner.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 210 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 350 |
![]() |
sizes | MethodLength | Method suitability length is 163 lines (max allowed is 150). | 413 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 624 |
org/opentrafficsim/road/gtu/lane/tactical/directedlanechange/AbstractDirectedLaneChangeModel.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
imports | UnusedImports | Unused import - org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException. | 15 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 55 |
org/opentrafficsim/road/gtu/lane/tactical/lanechangemobil/LaneChangeModel.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 12 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationConflicts.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 44 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationIncentive.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 47 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationNoRightOvertake.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 44 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationSpeedLimitTransition.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 31 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/AccelerationTrafficLights.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 32 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/IncentiveQueue.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 61 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/IncentiveSpeed.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 31 |
org/opentrafficsim/road/gtu/lane/tactical/lmrs/IncentiveStayRight.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
coding | InnerAssignment | Inner assignments should be avoided. | 47 |
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). | 95 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 112 |
org/opentrafficsim/road/gtu/lane/tactical/toledo/Toledo.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | MethodLength | Method generateOperationalPlan length is 173 lines (max allowed is 150). | 93 |
![]() |
sizes | MethodLength | Method getGapInfo length is 165 lines (max allowed is 150). | 280 |
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:'. | 99 |
org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/GapAcceptance.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 8). | 34 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 8). | 88 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 8). | 175 |
org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/LmrsUtil.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 10). | 450 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 518 |
org/opentrafficsim/road/gtu/lane/tactical/util/lmrs/Synchronization.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 48 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 103 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 186 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 238 |
![]() |
sizes | MethodLength | Method synchronize length is 185 lines (max allowed is 150). | 264 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 265 |
![]() |
modifier | RedundantModifier | Redundant 'public' modifier. | 469 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 9). | 498 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 14). | 630 |
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:'. | 174 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 355 |
![]() |
modifier | RedundantModifier | Redundant 'static' modifier. | 524 |
org/opentrafficsim/road/network/factory/LaneFactory.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 8). | 124 |
org/opentrafficsim/road/network/factory/RoadNetworkUtils.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 22 |
org/opentrafficsim/road/network/lane/Lane.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
coding | InnerAssignment | Inner assignments should be avoided. | 916 |
org/opentrafficsim/road/network/lane/LaneGeometryUtil.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | ParameterNumber | More than 7 parameters (found 8). | 82 |
org/opentrafficsim/road/network/lane/changing/OvertakingConditions.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 266 |
org/opentrafficsim/road/network/lane/conflict/ConflictBuilder.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 275 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 500 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 607 |
![]() |
misc | TodoComment | Comment matches to-do format 'TODO:'. | 1241 |
![]() |
design | VisibilityModifier | Variable 'cbr' must be private and have accessor methods. | 1262 |
![]() |
design | VisibilityModifier | Variable 'nrOfJobs' must be private and have accessor methods. | 1265 |
![]() |
modifier | RedundantModifier | Redundant 'static' modifier. | 1318 |
![]() |
design | VisibilityModifier | Variable 'cbr' must be private and have accessor methods. | 1339 |
![]() |
design | VisibilityModifier | Variable 'nrOfJobs' must be private and have accessor methods. | 1342 |
![]() |
modifier | RedundantModifier | Redundant 'static' modifier. | 1432 |
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. | 910 |