Checkstyle Results

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

rss feed

Summary

Files
 Info
 Warnings
 Errors
73 31 72 0

Files

File
 I
 W
 E
loadfromxml/LoadXML.java 0 2 0
org/opentrafficsim/ahfe/AHFEAnimation.java 1 0 0
org/opentrafficsim/ahfe/AHFESimulation.java 1 0 0
org/opentrafficsim/ahfe/AHFEUtil.java 2 0 0
org/opentrafficsim/ahfe/DelayedNeighborsPerception.java 1 0 0
org/opentrafficsim/demo/CircularLaneSwing.java 1 0 0
org/opentrafficsim/demo/RampMeteringDemo.java 0 5 0
org/opentrafficsim/demo/SequentialLanes.java 1 0 0
org/opentrafficsim/demo/ShortMerge.java 1 1 0
org/opentrafficsim/demo/StraightSwing.java 1 0 0
org/opentrafficsim/demo/conflictAndControl/DemoTrafcodAndTurbo.java 1 0 0
org/opentrafficsim/demo/geometry/TestGeometry.java 1 0 0
org/opentrafficsim/demo/geometry/shape/ShapeFileReader.java 1 0 0
org/opentrafficsim/demo/lanechange/LaneChangeGraph.java 1 0 0
org/opentrafficsim/demo/network/xml/N201ODfactory.java 0 2 0
org/opentrafficsim/demo/network/xml/TestTransform.java 0 1 0
org/opentrafficsim/demo/network/xml/TestXMLParserKPIs.java 0 16 0
org/opentrafficsim/demo/sdm/SdmSimulation.java 1 0 0
org/opentrafficsim/demo/steering/SteeringSimulation.java 1 4 0
org/opentrafficsim/demo/web/OTSDemoServer.java 0 11 0
org/opentrafficsim/demo/web/OTSFederatedDemoServer.java 0 23 0
org/opentrafficsim/demo/web/SimpleLoadBalancer.java 2 0 0
org/opentrafficsim/demo/web/SuperDemoWebApplication.java 0 6 0
strategies/LmrsStrategies.java 13 1 0
strategies/StrategiesDemo.java 1 0 0

Rules

Category Rule Violations Severity
blocks EmptyBlock 11
 Warning
NeedBraces 24
 Warning
design HideUtilityClassConstructor 1
 Warning
VisibilityModifier 9
 Warning
javadoc JavadocPackage 3
 Info
JavadocStyle
  • checkHtml: "false"
1
 Warning
JavadocVariable 7
 Warning
misc FinalParameters 3
 Warning
TodoComment 13
 Warning
naming ConstantName 1
 Warning
sizes LineLength
  • max: "128"
21
 Info
MethodLength 4
 Info
ParameterNumber 3
 Info
whitespace WhitespaceAfter 2
 Warning

Details

loadfromxml/LoadXML.java

Severity Category Rule Message Line
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 137
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 189

org/opentrafficsim/ahfe/AHFEAnimation.java

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

org/opentrafficsim/ahfe/AHFESimulation.java

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

org/opentrafficsim/ahfe/AHFEUtil.java

Severity Category Rule Message Line
 Info
sizes MethodLength Method length is 166 lines (max allowed is 150). 142
 Info
sizes ParameterNumber More than 7 parameters (found 14). 354

org/opentrafficsim/ahfe/DelayedNeighborsPerception.java

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

org/opentrafficsim/demo/CircularLaneSwing.java

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

org/opentrafficsim/demo/RampMeteringDemo.java

Severity Category Rule Message Line
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 302
 Warning
whitespace WhitespaceAfter ';' is not followed by whitespace. 337
 Warning
whitespace WhitespaceAfter ';' is not followed by whitespace. 342
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 393
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 579

org/opentrafficsim/demo/SequentialLanes.java

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

org/opentrafficsim/demo/ShortMerge.java

Severity Category Rule Message Line
 Warning
blocks EmptyBlock Must have at least one statement. 291
 Info
sizes ParameterNumber More than 7 parameters (found 12). 438

org/opentrafficsim/demo/StraightSwing.java

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

org/opentrafficsim/demo/conflictAndControl/DemoTrafcodAndTurbo.java

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

org/opentrafficsim/demo/geometry/TestGeometry.java

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

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

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

org/opentrafficsim/demo/lanechange/LaneChangeGraph.java

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

org/opentrafficsim/demo/network/xml/N201ODfactory.java

Severity Category Rule Message Line
 Warning
design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 70
 Warning
javadoc JavadocStyle First sentence should end with a period. 73

org/opentrafficsim/demo/network/xml/TestTransform.java

Severity Category Rule Message Line
 Warning
misc FinalParameters Parameter args should be final. 34

