Checkstyle Results
The following document contains the results of Checkstyle 10.17.0 with /config/dsol-checks.xml ruleset.
Summary
| Files | |||
|---|---|---|---|
| 24 | 3 | 143 | 0 |
Files
Rules
| Category | Rule | Violations | Severity |
|---|---|---|---|
| blocks | EmptyBlock | 4 | |
| NeedBraces | 57 | ||
| coding | HiddenField
|
3 | |
| design | VisibilityModifier | 21 | |
| javadoc | JavadocMethod | 8 | |
| misc | FinalParameters | 40 | |
| TodoComment | 4 | ||
| modifier | ModifierOrder | 2 | |
| RedundantModifier | 2 | ||
| naming | ParameterName | 2 | |
| sizes | MethodLength | 1 | |
| ParameterNumber | 2 |
Details
nl/tudelft/simulation/dsol/jetty/sse/OtsWebModel.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| coding | HiddenField | 'animationPanel' hides a field. | 252 |
nl/tudelft/simulation/dsol/jetty/sse/OtsWebServer.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'webServer' must be private and have accessor methods. | 250 | |
| sizes | MethodLength | Method handle length is 322 lines (max allowed is 150). | 267 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 305 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 320 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 322 | |
| blocks | NeedBraces | 'for' construct must use '{}'s. | 432 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 452 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 465 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 527 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 536 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 538 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 543 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 545 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 569 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 571 |
nl/tudelft/simulation/dsol/jetty/sse/TestDemoServer.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'sessionModelMap' must be private and have accessor methods. | 68 | |
| design | VisibilityModifier | Variable 'sessionWebModelMap' must be private and have accessor methods. | 71 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 167 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 169 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 171 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 173 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 376 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 378 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 393 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 395 | |
| blocks | EmptyBlock | Must have at least one statement. | 401 | |
| blocks | EmptyBlock | Must have at least one statement. | 405 | |
| blocks | EmptyBlock | Must have at least one statement. | 409 | |
| blocks | EmptyBlock | Must have at least one statement. | 413 | |
| javadoc | JavadocMethod | Expected @param tag for '<U>'. | 422 | |
| javadoc | JavadocMethod | Expected @param tag for '<T>'. | 423 | |
| javadoc | JavadocMethod | Expected @param tag for '<U>'. | 432 | |
| javadoc | JavadocMethod | Expected @param tag for '<T>'. | 433 | |
| javadoc | JavadocMethod | Expected @param tag for '<U>'. | 447 | |
| javadoc | JavadocMethod | Expected @param tag for '<T>'. | 448 | |
| javadoc | JavadocMethod | Expected @param tag for '<U>'. | 457 | |
| javadoc | JavadocMethod | Expected @param tag for '<T>'. | 458 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 533 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 538 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 551 |
nl/tudelft/simulation/dsol/web/animation/HtmlDevice.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | FinalParameters | Parameter htmlGraphicsConfiguration should be final. | 26 |
nl/tudelft/simulation/dsol/web/animation/HtmlGraphics2d.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'background' must be private and have accessor methods. | 53 | |
| design | VisibilityModifier | Variable 'color' must be private and have accessor methods. | 56 | |
| design | VisibilityModifier | Variable 'font' must be private and have accessor methods. | 59 | |
| design | VisibilityModifier | Variable 'canvas' must be private and have accessor methods. | 62 | |
| design | VisibilityModifier | Variable 'fontMetrics' must be private and have accessor methods. | 65 | |
| design | VisibilityModifier | Variable 'paint' must be private and have accessor methods. | 68 | |
| design | VisibilityModifier | Variable 'stroke' must be private and have accessor methods. | 71 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 73 | |
| design | VisibilityModifier | Variable 'renderingHints' must be private and have accessor methods. | 74 | |
| design | VisibilityModifier | Variable 'affineTransform' must be private and have accessor methods. | 77 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 79 | |
| design | VisibilityModifier | Variable 'composite' must be private and have accessor methods. | 80 | |
| design | VisibilityModifier | Variable 'commands' must be private and have accessor methods. | 83 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 164 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 167 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 170 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 172 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 178 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 180 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 182 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 197 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 199 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 219 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 221 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 223 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 225 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 280 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 282 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 288 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 290 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 295 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 297 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 354 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 356 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 362 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 364 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 369 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 371 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 445 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 448 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 455 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 458 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 475 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 477 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 483 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 485 | |
| naming | ParameterName | Name 'Tx' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 686 | |
| naming | ParameterName | Name 'Tx' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 692 | |
| coding | HiddenField | 'color' hides a field. | 720 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 757 | |
| sizes | ParameterNumber | More than 7 parameters (found 10). | 957 | |
| sizes | ParameterNumber | More than 7 parameters (found 11). | 965 |
nl/tudelft/simulation/dsol/web/animation/HtmlGraphicsConfiguration.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'htmlDevice' must be private and have accessor methods. | 26 | |
| design | VisibilityModifier | Variable 'identityTransform' must be private and have accessor methods. | 29 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 31 | |
| design | VisibilityModifier | Variable 'bounds' must be private and have accessor methods. | 32 | |
| coding | HiddenField | 'htmlDevice' hides a field. | 54 | |
| misc | FinalParameters | Parameter transparency should be final. | 68 |
nl/tudelft/simulation/dsol/web/animation/HtmlGraphicsEnvironment.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'htmlDevice' must be private and have accessor methods. | 26 | |
| design | VisibilityModifier | Variable 'graphics2D' must be private and have accessor methods. | 29 | |
| design | VisibilityModifier | Variable 'graphicsConfiguration' must be private and have accessor methods. | 32 | |
| misc | FinalParameters | Parameter img should be final. | 61 | |
| misc | FinalParameters | Parameter l should be final. | 82 |
nl/tudelft/simulation/dsol/web/animation/HtmlToolkit.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'eventQueue' must be private and have accessor methods. | 40 | |
| misc | FinalParameters | Parameter font should be final. | 78 | |
| misc | FinalParameters | Parameter filename should be final. | 91 | |
| misc | FinalParameters | Parameter url should be final. | 98 | |
| misc | FinalParameters | Parameter filename should be final. | 105 | |
| misc | FinalParameters | Parameter url should be final. | 112 | |
| misc | FinalParameters | Parameter image should be final. | 119 | |
| misc | FinalParameters | Parameter width should be final. | 119 | |
| misc | FinalParameters | Parameter height should be final. | 119 | |
| misc | FinalParameters | Parameter observer should be final. | 119 | |
| misc | FinalParameters | Parameter image should be final. | 126 | |
| misc | FinalParameters | Parameter width should be final. | 126 | |
| misc | FinalParameters | Parameter height should be final. | 126 | |
| misc | FinalParameters | Parameter observer should be final. | 126 | |
| misc | FinalParameters | Parameter producer should be final. | 133 | |
| misc | FinalParameters | Parameter imagedata should be final. | 140 | |
| misc | FinalParameters | Parameter imageoffset should be final. | 140 | |
| misc | FinalParameters | Parameter imagelength should be final. | 140 | |
| misc | FinalParameters | Parameter frame should be final. | 147 | |
| misc | FinalParameters | Parameter jobtitle should be final. | 147 | |
| misc | FinalParameters | Parameter props should be final. | 147 | |
| misc | FinalParameters | Parameter modalityType should be final. | 175 | |
| misc | FinalParameters | Parameter modalExclusionType should be final. | 182 | |
| misc | FinalParameters | Parameter highlight should be final. | 189 |
nl/tudelft/simulation/dsol/web/animation/d2/ToggleButtonInfo.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | FinalParameters | Parameter name should be final. | 25 | |
| misc | FinalParameters | Parameter visible should be final. | 25 | |
| misc | FinalParameters | Parameter visible should be final. | 42 | |
| misc | FinalParameters | Parameter name should be final. | 77 | |
| misc | FinalParameters | Parameter locatableClass should be final. | 77 | |
| misc | FinalParameters | Parameter toolTipText should be final. | 77 | |
| misc | FinalParameters | Parameter visible should be final. | 77 | |
| misc | FinalParameters | Parameter name should be final. | 115 | |
| misc | FinalParameters | Parameter visible should be final. | 115 | |
| misc | FinalParameters | Parameter name should be final. | 143 | |
| misc | FinalParameters | Parameter layerName should be final. | 143 | |
| misc | FinalParameters | Parameter toolTipText should be final. | 143 | |
| misc | FinalParameters | Parameter visible should be final. | 143 |
org/opentrafficsim/web/animation/WebAnimationToggles.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| modifier | RedundantModifier | Redundant 'final' modifier. | 108 | |
| modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 108 | |
| modifier | RedundantModifier | Redundant 'final' modifier. | 118 | |
| modifier | ModifierOrder | 'static' modifier out of order with the JLS suggestions. | 118 |
