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
21 12 34 0

Rules

Category Rule Violations Severity
blocks EmptyBlock 4  Warning
design DesignForExtension 4  Warning
VisibilityModifier 7  Warning
javadoc JavadocMethod 12  Warning
JavadocPackage 2  Info
misc FinalParameters 7  Warning
sizes LineLength
  • max: "128"
3  Info
MethodLength 5  Info
ParameterNumber 2  Info

Details

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. 30
 Warning misc FinalParameters Parameter leaderSpeed should be final. 31
 Warning misc FinalParameters Parameter headway should be final. 31
 Warning misc FinalParameters Parameter laneBasedGTUCharacteristics should be final. 32

org/opentrafficsim/demo/carFollowing/CircularLane.java

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

org/opentrafficsim/demo/carFollowing/CircularRoad.java

Severity Category Rule Message Line
 Info sizes MethodLength Method length is 202 lines (max allowed is 150). 399
 Info sizes LineLength Line is longer than 128 characters (found 129). 647

org/opentrafficsim/demo/carFollowing/FundamentalDiagrams.java

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

org/opentrafficsim/demo/carFollowing/FundamentalDiagramsLane.java

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

org/opentrafficsim/demo/carFollowing/OpenStreetMap.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'rectangle' must be private and have accessor methods. 84
 Warning design DesignForExtension Method 'makeModel' is not designed for extension - needs to be abstract, final or empty. 140
 Warning misc FinalParameters Parameter colorer should be final. 141
 Warning design DesignForExtension Method 'makeCharts' is not designed for extension - needs to be abstract, final or empty. 263
 Warning design DesignForExtension Method 'makeAnimationRectangle' is not designed for extension - needs to be abstract, final or empty. 270

org/opentrafficsim/demo/carFollowing/SequentialLanes.java

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

org/opentrafficsim/demo/carFollowing/SuperDemo.java

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

org/opentrafficsim/demo/carFollowing/XMLNetworks.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'headwayGenerator' must be private and have accessor methods. 234
 Warning design VisibilityModifier Variable 'gtuType' must be private and have accessor methods. 243
 Warning design VisibilityModifier Variable 'laneChangeModel' must be private and have accessor methods. 252
 Warning design VisibilityModifier Variable 'routeGenerator' must be private and have accessor methods. 264
 Warning design VisibilityModifier Variable 'tacticalPlanner' must be private and have accessor methods. 270
 Warning design VisibilityModifier Variable 'idGenerator' must be private and have accessor methods. 273
 Warning blocks EmptyBlock Must have at least one statement. 283
 Info sizes MethodLength Method length is 240 lines (max allowed is 150). 319
 Warning javadoc JavadocMethod Expected @throws tag for 'GTUException'. 572
 Warning javadoc JavadocMethod Expected @throws tag for 'ProbabilityException'. 572
 Warning javadoc JavadocMethod Expected @throws tag for 'GTUException'. 593
 Warning javadoc JavadocMethod Expected @throws tag for 'SimRuntimeException'. 593
 Warning javadoc JavadocMethod Expected @throws tag for 'ProbabilityException'. 593
 Info sizes ParameterNumber More than 7 parameters (found 8). 666
 Warning javadoc JavadocMethod Expected @param tag for 'stream'. 666
 Warning javadoc JavadocMethod Expected @param tag for 'lane'. 666
 Warning misc FinalParameters Parameter initialPositions should be final. 671
 Warning javadoc JavadocMethod Expected @throws tag for 'GTUException'. 671

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. 211

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

Severity Category Rule Message Line
 Info javadoc JavadocPackage Missing package-info.java file.
 Warning blocks EmptyBlock Must have at least one statement. 477
 Warning blocks EmptyBlock Must have at least one statement. 547

org/opentrafficsim/demo/lanechange/LaneChangeGraph.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod Expected @throws tag for 'OTSGeometryException'. 137
 Warning misc FinalParameters Parameter low should be final. 271
 Warning misc FinalParameters Parameter high should be final. 271
 Warning javadoc JavadocMethod Expected @throws tag for 'OTSGeometryException'. 273
 Info sizes ParameterNumber More than 7 parameters (found 8). 373

org/opentrafficsim/demo/lanechange/SuitabilityGraph.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod Expected @throws tag for 'OTSGeometryException'. 128
 Warning javadoc JavadocMethod Expected @throws tag for 'GTUException'. 128