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
25 16 27 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 3  Warning
javadoc JavadocPackage 2  Info
misc FinalParameters 10  Warning
sizes LineLength
  • max: "128"
8  Info
MethodLength 4  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
 Warning imports UnusedImports Unused import - org.opentrafficsim.road.gtu.lane.tactical.LaneBasedGTUFollowingDirectedChangeTacticalPlanner. 56
 Info sizes MethodLength Method length is 239 lines (max allowed is 150). 420
 Info sizes LineLength Line is longer than 128 characters (found 129). 545

org/opentrafficsim/demo/carFollowing/CrossingTrafficLights.java

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

org/opentrafficsim/demo/carFollowing/FundamentalDiagrams.java

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

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

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

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

org/opentrafficsim/demo/carFollowing/XMLNetworks.java

Severity Category Rule Message Line
 Warning misc FinalParameters Parameter simulator should be final. 170
 Warning design VisibilityModifier Variable 'headwayGenerator' must be private and have accessor methods. 245
 Warning design VisibilityModifier Variable 'gtuType' must be private and have accessor methods. 254
 Warning design VisibilityModifier Variable 'laneChangeModel' must be private and have accessor methods. 263
 Warning blocks EmptyBlock Must have at least one statement. 297
 Info sizes MethodLength Method length is 353 lines (max allowed is 150). 332
 Info sizes ParameterNumber More than 7 parameters (found 8). 795
 Info sizes LineLength Line is longer than 128 characters (found 132). 826

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 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). 368