Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
43 21 89 0

Rules

Category Rule Violations Severity
blocks EmptyBlock 6  Warning
LeftCurly
  • maxLineLength: "128"
  • option: "nl"
30  Warning
RightCurly
  • tokens: "LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE"
  • option: "alone"
6  Warning
coding HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
2  Warning
design DesignForExtension 21  Warning
VisibilityModifier 9  Warning
imports UnusedImports 5  Warning
javadoc JavadocPackage 3  Info
misc FinalParameters 7  Warning
sizes LineLength
  • max: "128"
8  Info
MethodLength 5  Info
ParameterNumber 5  Info
whitespace FileTabCharacter 1  Warning
ParenPad 2  Warning

Details

ahfe/AHFESimulation.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 302 lines (max allowed is 150). 240

ahfe/AHFEUtil.java

Severity Category Rule Message Line
 Info sizes ParameterNumber More than 7 parameters (found 14). 310

org/opentrafficsim/demo/carFollowing/CanPlaceDemoCode.java

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'canPlace' is not designed for extension - needs to be abstract, final or empty. 32
 Warning misc FinalParameters Parameter leaderSpeed should be final. 33
 Warning misc FinalParameters Parameter headway should be final. 33
 Warning misc FinalParameters Parameter laneBasedGTUCharacteristics should be final. 34
 Info sizes LineLength Line is longer than 128 characters (found 131). 56

org/opentrafficsim/demo/carFollowing/CircularLane.java

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

org/opentrafficsim/demo/carFollowing/CircularRoad.java

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

org/opentrafficsim/demo/carFollowing/CrossingTrafficLights.java

Severity Category Rule Message Line
 Info sizes LineLength Line is longer than 128 characters (found 131). 386

org/opentrafficsim/demo/carFollowing/OpenStreetMap.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'rectangle' must be private and have accessor methods. 85

org/opentrafficsim/demo/carFollowing/ShortMerge.java

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'shortName' is not designed for extension - needs to be abstract, final or empty. 104
 Warning design DesignForExtension Method 'description' is not designed for extension - needs to be abstract, final or empty. 111
 Warning design DesignForExtension Method 'makeModel' is not designed for extension - needs to be abstract, final or empty. 127
 Warning design DesignForExtension Method 'getSimulator' is not designed for extension - needs to be abstract, final or empty. 136
 Warning design DesignForExtension Method 'setSimulator' is not designed for extension - needs to be abstract, final or empty. 144
 Info sizes ParameterNumber More than 7 parameters (found 12). 373

org/opentrafficsim/demo/carFollowing/Straight.java

Severity Category Rule Message Line
 Info sizes LineLength Line is longer than 128 characters (found 129). 441

org/opentrafficsim/demo/carFollowing/StraightPerception.java

Severity Category Rule Message Line
 Info sizes LineLength Line is longer than 128 characters (found 129). 464
 Warning blocks EmptyBlock Must have at least one statement. 536
 Warning coding HiddenField 'headway' hides a field. 816
 Info sizes LineLength Line is longer than 128 characters (found 131). 822

org/opentrafficsim/demo/carFollowing/Trajectories.java

Severity Category Rule Message Line
 Info sizes LineLength Line is longer than 128 characters (found 129). 290

org/opentrafficsim/demo/carFollowing/XMLNetworks.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'headwayGenerator' must be private and have accessor methods. 246
 Warning design VisibilityModifier Variable 'gtuType' must be private and have accessor methods. 255
 Warning design VisibilityModifier Variable 'laneChangeModel' must be private and have accessor methods. 264
 Warning blocks EmptyBlock Must have at least one statement. 298
 Info sizes MethodLength Method length is 349 lines (max allowed is 150). 333
 Info sizes ParameterNumber More than 7 parameters (found 8). 793
 Info sizes LineLength Line is longer than 128 characters (found 132). 827

org/opentrafficsim/demo/carFollowing/XMLSampler.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'headwayGenerator' must be private and have accessor methods. 250
 Warning design VisibilityModifier Variable 'gtuType' must be private and have accessor methods. 259
 Warning design VisibilityModifier Variable 'laneChangeModel' must be private and have accessor methods. 268
 Warning blocks EmptyBlock Must have at least one statement. 302
 Info sizes MethodLength Method length is 352 lines (max allowed is 150). 337
 Info sizes ParameterNumber More than 7 parameters (found 8). 803
 Info sizes LineLength Line is longer than 128 characters (found 132). 837