org/opentrafficsim/demo/network/xml/TestXMLParserKPIs.java

Severity Category Rule Message Line
 Warning
javadoc JavadocVariable Missing a Javadoc comment. 195
 Warning
design VisibilityModifier Variable 'totalTravelDistance' must be private and have accessor methods. 195
 Warning
javadoc JavadocVariable Missing a Javadoc comment. 197
 Warning
design VisibilityModifier Variable 'totalTravelTime' must be private and have accessor methods. 197
 Warning
javadoc JavadocVariable Missing a Javadoc comment. 199
 Warning
design VisibilityModifier Variable 'meanSpeed' must be private and have accessor methods. 199
 Warning
javadoc JavadocVariable Missing a Javadoc comment. 201
 Warning
design VisibilityModifier Variable 'meanTravelTimePerDistance' must be private and have accessor methods. 201
 Warning
javadoc JavadocVariable Missing a Javadoc comment. 203
 Warning
design VisibilityModifier Variable 'meanTripLength' must be private and have accessor methods. 203
 Warning
javadoc JavadocVariable Missing a Javadoc comment. 205
 Warning
design VisibilityModifier Variable 'totalDelay' must be private and have accessor methods. 205
 Warning
javadoc JavadocVariable Missing a Javadoc comment. 207
 Warning
design VisibilityModifier Variable 'totalNumberOfStops' must be private and have accessor methods. 207
 Warning
misc FinalParameters Parameter time should be final. 209
 Warning
misc FinalParameters Parameter time should be final. 232

org/opentrafficsim/demo/sdm/SdmSimulation.java

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

org/opentrafficsim/demo/steering/SteeringSimulation.java

Severity Category Rule Message Line
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 96
 Info
sizes MethodLength Method length is 158 lines (max allowed is 150). 136
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 242
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 262
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 268

org/opentrafficsim/demo/web/OTSDemoServer.java

Severity Category Rule Message Line
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 565
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 567
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 582
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 584
 Warning
blocks EmptyBlock Must have at least one statement. 590
 Warning
blocks EmptyBlock Must have at least one statement. 594
 Warning
blocks EmptyBlock Must have at least one statement. 598
 Warning
blocks EmptyBlock Must have at least one statement. 602
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 730
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 735
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 748

org/opentrafficsim/demo/web/OTSFederatedDemoServer.java

Severity Category Rule Message Line
 Warning
design VisibilityModifier Variable 'sessionModelMap' must be private and have accessor methods. 83
 Warning
design VisibilityModifier Variable 'sessionWebModelMap' must be private and have accessor methods. 86
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 211
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 213
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 215
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 217
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 219
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 233
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 235
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 237
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 240
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 242
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 445
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 447
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 462
 Warning
blocks NeedBraces 'else' construct must use '{}'s. 464
 Warning
blocks EmptyBlock Must have at least one statement. 470
 Warning
blocks EmptyBlock Must have at least one statement. 474
 Warning
blocks EmptyBlock Must have at least one statement. 478
 Warning
blocks EmptyBlock Must have at least one statement. 482
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 610
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 615
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 628

org/opentrafficsim/demo/web/SimpleLoadBalancer.java

Severity Category Rule Message Line
 Info
sizes LineLength Line is longer than 128 characters (found 130). 209
 Info
sizes LineLength Line is longer than 128 characters (found 130). 321

org/opentrafficsim/demo/web/SuperDemoWebApplication.java

Severity Category Rule Message Line
 Warning
blocks EmptyBlock Must have at least one statement. 363
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 364
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 423
 Warning
blocks EmptyBlock Must have at least one statement. 458
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 459
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 532

strategies/LmrsStrategies.java

Severity Category Rule Message Line
 Warning
naming ConstantName Name 'colorer' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 261
 Info
sizes MethodLength Method length is 169 lines (max allowed is 150). 278
 Info
sizes LineLength Line is longer than 128 characters (found 139). 744
 Info
sizes LineLength Line is longer than 128 characters (found 136). 745
 Info
sizes LineLength Line is longer than 128 characters (found 136). 747
 Info
sizes LineLength Line is longer than 128 characters (found 136). 749
 Info
sizes LineLength Line is longer than 128 characters (found 138). 751
 Info
sizes LineLength Line is longer than 128 characters (found 136). 753
 Info
sizes LineLength Line is longer than 128 characters (found 136). 755
 Info
sizes LineLength Line is longer than 128 characters (found 135). 775
 Info
sizes LineLength Line is longer than 128 characters (found 135). 776
 Info
sizes LineLength Line is longer than 128 characters (found 133). 809
 Info
sizes LineLength Line is longer than 128 characters (found 131). 814
 Info
sizes LineLength Line is longer than 128 characters (found 129). 894

strategies/StrategiesDemo.java

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