Checkstyle Results
The following document contains the results of Checkstyle 12.1.1 with /config/dsol-checks.xml ruleset.
Summary
| Files | |||
|---|---|---|---|
| 17 | 4 | 177 | 0 |
Files
Rules
| Category | Rule | Violations | Severity |
|---|---|---|---|
| blocks | EmptyBlock | 4 | |
LeftCurly
|
24 | ||
| NeedBraces | 78 | ||
RightCurly
|
13 | ||
| coding | HiddenField
|
4 | |
| design | HideUtilityClassConstructor | 2 | |
| VisibilityModifier | 21 | ||
| imports | UnusedImports | 1 | |
| javadoc | JavadocStyle | 6 | |
| misc | FinalParameters | 15 | |
| TodoComment | 7 | ||
| naming | ParameterName | 2 | |
| sizes | MethodLength | 2 | |
| ParameterNumber | 2 |
Details
nl/tudelft/simulation/dsol/web/AbstractTestDemoServer.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'sessionModelMap' must be private and have accessor methods. | 65 | |
| design | VisibilityModifier | Variable 'sessionWebModelMap' must be private and have accessor methods. | 68 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 162 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 164 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 374 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 376 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 391 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 393 | |
| blocks | EmptyBlock | Must have at least one statement. | 399 | |
| blocks | EmptyBlock | Must have at least one statement. | 403 | |
| blocks | EmptyBlock | Must have at least one statement. | 407 | |
| blocks | EmptyBlock | Must have at least one statement. | 411 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 539 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 544 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 557 |
nl/tudelft/simulation/dsol/web/Cat.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 16 |
nl/tudelft/simulation/dsol/web/DsolWebModel.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| imports | UnusedImports | Unused import - java.rmi.RemoteException. | 6 | |
| blocks | RightCurly | '}' at column 24 should be alone on a line. | 136 | |
| blocks | RightCurly | '}' at column 24 should be alone on a line. | 148 | |
| blocks | RightCurly | '}' at column 24 should be alone on a line. | 159 | |
| blocks | RightCurly | '}' at column 83 should be alone on a line. | 170 | |
| blocks | RightCurly | '}' at column 38 should be alone on a line. | 181 | |
| sizes | MethodLength | Method handle length is 329 lines (max allowed is 150). | 193 | |
| coding | HiddenField | 'animationPanel' hides a field. | 210 | |
| blocks | LeftCurly | '{' at column 34 should be on a new line. | 214 | |
| blocks | LeftCurly | '{' at column 30 should be on a new line. | 219 | |
| blocks | LeftCurly | '{' at column 36 should be on a new line. | 226 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 227 | |
| blocks | LeftCurly | '{' at column 35 should be on a new line. | 238 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 241 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 243 | |
| blocks | LeftCurly | '{' at column 34 should be on a new line. | 249 | |
| blocks | LeftCurly | '{' at column 35 should be on a new line. | 256 | |
| blocks | LeftCurly | '{' at column 31 should be on a new line. | 263 | |
| blocks | LeftCurly | '{' at column 33 should be on a new line. | 270 | |
| blocks | LeftCurly | '{' at column 35 should be on a new line. | 275 | |
| blocks | LeftCurly | '{' at column 33 should be on a new line. | 280 | |
| blocks | LeftCurly | '{' at column 35 should be on a new line. | 285 | |
| blocks | LeftCurly | '{' at column 36 should be on a new line. | 290 | |
| blocks | LeftCurly | '{' at column 29 should be on a new line. | 295 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 298 | |
| blocks | LeftCurly | '{' at column 36 should be on a new line. | 313 | |
| blocks | RightCurly | '}' at column 72 should be alone on a line. | 327 | |
| blocks | NeedBraces | 'for' construct must use '{}'s. | 339 | |
| blocks | LeftCurly | '{' at column 32 should be on a new line. | 357 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 358 | |
| blocks | LeftCurly | '{' at column 33 should be on a new line. | 369 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 370 | |
| blocks | LeftCurly | '{' at column 33 should be on a new line. | 381 | |
| blocks | LeftCurly | '{' at column 30 should be on a new line. | 386 | |
| blocks | LeftCurly | '{' at column 36 should be on a new line. | 391 | |
| blocks | LeftCurly | '{' at column 33 should be on a new line. | 396 | |
| blocks | LeftCurly | '{' at column 34 should be on a new line. | 432 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 435 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 437 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 439 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 441 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 443 | |
| blocks | RightCurly | '}' at column 70 should be alone on a line. | 448 | |
| blocks | LeftCurly | '{' at column 36 should be on a new line. | 453 | |
| blocks | LeftCurly | '{' at column 32 should be on a new line. | 459 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 460 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 469 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 471 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 476 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 478 | |
| blocks | LeftCurly | '{' at column 26 should be on a new line. | 485 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 501 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 503 |
nl/tudelft/simulation/dsol/web/DsolWebServer.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'webServer' must be private and have accessor methods. | 243 | |
| sizes | MethodLength | Method handle length is 357 lines (max allowed is 150). | 260 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 298 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 313 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 315 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 379 | |
| blocks | NeedBraces | 'for' construct must use '{}'s. | 423 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 443 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 456 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 526 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 528 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 530 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 532 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 534 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 555 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 564 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 566 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 571 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 573 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 597 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 599 |
nl/tudelft/simulation/dsol/web/animation/HtmlGraphics2D.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'background' must be private and have accessor methods. | 52 | |
| design | VisibilityModifier | Variable 'color' must be private and have accessor methods. | 55 | |
| design | VisibilityModifier | Variable 'font' must be private and have accessor methods. | 58 | |
| design | VisibilityModifier | Variable 'canvas' must be private and have accessor methods. | 61 | |
| design | VisibilityModifier | Variable 'fontMetrics' must be private and have accessor methods. | 64 | |
| design | VisibilityModifier | Variable 'paint' must be private and have accessor methods. | 67 | |
| design | VisibilityModifier | Variable 'stroke' must be private and have accessor methods. | 70 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 72 | |
| design | VisibilityModifier | Variable 'renderingHints' must be private and have accessor methods. | 73 | |
| design | VisibilityModifier | Variable 'affineTransform' must be private and have accessor methods. | 76 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 78 | |
| design | VisibilityModifier | Variable 'composite' must be private and have accessor methods. | 79 | |
| design | VisibilityModifier | Variable 'commands' must be private and have accessor methods. | 82 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 103 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 155 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 163 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 166 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 169 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 171 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 177 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 179 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 181 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 196 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 198 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 218 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 220 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 222 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 224 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 233 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 246 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 279 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 281 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 287 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 289 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 294 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 296 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 353 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 355 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 361 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 363 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 368 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 370 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 444 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 447 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 454 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 457 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 474 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 476 | |
| blocks | NeedBraces | 'if' construct must use '{}'s. | 482 | |
| blocks | NeedBraces | 'else' construct must use '{}'s. | 484 | |
| naming | ParameterName | Name 'Tx' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 677 | |
| naming | ParameterName | Name 'Tx' must match pattern '^[a-z][a-zA-Z0-9]*$'. | 683 | |
| coding | HiddenField | 'color' hides a field. | 711 | |
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 748 | |
| sizes | ParameterNumber | More than 7 parameters (found 10). | 948 | |
| sizes | ParameterNumber | More than 7 parameters (found 11). | 956 |
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 |
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 |
nl/tudelft/simulation/dsol/web/animation/HtmlToolkit.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | VisibilityModifier | Variable 'eventQueue' must be private and have accessor methods. | 39 |
nl/tudelft/simulation/dsol/web/animation/TestSwing.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 19 | |
| misc | FinalParameters | Parameter args should be final. | 38 | |
| misc | FinalParameters | Parameter g should be final. | 62 |
nl/tudelft/simulation/dsol/web/animation/d2/HtmlAnimationPanel.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| misc | TodoComment | Comment matches to-do format 'TODO:'. | 208 |
nl/tudelft/simulation/dsol/web/animation/d2/HtmlGridPanel.java
| Severity | Category | Rule | Message | Line |
|---|---|---|---|---|
| blocks | RightCurly | '}' at column 29 should be alone on a line. | 183 | |
| blocks | RightCurly | '}' at column 72 should be alone on a line. | 275 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 338 | |
| blocks | RightCurly | '}' at column 22 should be alone on a line. | 396 | |
| blocks | RightCurly | '}' at column 22 should be alone on a line. | 407 | |
| blocks | RightCurly | '}' at column 22 should be alone on a line. | 418 | |
| blocks | RightCurly | '}' at column 22 should be alone on a line. | 429 | |
| javadoc | JavadocStyle | First sentence should end with a period. | 629 | |
| coding | HiddenField | 'extent' hides a field. | 634 |
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. | 43 | |
| misc | FinalParameters | Parameter name should be final. | 78 | |
| misc | FinalParameters | Parameter locatableClass should be final. | 78 | |
| misc | FinalParameters | Parameter toolTipText should be final. | 78 | |
| misc | FinalParameters | Parameter visible should be final. | 78 | |
| misc | FinalParameters | Parameter name should be final. | 116 | |
| misc | FinalParameters | Parameter visible should be final. | 116 | |
| misc | FinalParameters | Parameter name should be final. | 144 | |
| misc | FinalParameters | Parameter layerName should be final. | 144 | |
| misc | FinalParameters | Parameter toolTipText should be final. | 144 | |
| misc | FinalParameters | Parameter visible should be final. | 144 |
