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
23 15 47 0

Rules

Category Rule Violations Severity
blocks EmptyBlock 5  Warning
coding HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
2  Warning
design DesignForExtension 2  Warning
VisibilityModifier 5  Warning
imports UnusedImports 2  Warning
javadoc JavadocMethod 20  Warning
JavadocPackage 2  Info
misc FinalParameters 11  Warning
sizes LineLength
  • max: "128"
6  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. 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). 371

org/opentrafficsim/demo/carFollowing/CircularRoad.java

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

org/opentrafficsim/demo/carFollowing/FundamentalDiagrams.java

Severity Category Rule Message Line
 Warning misc FinalParameters Parameter simulator should be final. 157
 Info sizes LineLength Line is longer than 128 characters (found 131). 209
 Info sizes LineLength Line is longer than 128 characters (found 129). 305

org/opentrafficsim/demo/carFollowing/OpenStreetMap.java

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

org/opentrafficsim/demo/carFollowing/SequentialLanes.java

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

org/opentrafficsim/demo/carFollowing/StraightPerception.java

Severity Category Rule Message Line
 Warning misc FinalParameters Parameter simulator should be final. 233
 Warning blocks EmptyBlock Must have at least one statement. 535
 Warning coding HiddenField 'headway' hides a field. 808
 Info sizes LineLength Line is longer than 128 characters (found 131). 814

org/opentrafficsim/demo/carFollowing/SuperDemo.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'descriptionPanel' must be private and have accessor methods. 91
 Info sizes LineLength Line is longer than 128 characters (found 135). 228
 Info sizes MethodLength Method length is 251 lines (max allowed is 150). 343

org/opentrafficsim/demo/carFollowing/Trajectories.java

Severity Category Rule Message Line
 Warning misc FinalParameters Parameter simulator should be final. 157

org/opentrafficsim/demo/carFollowing/XMLNetworks.java

Severity Category Rule Message Line
 Warning misc FinalParameters Parameter simulator should be final. 168
 Warning design VisibilityModifier Variable 'headwayGenerator' must be private and have accessor methods. 243
 Warning design VisibilityModifier Variable 'gtuType' must be private and have accessor methods. 252
 Warning design VisibilityModifier Variable 'laneChangeModel' must be private and have accessor methods. 261
 Warning blocks EmptyBlock Must have at least one statement. 295
 Info sizes MethodLength Method length is 335 lines (max allowed is 150). 330
 Warning javadoc JavadocMethod Expected @throws tag for 'GTUException'. 677
 Warning javadoc JavadocMethod Expected @throws tag for 'ProbabilityException'. 677
 Warning javadoc JavadocMethod Expected @throws tag for 'GTUException'. 698
 Warning javadoc JavadocMethod Expected @throws tag for 'SimRuntimeException'. 698
 Warning javadoc JavadocMethod Expected @throws tag for 'ProbabilityException'. 698
 Info sizes ParameterNumber More than 7 parameters (found 8). 771
 Warning javadoc JavadocMethod Expected @param tag for 'stream'. 771
 Warning javadoc JavadocMethod Expected @param tag for 'lane'. 771
 Warning javadoc JavadocMethod Expected @param tag for 'lengthDistribution'. 772
 Warning javadoc JavadocMethod Expected @param tag for 'widthDistribution'. 773
 Warning javadoc JavadocMethod Expected @param tag for 'maximumSpeedDistribution'. 774
 Warning javadoc JavadocMethod Expected @param tag for 'initialSpeedDistribution'. 775
 Warning misc FinalParameters Parameter initialPositions should be final. 776
 Warning javadoc JavadocMethod Expected @param tag for 'initialPositions'. 776
 Warning javadoc JavadocMethod Expected @throws tag for 'GTUException'. 777
 Info sizes LineLength Line is longer than 128 characters (found 132). 802

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

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/lanechange/LaneChangeGraph.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod Expected @throws tag for 'OTSGeometryException'. 142
 Warning javadoc JavadocMethod Expected @throws tag for 'OperationalPlanException'. 142
 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
 Warning javadoc JavadocMethod Expected @throws tag for 'OperationalPlanException'. 273
 Warning coding HiddenField 'network' hides a field. 276
 Info sizes ParameterNumber More than 7 parameters (found 8). 368
 Warning javadoc JavadocMethod Expected @throws tag for 'OperationalPlanException'. 372

org/opentrafficsim/demo/lanechange/SuitabilityGraph.java

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