org/opentrafficsim/demo/conflict/BusStreetDemo.java

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

org/opentrafficsim/demo/conflictAndControl/DemoTrafcodAndTurbo.java

Severity Category Rule Message Line
 Info javadoc JavadocPackage Missing package-info.java file.
 Warning imports UnusedImports Unused import - org.djunits.unit.SpeedUnit. 33
 Warning blocks LeftCurly '{' should be on a new line. 92
 Warning whitespace FileTabCharacter File contains tab characters (this is the first instance). 94
 Warning blocks LeftCurly '{' should be on a new line. 105
 Warning blocks LeftCurly '{' should be on a new line. 108
 Warning blocks LeftCurly '{' should be on a new line. 109
 Warning blocks RightCurly '}' should be alone on a line. 114
 Warning blocks LeftCurly '{' should be on a new line. 114
 Warning design VisibilityModifier Variable 'trafCOD' must be private and have accessor methods. 125
 Warning blocks LeftCurly '{' should be on a new line. 129
 Warning blocks LeftCurly '{' should be on a new line. 135
 Warning blocks LeftCurly '{' should be on a new line. 142
 Warning blocks LeftCurly '{' should be on a new line. 151
 Warning blocks LeftCurly '{' should be on a new line. 157
 Warning blocks LeftCurly '{' should be on a new line. 163
 Warning blocks LeftCurly '{' should be on a new line. 170
 Warning blocks LeftCurly '{' should be on a new line. 180
 Warning blocks LeftCurly '{' should be on a new line. 181
 Warning blocks LeftCurly '{' should be on a new line. 212
 Warning blocks LeftCurly '{' should be on a new line. 213
 Warning blocks LeftCurly '{' should be on a new line. 216
 Warning blocks LeftCurly '{' should be on a new line. 217
 Warning blocks LeftCurly '{' should be on a new line. 232
 Warning whitespace ParenPad ')' is preceded with whitespace. 233
 Warning whitespace ParenPad ')' is preceded with whitespace. 234
 Warning blocks RightCurly '}' should be alone on a line. 291
 Warning blocks LeftCurly '{' should be on a new line. 291
 Warning blocks LeftCurly '{' should be on a new line. 298
 Warning blocks LeftCurly '{' should be on a new line. 304
 Warning blocks LeftCurly '{' should be on a new line. 310
 Warning blocks LeftCurly '{' should be on a new line. 313
 Warning blocks RightCurly '}' should be alone on a line. 317
 Warning blocks LeftCurly '{' should be on a new line. 317
 Warning blocks RightCurly '}' should be alone on a line. 320
 Warning blocks LeftCurly '{' should be on a new line. 320
 Warning blocks RightCurly '}' should be alone on a line. 322
 Warning blocks LeftCurly '{' should be on a new line. 322
 Warning blocks RightCurly '}' should be alone on a line. 324
 Warning blocks LeftCurly '{' should be on a new line. 324
 Warning blocks LeftCurly '{' should be on a new line. 327
 Warning misc FinalParameters Parameter theSimulator should be final. 356
 Warning misc FinalParameters Parameter gtuColorer should be final. 356
 Warning blocks LeftCurly '{' should be on a new line. 357

org/opentrafficsim/demo/geometry/TestGeometry.java

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

org/opentrafficsim/demo/geometry/TestModel.java

Severity Category Rule Message Line
 Warning blocks EmptyBlock Must have at least one statement. 200

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

Severity Category Rule Message Line
 Info javadoc JavadocPackage Missing package-info.java file.
 Warning imports UnusedImports Unused import - org.djunits.unit.FrequencyUnit. 14
 Warning imports UnusedImports Unused import - org.djunits.value.vdouble.scalar.DoubleScalar. 16
 Warning blocks EmptyBlock Must have at least one statement. 473
 Warning blocks EmptyBlock Must have at least one statement. 541

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

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - org.djunits.unit.TimeUnit. 7

org/opentrafficsim/demo/lanechange/LaneChangeGraph.java

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

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/TrafCODDemo.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - org.opentrafficsim.road.network.lane.object.sensor.SinkSensor. 32