Checkstyle Results

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

rss feed

Summary

Files
 Info
 Warnings
 Errors
58 2 30 0

Files

File
 I
 W
 E
org/opentrafficsim/kpi/interfaces/LinkDataInterface.java 1 0 0
org/opentrafficsim/kpi/sampling/KpiDirectedLanePosition.java 0 8 0
org/opentrafficsim/kpi/sampling/Sampler.java 0 2 0
org/opentrafficsim/kpi/sampling/SamplerData.java 1 10 0
org/opentrafficsim/kpi/sampling/Trajectory.java 0 5 0
org/opentrafficsim/kpi/sampling/indicator/AbstractIndicator.java 0 4 0
org/opentrafficsim/kpi/sampling/indicator/TotalDelay.java 0 1 0

Rules

Category Rule Violations Severity
blocks EmptyBlock 1
 Warning
NeedBraces 8
 Warning
design FinalClass 1
 Warning
VisibilityModifier 2
 Warning
imports UnusedImports 2
 Warning
javadoc JavadocMethod 2
 Warning
JavadocPackage 1
 Info
misc TodoComment 9
 Warning
modifier RedundantModifier 5
 Warning
sizes MethodLength 1
 Info

Details

org/opentrafficsim/kpi/interfaces/LinkDataInterface.java

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

org/opentrafficsim/kpi/sampling/KpiDirectedLanePosition.java

Severity Category Rule Message Line
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 95
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 97
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 99
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 102
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 106
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 109
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 113
 Warning
blocks NeedBraces 'if' construct must use '{}'s. 116

org/opentrafficsim/kpi/sampling/Sampler.java

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

org/opentrafficsim/kpi/sampling/SamplerData.java

Severity Category Rule Message Line
 Warning
imports UnusedImports Unused import - org.djunits.value.vdouble.scalar.Time. 17
 Warning
imports UnusedImports Unused import - org.opentrafficsim.kpi.sampling.ListTable.ListRecord. 25
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 42
 Info
sizes MethodLength Method length is 168 lines (max allowed is 150). 112
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 117
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 203
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 371
 Warning
modifier RedundantModifier Redundant 'final' modifier. 420
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 435
 Warning
misc TodoComment Comment matches to-do format 'TODO:'. 437
 Warning
blocks EmptyBlock Must have at least one statement. 458

org/opentrafficsim/kpi/sampling/Trajectory.java

Severity Category Rule Message Line
 Warning
javadoc JavadocMethod Expected @param tag for '<T>'. 175
 Warning
javadoc JavadocMethod Expected @param tag for '<S>'. 175
 Warning
design FinalClass Class SpaceTimeView should be declared as final. 1089
 Warning
design VisibilityModifier Variable 'distance' must be private and have accessor methods. 1093
 Warning
design VisibilityModifier Variable 'time' must be private and have accessor methods. 1096

org/opentrafficsim/kpi/sampling/indicator/AbstractIndicator.java

Severity Category Rule Message Line
 Warning
modifier RedundantModifier Redundant 'final' modifier. 90
 Warning
modifier RedundantModifier Redundant 'final' modifier. 90
 Warning
modifier RedundantModifier Redundant 'final' modifier. 90
 Warning
modifier RedundantModifier Redundant 'final' modifier. 91

org/opentrafficsim/kpi/sampling/indicator/TotalDelay.java

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