Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
44 4 46 0

Rules

Category Rule Violations Severity
blocks NeedBraces 8  Warning
design DesignForExtension 22  Warning
imports UnusedImports 7  Warning
javadoc JavadocPackage 1  Info
misc FinalParameters 7  Warning
TodoComment 1  Warning
modifier RedundantModifier 1  Warning
sizes LineLength
  • max: "128"
3  Info

Details

org/opentrafficsim/kpi/interfaces/GtuDataInterface.java

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

org/opentrafficsim/kpi/sampling/CrossSection.java

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

org/opentrafficsim/kpi/sampling/KpiDirectedLanePosition.java

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'hashCode' is not designed for extension - needs to be abstract, final or empty. 81
 Warning design DesignForExtension Method 'equals' is not designed for extension - needs to be abstract, final or empty. 93
 Warning blocks NeedBraces 'if' construct must use '{}'s. 96
 Warning blocks NeedBraces 'if' construct must use '{}'s. 98
 Warning blocks NeedBraces 'if' construct must use '{}'s. 100
 Warning blocks NeedBraces 'if' construct must use '{}'s. 103
 Warning blocks NeedBraces 'if' construct must use '{}'s. 107
 Warning blocks NeedBraces 'if' construct must use '{}'s. 110
 Warning blocks NeedBraces 'if' construct must use '{}'s. 114
 Warning blocks NeedBraces 'if' construct must use '{}'s. 117
 Warning design DesignForExtension Method 'toString' is not designed for extension - needs to be abstract, final or empty. 123

org/opentrafficsim/kpi/sampling/KpiLaneDirection.java

Severity Category Rule Message Line
 Warning misc FinalParameters Parameter position should be final. 65
 Warning design DesignForExtension Method 'toString' is not designed for extension - needs to be abstract, final or empty. 72

org/opentrafficsim/kpi/sampling/Query.java

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

org/opentrafficsim/kpi/sampling/Sampler.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.util.HashMap. 3
 Warning imports UnusedImports Unused import - java.util.HashSet. 4
 Warning design DesignForExtension Method 'contains' is not designed for extension - needs to be abstract, final or empty. 127
 Warning design DesignForExtension Method 'hashCode' is not designed for extension - needs to be abstract, final or empty. 311
 Warning design DesignForExtension Method 'equals' is not designed for extension - needs to be abstract, final or empty. 325

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

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'getLowerValue' is not designed for extension - needs to be abstract, final or empty. 39
 Warning design DesignForExtension Method 'getUpperValue' is not designed for extension - needs to be abstract, final or empty. 47

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

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'calculate' is not designed for extension - needs to be abstract, final or empty. 37

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

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'calculate' is not designed for extension - needs to be abstract, final or empty. 37
 Warning misc FinalParameters Parameter query should be final. 38
 Warning misc FinalParameters Parameter startTime should be final. 38
 Warning misc FinalParameters Parameter endTime should be final. 38

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

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - java.util.HashSet. 3
 Warning imports UnusedImports Unused import - java.util.Set. 5
 Warning imports UnusedImports Unused import - org.djunits.unit.LengthUnit. 7
 Warning imports UnusedImports Unused import - org.djunits.value.vdouble.scalar.Length. 10
 Warning imports UnusedImports Unused import - org.opentrafficsim.kpi.interfaces.LinkDataInterface. 12

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

Severity Category Rule Message Line
 Warning misc FinalParameters Parameter value should be final. 84
 Warning misc FinalParameters Parameter weight should be final. 84
 Warning modifier RedundantModifier Redundant 'final' modifier. 247
 Warning misc FinalParameters Parameter valueSI should be final. 247

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

Severity Category Rule Message Line
 Warning design DesignForExtension Method 'getConfidenceInterval' is not designed for extension - needs to be abstract, final or empty. 36
 Warning design DesignForExtension Method 'getConfidenceInterval' is not designed for extension - needs to be abstract, final or empty. 46
 Warning design DesignForExtension Method 'getSum' is not designed for extension - needs to be abstract, final or empty. 54
 Warning design DesignForExtension Method 'getMin' is not designed for extension - needs to be abstract, final or empty. 62
 Warning design DesignForExtension Method 'getMax' is not designed for extension - needs to be abstract, final or empty. 70
 Warning design DesignForExtension Method 'getMean' is not designed for extension - needs to be abstract, final or empty. 78
 Warning design DesignForExtension Method 'getStDev' is not designed for extension - needs to be abstract, final or empty. 86
 Warning design DesignForExtension Method 'getVariance' is not designed for extension - needs to be abstract, final or empty. 94
 Warning design DesignForExtension Method 'getN' is not designed for extension - needs to be abstract, final or empty. 102
 Warning design DesignForExtension Method 'getSI' is not designed for extension - needs to be abstract, final or empty. 108
 Warning design DesignForExtension Method 'getInUnit' is not designed for extension - needs to be abstract, final or empty. 115

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

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

org/opentrafficsim/kpi/sampling/meta/MetaDataCrossSections.java

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