Checkstyle Results

The following document contains the results of Checkstyle 6.18 with development/dsol-checks.xml ruleset. rss feed

Summary

Files  Info  Warnings  Errors
40 30 64 0

Files

File  I  W  E
ahfe/AHFEAnimation.java 1 12 0
ahfe/AHFESimulation.java 1 12 0
ahfe/AHFEUtil.java 2 2 0
loadfromxml/LoadXML.java 2 2 0
org/opentrafficsim/demo/carFollowing/CircularLane.java 1 1 0
org/opentrafficsim/demo/carFollowing/CircularRoad.java 1 1 0
org/opentrafficsim/demo/carFollowing/CrossingTrafficLights.java 0 1 0
org/opentrafficsim/demo/carFollowing/OpenStreetMap.java 1 1 0
org/opentrafficsim/demo/carFollowing/SequentialLanes.java 0 1 0
org/opentrafficsim/demo/carFollowing/ShortMerge.java 1 3 0
org/opentrafficsim/demo/carFollowing/Straight.java 0 1 0
org/opentrafficsim/demo/carFollowing/StraightPerception.java 0 2 0
org/opentrafficsim/demo/carFollowing/Trajectories.java 0 1 0
org/opentrafficsim/demo/carFollowing/XMLNetworks.java 1 0 0
org/opentrafficsim/demo/carFollowing/XMLNetworks2.java 2 5 0
org/opentrafficsim/demo/carFollowing/XMLSampler.java 1 1 0
org/opentrafficsim/demo/conflict/BusStreetDemo.java 0 2 0
org/opentrafficsim/demo/conflict/TJunctionDemo.java 0 1 0
org/opentrafficsim/demo/conflict/TestNetworkDemo.java 0 1 0
org/opentrafficsim/demo/conflict/TurboRoundaboutDemo.java 0 1 0
org/opentrafficsim/demo/conflictAndControl/DemoTrafcodAndTurbo.java 8 1 0
org/opentrafficsim/demo/geometry/TestGeometry.java 1 0 0
org/opentrafficsim/demo/geometry/shape/ShapeFileReader.java 2 0 0
org/opentrafficsim/demo/geometry/shape/ShapeModel.java 0 1 0
org/opentrafficsim/demo/lanechange/LaneChangeGraph.java 1 3 0
org/opentrafficsim/demo/lanechange/SuitabilityGraph.java 0 1 0
org/opentrafficsim/demo/timing/TimeCircularRoadAnimation.java 0 1 0
org/opentrafficsim/demo/timing/TimeCircularRoadSimulation.java 0 1 0
org/opentrafficsim/demo/trafficcontrol/TrafCODDemo2.java 2 0 0
strategies/LmrsStrategies.java 2 1 0
strategies/StrategiesDemo.java 0 4 0

Rules

Category Rule Violations Severity
blocks EmptyBlock 2  Warning
coding HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
2  Warning
design DesignForExtension 33  Warning
VisibilityModifier 8  Warning
imports UnusedImports 15  Warning
javadoc JavadocPackage 3  Info
misc FinalParameters 2  Warning
modifier RedundantModifier 2  Warning
sizes LineLength
  • max: "128"
14  Info
MethodLength 10  Info
ParameterNumber 3  Info

Details

ahfe/AHFEAnimation.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'sampler' must be private and have accessor methods. 113
 Warning design DesignForExtension Method 'getReplication' is not designed for extension - needs to be abstract, final or empty. 150
 Warning design DesignForExtension Method 'getAnticipationStrategy' is not designed for extension - needs to be abstract, final or empty. 158
 Warning design DesignForExtension Method 'getReactionTime' is not designed for extension - needs to be abstract, final or empty. 166
 Warning design DesignForExtension Method 'getAnticipationTime' is not designed for extension - needs to be abstract, final or empty. 174
 Warning design DesignForExtension Method 'getTruckFraction' is not designed for extension - needs to be abstract, final or empty. 182
 Warning design DesignForExtension Method 'getDistanceError' is not designed for extension - needs to be abstract, final or empty. 190
 Warning design DesignForExtension Method 'getSpeedError' is not designed for extension - needs to be abstract, final or empty. 198
 Warning design DesignForExtension Method 'getAccelerationError' is not designed for extension - needs to be abstract, final or empty. 206
 Warning design DesignForExtension Method 'getLeftDemand' is not designed for extension - needs to be abstract, final or empty. 214
 Warning design DesignForExtension Method 'getRightDemand' is not designed for extension - needs to be abstract, final or empty. 222
 Warning design DesignForExtension Method 'getLeftFraction' is not designed for extension - needs to be abstract, final or empty. 230
 Info sizes MethodLength Method length is 301 lines (max allowed is 150). 240

