Checkstyle Results

The following document contains the results of Checkstyle 6.16 with odl_checks.xml ruleset. rss feed

Summary

Files  Info  Warnings  Errors
13 0 57 0

Rules

Category Rule Violations Severity
blocks EmptyBlock
  • tokens: "LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"
  • option: "TEXT"
1  Warning
coding IllegalCatch 1  Warning
MultipleVariableDeclarations 1  Warning
OverloadMethodsDeclarationOrder 2  Warning
VariableDeclarationUsageDistance 1  Warning
imports CustomImportOrder
  • thirdPartyPackageRegExp: ".*"
  • sortImportsInGroupAlphabetically: "true"
  • customImportOrderRules: "STATIC###THIRD_PARTY_PACKAGE"
2  Warning
indentation Indentation
  • throwsIndent: "4"
  • arrayInitIndent: "4"
  • caseIndent: "4"
  • basicOffset: "4"
  • braceAdjustment: "0"
  • lineWrappingIndentation: "4"
1  Warning
javadoc JavadocParagraph
  • allowNewlineParagraph: "false"
15  Warning
JavadocStyle
  • checkEmptyJavadoc: "true"
7  Warning
JavadocTagContinuationIndentation 2  Warning
NonEmptyAtclauseDescription 2  Warning
naming LocalVariableName
  • format: "^[a-z][a-z0-9][a-zA-Z0-9]*$"
  • allowOneCharVarInForLoop: "true"
  • tokens: "VARIABLE_DEF"
7  Warning
sizes LineLength
  • max: "120"
  • ignorePattern: "^package.*|^import.*|a href|href|http://|https://|ftp://"
3  Warning
whitespace EmptyLineSeparator
  • allowNoEmptyLineBetweenFields: "true"
  • tokens: "IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"
1  Warning
FileTabCharacter
  • eachLine: "true"
1  Error
MethodParamPad 2  Warning
OperatorWrap
  • tokens: "BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR "
  • option: "NL"
1  Warning

Details

org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 124). 23

org/opendaylight/yangtools/yang/common/QName.java

Severity Category Rule Message Line
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 29
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 43
 Warning indentation Indentation 'method def' child have incorrect indentation level 16, expected level should be 8. 89
 Warning sizes LineLength Line is longer than 120 characters (found 132). 89
 Warning whitespace FileTabCharacter Line contains a tab character. 89
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 140
 Warning javadoc JavadocStyle First sentence should end with a period. 140
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 151
 Warning javadoc JavadocStyle First sentence should end with a period. 151
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 188
 Warning coding OverloadMethodsDeclarationOrder Overload methods should not be split. Previous overloaded method located at line '100'. 210
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 243
 Warning javadoc NonEmptyAtclauseDescription At-clause should have a non-empty description. 253
 Warning javadoc NonEmptyAtclauseDescription At-clause should have a non-empty description. 282
 Warning coding OverloadMethodsDeclarationOrder Overload methods should not be split. Previous overloaded method located at line '261'. 288
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 310
 Warning coding IllegalCatch Catching 'RuntimeException' is not allowed. 334
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 343
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 360
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 362

org/opendaylight/yangtools/yang/common/QNameModule.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 150). 150

org/opendaylight/yangtools/yang/common/QNameTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'java.net.URI' should be separated from previous import group. 14
 Warning whitespace EmptyLineSeparator ',' should be separated from previous statement. 19
 Warning coding MultipleVariableDeclarations Each variable declaration must be in its own statement. 19
 Warning naming LocalVariableName Local variable name 'qName' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 29
 Warning naming LocalVariableName Local variable name 'qName' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 37
 Warning naming LocalVariableName Local variable name 'qName' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 45
 Warning naming LocalVariableName Local variable name 'A' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 64
 Warning coding VariableDeclarationUsageDistance Distance between variable 'B' declaration and its first usage is 4, but allowed 3. Consider to make that variable as final if you still need to store its value in advance (before method calls that might do side effect on original value). 65
 Warning naming LocalVariableName Local variable name 'B' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 65
 Warning naming LocalVariableName Local variable name 'a' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 67
 Warning naming LocalVariableName Local variable name 'b' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 68
 Warning blocks EmptyBlock Empty catch block. 137

org/opendaylight/yangtools/yang/common/RpcError.java

Severity Category Rule Message Line
 Warning javadoc JavadocParagraph <p> tag should be preceded with an empty line. 52
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 96
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 105

org/opendaylight/yangtools/yang/common/RpcResultBuilder.java

Severity Category Rule Message Line
 Warning javadoc JavadocTagContinuationIndentation Line continuation have incorrect indentation level, expected level should be 4. 215
 Warning javadoc JavadocTagContinuationIndentation Line continuation have incorrect indentation level, expected level should be 4. 249
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 418
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 421
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 423
 Warning javadoc JavadocParagraph Empty line should be followed by <p> tag on the next line. 425

org/opendaylight/yangtools/yang/common/RpcResultBuilderTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'java.io.ByteArrayInputStream' should be separated from previous import group. 14
 Warning whitespace MethodParamPad '(' should be on the previous line. 127
 Warning whitespace MethodParamPad '(' should be on the previous line. 129
 Warning whitespace OperatorWrap '+' should be on a new line. 135

org/opendaylight/yangtools/yang/common/SimpleDateFormatUtil.java

Severity Category Rule Message Line
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 17
 Warning javadoc JavadocStyle First sentence should end with a period. 17
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 22
 Warning javadoc JavadocStyle First sentence should end with a period. 22
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 27
 Warning javadoc JavadocStyle First sentence should end with a period. 27
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 32
 Warning javadoc JavadocStyle First sentence should end with a period. 32
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 37
 Warning javadoc JavadocStyle First sentence should end with a period. 37