Checkstyle Results

The following document contains the results of Checkstylerss feed

Summary

Files  Info  Warnings  Errors
247 6 93 0

Rules

Rule Violations Severity
JavadocPackage 2  Info
NewlineAtEndOfFile
  • lineSeparator: "crlf"
  • fileExtensions: "java"
1  Warning
Translation 0  Warning
FileLength 1  Warning
FileTabCharacter 0  Warning
RegexpSingleline
  • message: "Line has trailing spaces."
  • minimum: "0"
  • maximum: "0"
  • format: "\s+$"
0  
SuppressWarningsFilter 0  Error
JavadocMethod 33  Warning
JavadocType 0  Warning
JavadocVariable 4  Warning
JavadocStyle 0  Warning
ConstantName 25  Warning
LocalFinalVariableName 0  Warning
LocalVariableName 2  Warning
MemberName 0  Warning
MethodName 0  Warning
PackageName 0  Warning
ParameterName 2  Warning
StaticVariableName 0  Warning
TypeName
  • format: "^[A-Z][a-zA-Z0-9_]*$"
0  Warning
AvoidStarImport 0  Warning
IllegalImport 0  Warning
RedundantImport 0  Warning
UnusedImports 3  Warning
LineLength
  • max: "128"
1  Info
MethodLength 1  Info
ParameterNumber 2  Info
EmptyForIteratorPad 0  Warning
GenericWhitespace 0  Warning
MethodParamPad 0  Warning
NoWhitespaceAfter 0  Warning
NoWhitespaceBefore 0  Warning
OperatorWrap 0  Warning
ParenPad 0  Warning
TypecastParenPad 0  Warning
WhitespaceAfter 0  Warning
WhitespaceAround
  • tokens: "ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"
0  Warning
ModifierOrder 2  Warning
RedundantModifier 0  Warning
AvoidNestedBlocks 2  Warning
EmptyBlock 5  Warning
LeftCurly
  • maxLineLength: "128"
  • option: "nl"
0  Warning
NeedBraces 0  Warning
RightCurly
  • tokens: "LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE"
  • option: "alone"
0  Warning
AvoidInlineConditionals 0  
EmptyStatement 0  Warning
EqualsHashCode 0  Warning
HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
0  Warning
IllegalInstantiation 0  Warning
InnerAssignment 0  Warning
MagicNumber 0  
MissingSwitchDefault 0  Warning
RedundantThrows 0  Warning
SimplifyBooleanExpression 0  Warning
SimplifyBooleanReturn 0  Warning
DesignForExtension 0  Warning
FinalClass 0  Warning
HideUtilityClassConstructor 1  Warning
InterfaceIsType 0  Warning
VisibilityModifier 6  Warning
ArrayTypeStyle 0  Warning
FinalParameters 4  Warning
TodoComment 2  Warning
UpperEll 0  Warning
SuppressWarningsHolder 0  Warning

Details

org/opentrafficsim/core/gtu/lane/AbstractLaneBasedGTU.java

Severity Message Line
 Warning Expected @throws tag for 'GTUException'. 320
 Warning Comment matches to-do format 'TODO:'. 378
 Warning Must have at least one statement. 424
 Info Line is longer than 128 characters (found 142). 429
 Warning Must have at least one statement. 1228

org/opentrafficsim/core/gtu/lane/LaneBasedGTU.java

Severity Message Line
 Warning Expected @throws tag for 'NetworkException'. 97

org/opentrafficsim/core/network/ExpansionNetwork.java

Severity Message Line
 Warning Avoid nested blocks. 156
 Warning Avoid nested blocks. 185
 Warning Must have at least one statement. 319
 Warning Must have at least one statement. 325
 Warning Must have at least one statement. 346

org/opentrafficsim/core/network/SubNetwork.java

Severity Message Line
 Warning Missing a Javadoc comment. 45
 Warning Missing a Javadoc comment. 56

org/opentrafficsim/core/network/factory/LaneFactory.java

Severity Message Line
 Warning Parameter latPosAtEnd should be final. 100
 Info More than 7 parameters (found 9). 156
 Warning Parameter laneOffsetAtStart should be final. 157
 Warning Parameter laneOffsetAtEnd should be final. 158

org/opentrafficsim/core/network/factory/NetworkLaneParser.java

Severity Message Line
 Warning Expected @throws tag for 'NetworkException'. 723

org/opentrafficsim/core/network/factory/TestXMLModel.java

Severity Message Line
 Warning Unused import - org.opentrafficsim.core.dsol.OTSAnimatorInterface. 13

org/opentrafficsim/core/network/factory/TestXMLParser.java

Severity Message Line
 Warning Unused import - nl.tudelft.simulation.dsol.ModelInterface. 7

org/opentrafficsim/core/network/factory/XmlNetworkLaneParser.java

Severity Message Line
 Warning File length is 2,003 lines (max allowed is 2,000). 1
 Warning Expected @throws tag for 'NetworkException'. 1994
 Warning Expected @throws tag for 'ParserConfigurationException'. 1994
 Warning Expected @throws tag for 'SAXException'. 1994
 Warning Expected @throws tag for 'IOException'. 1995