ahfe/AHFESimulation.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'sampler' must be private and have accessor methods. 110
 Warning design DesignForExtension Method 'getReplication' is not designed for extension - needs to be abstract, final or empty. 147
 Warning design DesignForExtension Method 'getAnticipationStrategy' is not designed for extension - needs to be abstract, final or empty. 155
 Warning design DesignForExtension Method 'getReactionTime' is not designed for extension - needs to be abstract, final or empty. 163
 Warning design DesignForExtension Method 'getAnticipationTime' is not designed for extension - needs to be abstract, final or empty. 171
 Warning design DesignForExtension Method 'getTruckFraction' is not designed for extension - needs to be abstract, final or empty. 179
 Warning design DesignForExtension Method 'getDistanceError' is not designed for extension - needs to be abstract, final or empty. 187
 Warning design DesignForExtension Method 'getSpeedError' is not designed for extension - needs to be abstract, final or empty. 195
 Warning design DesignForExtension Method 'getAccelerationError' is not designed for extension - needs to be abstract, final or empty. 203
 Warning design DesignForExtension Method 'getLeftDemand' is not designed for extension - needs to be abstract, final or empty. 211
 Warning design DesignForExtension Method 'getRightDemand' is not designed for extension - needs to be abstract, final or empty. 219
 Warning design DesignForExtension Method 'getLeftFraction' is not designed for extension - needs to be abstract, final or empty. 227
 Info sizes MethodLength Method length is 300 lines (max allowed is 150). 237

ahfe/AHFEUtil.java

Severity Category Rule Message Line
 Info sizes MethodLength Method length is 162 lines (max allowed is 150). 145
 Info sizes ParameterNumber More than 7 parameters (found 14). 353
 Warning modifier RedundantModifier Redundant 'public' modifier. 580
 Warning modifier RedundantModifier Redundant 'public' modifier. 592

loadfromxml/LoadXML.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 10
 Info sizes LineLength Line is longer than 128 characters (found 132). 215
 Info sizes LineLength Line is longer than 128 characters (found 131). 219
 Warning design DesignForExtension Method 'getColorer' is not designed for extension - needs to be abstract, final or empty. 249

org/opentrafficsim/demo/carFollowing/CircularLane.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 7
 Info sizes MethodLength Method length is 161 lines (max allowed is 150). 364

org/opentrafficsim/demo/carFollowing/CircularRoad.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 7
 Info sizes MethodLength Method length is 238 lines (max allowed is 150). 413

org/opentrafficsim/demo/carFollowing/CrossingTrafficLights.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 8

org/opentrafficsim/demo/carFollowing/OpenStreetMap.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'rectangle' must be private and have accessor methods. 83
 Info sizes LineLength Line is longer than 128 characters (found 130). 369

org/opentrafficsim/demo/carFollowing/SequentialLanes.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 9

org/opentrafficsim/demo/carFollowing/ShortMerge.java

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'getColorer' is not designed for extension - needs to be abstract, final or empty. 178
 Warning design DesignForExtension Method 'makeModel' is not designed for extension - needs to be abstract, final or empty. 185
 Warning blocks EmptyBlock Must have at least one statement. 324
 Info sizes ParameterNumber More than 7 parameters (found 12). 467

org/opentrafficsim/demo/carFollowing/Straight.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 9

org/opentrafficsim/demo/carFollowing/StraightPerception.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 9
 Warning blocks EmptyBlock Must have at least one statement. 523

org/opentrafficsim/demo/carFollowing/Trajectories.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 6

org/opentrafficsim/demo/carFollowing/XMLNetworks.java

Severity Category Rule Message Line
 Info sizes MethodLength Method length is 343 lines (max allowed is 150). 313

