The following document contains the results of Checkstyle 6.2 with development/dsol-checks.xml ruleset.
Category | Rule | Violations | Severity |
---|---|---|---|
blocks | EmptyBlock | 6 | ![]() |
coding | HiddenField
|
2 | ![]() |
design | DesignForExtension | 22 | ![]() |
VisibilityModifier | 9 | ![]() | |
imports | UnusedImports | 6 | ![]() |
javadoc | JavadocPackage | 3 | ![]() |
misc | FinalParameters | 7 | ![]() |
sizes | LineLength
|
6 | ![]() |
MethodLength | 5 | ![]() | |
ParameterNumber | 5 | ![]() |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'sampler' must be private and have accessor methods. | 113 |
![]() |
design | DesignForExtension | Method 'getReplication' is not designed for extension - needs to be abstract, final or empty. | 150 |
![]() |
design | DesignForExtension | Method 'getAnticipationStrategy' is not designed for extension - needs to be abstract, final or empty. | 158 |
![]() |
design | DesignForExtension | Method 'getReactionTime' is not designed for extension - needs to be abstract, final or empty. | 166 |
![]() |
design | DesignForExtension | Method 'getAnticipationTime' is not designed for extension - needs to be abstract, final or empty. | 174 |
![]() |
design | DesignForExtension | Method 'getTruckFraction' is not designed for extension - needs to be abstract, final or empty. | 182 |
![]() |
design | DesignForExtension | Method 'getDistanceError' is not designed for extension - needs to be abstract, final or empty. | 190 |
![]() |
design | DesignForExtension | Method 'getSpeedError' is not designed for extension - needs to be abstract, final or empty. | 198 |
![]() |
design | DesignForExtension | Method 'getAccelerationError' is not designed for extension - needs to be abstract, final or empty. | 206 |
![]() |
design | DesignForExtension | Method 'getLeftDemand' is not designed for extension - needs to be abstract, final or empty. | 214 |
![]() |
design | DesignForExtension | Method 'getRightDemand' is not designed for extension - needs to be abstract, final or empty. | 222 |
![]() |
design | DesignForExtension | Method 'getLeftFraction' is not designed for extension - needs to be abstract, final or empty. | 230 |
![]() |
sizes | MethodLength | Method length is 302 lines (max allowed is 150). | 240 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | LineLength | Line is longer than 128 characters (found 131). | 233 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 14). | 311 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | DesignForExtension | Method 'canPlace' is not designed for extension - needs to be abstract, final or empty. | 32 |
![]() |
misc | FinalParameters | Parameter leaderSpeed should be final. | 33 |
![]() |
misc | FinalParameters | Parameter headway should be final. | 33 |
![]() |
misc | FinalParameters | Parameter laneBasedGTUCharacteristics should be final. | 34 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 131). | 56 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | MethodLength | Method length is 163 lines (max allowed is 150). | 373 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | MethodLength | Method length is 242 lines (max allowed is 150). | 422 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'rectangle' must be private and have accessor methods. | 85 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | DesignForExtension | Method 'shortName' is not designed for extension - needs to be abstract, final or empty. | 143 |
![]() |
design | DesignForExtension | Method 'description' is not designed for extension - needs to be abstract, final or empty. | 150 |
![]() |
design | DesignForExtension | Method 'getColorer' is not designed for extension - needs to be abstract, final or empty. | 167 |
![]() |
design | DesignForExtension | Method 'makeModel' is not designed for extension - needs to be abstract, final or empty. | 174 |
![]() |
design | DesignForExtension | Method 'getSimulator' is not designed for extension - needs to be abstract, final or empty. | 183 |
![]() |
design | DesignForExtension | Method 'setSimulator' is not designed for extension - needs to be abstract, final or empty. | 191 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 12). | 451 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
blocks | EmptyBlock | Must have at least one statement. | 535 |
![]() |
coding | HiddenField | 'headway' hides a field. | 811 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | LineLength | Line is longer than 128 characters (found 129). | 291 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'headwayGenerator' must be private and have accessor methods. | 247 |
![]() |
design | VisibilityModifier | Variable 'gtuType' must be private and have accessor methods. | 256 |
![]() |
design | VisibilityModifier | Variable 'laneChangeModel' must be private and have accessor methods. | 265 |
![]() |
blocks | EmptyBlock | Must have at least one statement. | 299 |
![]() |
sizes | MethodLength | Method length is 349 lines (max allowed is 150). | 334 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 8). | 794 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 132). | 828 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 140). | 923 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | VisibilityModifier | Variable 'headwayGenerator' must be private and have accessor methods. | 251 |
![]() |
design | VisibilityModifier | Variable 'gtuType' must be private and have accessor methods. | 260 |
![]() |
design | VisibilityModifier | Variable 'laneChangeModel' must be private and have accessor methods. | 269 |
![]() |
blocks | EmptyBlock | Must have at least one statement. | 303 |
![]() |
sizes | MethodLength | Method length is 352 lines (max allowed is 150). | 338 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 8). | 804 |
![]() |
sizes | LineLength | Line is longer than 128 characters (found 132). | 838 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | DesignForExtension | Method 'draw' is not designed for extension - needs to be abstract, final or empty. | 460 |
![]() |
design | DesignForExtension | Method 'getSimulator' is not designed for extension - needs to be abstract, final or empty. | 536 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | |
![]() |
design | VisibilityModifier | Variable 'trafCOD' must be private and have accessor methods. | 123 |
![]() |
misc | FinalParameters | Parameter theSimulator should be final. | 365 |
![]() |
misc | FinalParameters | Parameter gtuColorer should be final. | 365 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
blocks | EmptyBlock | Must have at least one statement. | 200 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | |
![]() |
imports | UnusedImports | Unused import - org.djunits.unit.FrequencyUnit. | 14 |
![]() |
imports | UnusedImports | Unused import - org.djunits.value.vdouble.scalar.DoubleScalar. | 16 |
![]() |
blocks | EmptyBlock | Must have at least one statement. | 473 |
![]() |
blocks | EmptyBlock | Must have at least one statement. | 541 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
imports | UnusedImports | Unused import - org.djunits.unit.TimeUnit. | 7 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | FinalParameters | Parameter low should be final. | 273 |
![]() |
misc | FinalParameters | Parameter high should be final. | 273 |
![]() |
coding | HiddenField | 'network' hides a field. | 278 |
![]() |
sizes | ParameterNumber | More than 7 parameters (found 8). | 370 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | DesignForExtension | Method 'stop' is not designed for extension - needs to be abstract, final or empty. | 97 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
design | DesignForExtension | Method 'stop' is not designed for extension - needs to be abstract, final or empty. | 127 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
imports | UnusedImports | Unused import - org.djunits.unit.TimeUnit. | 17 |
![]() |
imports | UnusedImports | Unused import - org.opentrafficsim.road.network.lane.object.sensor.SinkSensor. | 33 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
imports | UnusedImports | Unused import - org.djunits.unit.TimeUnit. | 28 |