org/opentrafficsim/core/network/lane/CrossSectionElement.java

Severity Message Line
 Warning 'static' modifier out of order with the JLS suggestions. 100

org/opentrafficsim/core/unit/AngleSlopeUnit.java

Severity Message Line
 Warning Comment matches to-do format 'TODO:'. 31

org/opentrafficsim/core/value/vdouble/DoubleMathFunctionsImpl.java

Severity Message Line
 Warning Name 'cbrt' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 30
 Warning Name 'cosh' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 42
 Warning Name 'expm1' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 54
 Warning Name 'log10' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 66
 Warning Name 'log1p' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 78
 Warning Name 'round' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 90
 Warning Name 'signum' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 102
 Warning Name 'sinh' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 114
 Warning Name 'tanh' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 126
 Warning Name 'toDegrees' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 138
 Warning Name 'toRadians' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 150

org/opentrafficsim/core/value/vdouble/matrix/DoubleMatrix.java

Severity Message Line
 Warning Name 'A' must match pattern '^[a-z][a-zA-Z0-9]*$'. 852
 Warning Name 'A2D' must match pattern '^[a-z][a-zA-Z0-9]*$'. 860

org/opentrafficsim/core/value/vfloat/FloatMathFunctionsImpl.java

Severity Message Line
 Warning Name 'cbrt' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 30
 Warning Name 'cosh' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 42
 Warning Name 'expm1' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 54
 Warning Name 'log10' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 66
 Warning Name 'log1p' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 78
 Warning Name 'round' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 90
 Warning Name 'signum' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 102
 Warning Name 'sinh' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 114
 Warning Name 'tanh' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 126
 Warning Name 'toDegrees' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 138
 Warning Name 'toRadians' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 150

org/opentrafficsim/core/value/vfloat/matrix/FloatMatrix.java

Severity Message Line
 Warning Name 'A' must match pattern '^[a-z][a-zA-Z0-9]*$'. 852
 Warning Name 'A2D' must match pattern '^[a-z][a-zA-Z0-9]*$'. 860

org/opentrafficsim/graphs/ContourPlot.java

Severity Message Line
 Warning Variable 'paintScale' must be private and have accessor methods. 66
 Warning Variable 'xAxis' must be private and have accessor methods. 69
 Warning Variable 'yAxis' must be private and have accessor methods. 72
 Warning Parameter index should be final. 111
 Info More than 7 parameters (found 9). 137
 Warning Variable 'cachedYAxisBins' must be private and have accessor methods. 392
 Warning Variable 'cachedXAxisBins' must be private and have accessor methods. 439
 Warning Variable 'cachedItemCount' must be private and have accessor methods. 456

org/opentrafficsim/importexport/osm/PredefinedGTUTypes.java

Severity Message Line
 Warning File does not end with a newline.
 Warning Utility classes should not have a public or default constructor. 17
 Warning Missing a Javadoc comment. 19
 Warning Name 'bike' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 19
 Warning Missing a Javadoc comment. 20
 Warning Name 'car' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 20
 Warning Missing a Javadoc comment. 21
 Warning Name 'pedestrian' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 21

org/opentrafficsim/importexport/osm/input/NewSink.java

Severity Message Line
 Info Missing package-info.java file.

org/opentrafficsim/importexport/osm/output/Convert.java

Severity Message Line
 Info Missing package-info.java file.
 Warning Unused import - org.opentrafficsim.importexport.osm.Link. 39
 Warning Expected @throws tag for 'FactoryException'. 69
 Warning Expected @throws tag for 'TransformException'. 69
 Info Method length is 202 lines (max allowed is 150). 227
 Warning Expected @param tag for 'osmlink'. 227
 Warning Expected @param tag for 'structure'. 438
 Warning Expected @param tag for 'osmlink'. 439
 Warning Expected @param tag for 'forwards'. 439
 Warning Expected @param tag for 'backwards'. 439
 Warning Expected @param tag for 'simulator'. 530
 Warning Expected @throws tag for 'NetworkException'. 530
 Warning Expected @throws tag for 'RemoteException'. 530
 Warning Expected @throws tag for 'NamingException'. 530
 Warning Expected @param tag for 'l'. 590
 Warning Expected @param tag for 'simulator'. 590
 Warning Expected @param tag for 'color'. 590
 Warning Expected @throws tag for 'RemoteException'. 591
 Warning Expected @throws tag for 'NamingException'. 591
 Warning Expected @param tag for 'net'. 693
 Warning Expected @param tag for 'lt'. 745
 Warning Expected @param tag for 'c'. 745
 Warning Expected @param tag for 'd'. 745
 Warning Expected @param tag for 'lt'. 758
 Warning Expected @param tag for 'c'. 758
 Warning Expected @param tag for 'd'. 758
 Warning Expected @param tag for 'w'. 758

org/opentrafficsim/simulationengine/ControlPanel.java

Severity Message Line
 Warning 'static' modifier out of order with the JLS suggestions. 369

org/opentrafficsim/simulationengine/ProbabilityDistributionProperty.java

Severity Message Line
 Warning Expected @throws tag for 'PropertyException'. 159