org/opentrafficsim/demo/carFollowing/XMLNetworks2.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 8
 Warning design VisibilityModifier Variable 'headwayGenerator' must be private and have accessor methods. 224
 Warning design VisibilityModifier Variable 'gtuType' must be private and have accessor methods. 233
 Warning design VisibilityModifier Variable 'laneChangeModel' must be private and have accessor methods. 242
 Info sizes MethodLength Method length is 442 lines (max allowed is 150). 300
 Warning coding HiddenField 'stream' hides a field. 784
 Info sizes LineLength Line is longer than 128 characters (found 132). 817

org/opentrafficsim/demo/carFollowing/XMLSampler.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'laneChangeModel' must be private and have accessor methods. 268
 Info sizes MethodLength Method length is 346 lines (max allowed is 150). 329

org/opentrafficsim/demo/conflict/BusStreetDemo.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 4
 Warning design DesignForExtension Method 'draw' is not designed for extension - needs to be abstract, final or empty. 441

org/opentrafficsim/demo/conflict/TJunctionDemo.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 6

org/opentrafficsim/demo/conflict/TestNetworkDemo.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 6

org/opentrafficsim/demo/conflict/TurboRoundaboutDemo.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 6

org/opentrafficsim/demo/conflictAndControl/DemoTrafcodAndTurbo.java

Severity Category Rule Message Line
 Info javadoc JavadocPackage Missing package-info.java file.
 Warning design VisibilityModifier Variable 'trafCOD' must be private and have accessor methods. 124
 Info sizes LineLength Line is longer than 128 characters (found 135). 228
 Info sizes LineLength Line is longer than 128 characters (found 140). 232
 Info sizes LineLength Line is longer than 128 characters (found 140). 237
 Info sizes LineLength Line is longer than 128 characters (found 135). 245
 Info sizes LineLength Line is longer than 128 characters (found 140). 249
 Info sizes LineLength Line is longer than 128 characters (found 140). 254
 Info sizes LineLength Line is longer than 128 characters (found 135). 365

org/opentrafficsim/demo/geometry/TestGeometry.java

Severity Category Rule Message Line
 Info javadoc JavadocPackage Missing package-info.java file.

org/opentrafficsim/demo/geometry/shape/ShapeFileReader.java

Severity Category Rule Message Line
 Info javadoc JavadocPackage Missing package-info.java file.
 Info sizes LineLength Line is longer than 128 characters (found 133). 359

org/opentrafficsim/demo/geometry/shape/ShapeModel.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 3

org/opentrafficsim/demo/lanechange/LaneChangeGraph.java

Severity Category Rule Message Line
 Warning misc FinalParameters Parameter low should be final. 271
 Warning misc FinalParameters Parameter high should be final. 271
 Warning coding HiddenField 'network' hides a field. 276
 Info sizes ParameterNumber More than 7 parameters (found 8). 366

org/opentrafficsim/demo/lanechange/SuitabilityGraph.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.rmi.RemoteException. 8

org/opentrafficsim/demo/timing/TimeCircularRoadAnimation.java

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'stop' is not designed for extension - needs to be abstract, final or empty. 97

org/opentrafficsim/demo/timing/TimeCircularRoadSimulation.java

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'stop' is not designed for extension - needs to be abstract, final or empty. 127

org/opentrafficsim/demo/trafficcontrol/TrafCODDemo2.java

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

strategies/LmrsStrategies.java

Severity Category Rule Message Line
 Info sizes MethodLength Method length is 167 lines (max allowed is 150). 274
 Info sizes MethodLength Method length is 350 lines (max allowed is 150). 564
 Warning design DesignForExtension Method 'notify' is not designed for extension - needs to be abstract, final or empty. 953

strategies/StrategiesDemo.java

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'setDefaultProperties' is not designed for extension - needs to be abstract, final or empty. 162
 Warning design DesignForExtension Method 'setupDemo' is not designed for extension - needs to be abstract, final or empty. 169
 Warning design DesignForExtension Method 'setupSimulation' is not designed for extension - needs to be abstract, final or empty. 437
 Warning design DesignForExtension Method 'createGtu' is not designed for extension - needs to be abstract, final or empty. 558