Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
26 0 82 0

Rules

Category Rule Violations Severity
coding EmptyStatement 1  Warning
MissingSwitchDefault 1  Warning
OverloadMethodsDeclarationOrder 5  Warning
imports UnusedImports 1  Warning
indentation Indentation
  • throwsIndent: "4"
  • arrayInitIndent: "4"
  • caseIndent: "4"
  • basicOffset: "4"
  • braceAdjustment: "0"
  • lineWrappingIndentation: "4"
20  Warning
javadoc JavadocStyle
  • checkEmptyJavadoc: "true"
3  Warning
modifier RedundantModifier 1  Warning
naming ConstantName 1  Warning
LocalVariableName
  • format: "^[a-z][a-z0-9][a-zA-Z0-9]*$"
  • allowOneCharVarInForLoop: "true"
  • tokens: "VARIABLE_DEF"
8  Warning
MemberName
  • format: "^[a-z][a-z0-9][a-zA-Z0-9]*$"
1  Warning
MethodName
  • format: "^[a-z][a-zA-Z0-9_]*$"
2  Warning
MethodName
  • format: "^[a-z][a-zA-Z0-9_]*$"
2  Warning
ParameterName
  • format: "^[a-z][a-z0-9][a-zA-Z0-9]*$"
1  Warning
sizes LineLength
  • max: "120"
  • ignorePattern: "^package.*|^import.*|a href|href|http://|https://|ftp://"
16  Warning
whitespace EmptyLineSeparator
  • allowNoEmptyLineBetweenFields: "true"
  • tokens: "IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"
4  Warning
GenericWhitespace 1  Warning
MethodParamPad 5  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"
6  Warning
WhitespaceAround
  • allowEmptyConstructors: "true"
  • allowEmptyMethods: "true"
  • allowEmptyLoops: "true"
  • allowEmptyTypes: "true"
3  Warning

Details

org/opendaylight/yangtools/yang/data/codec/xml/AbstractXmlCodec.java

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

org/opendaylight/yangtools/yang/data/codec/xml/Bug5396Test.java

Severity Category Rule Message Line
 Warning naming MethodName Method name 'Init' must match pattern '^[a-z][a-zA-Z0-9_]*$'. 45
 Warning sizes LineLength Line is longer than 120 characters (found 122). 46

org/opendaylight/yangtools/yang/data/codec/xml/NormalizedNodeXmlTranslationTest.java

Severity Category Rule Message Line
 Warning naming ConstantName Name 'revision' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 105
 Warning whitespace EmptyLineSeparator 'STATIC_INIT' should be separated from previous statement. 106
 Warning sizes LineLength Line is longer than 120 characters (found 129). 156
 Warning sizes LineLength Line is longer than 120 characters (found 131). 160
 Warning sizes LineLength Line is longer than 120 characters (found 126). 168
 Warning sizes LineLength Line is longer than 120 characters (found 135). 176
 Warning whitespace MethodParamPad '(' should be on the previous line. 311
 Warning whitespace EmptyLineSeparator 'STATIC_INIT' should be separated from previous statement. 339

org/opendaylight/yangtools/yang/data/codec/xml/NormalizedNodesToXmlTest.java

Severity Category Rule Message Line
 Warning whitespace MethodParamPad '(' should be on the previous line. 143
 Warning whitespace MethodParamPad '(' should be on the previous line. 146

org/opendaylight/yangtools/yang/data/codec/xml/NumberXmlCodec.java

Severity Category Rule Message Line
 Warning whitespace GenericWhitespace GenericWhitespace '>' should followed by whitespace. 15
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 15

org/opendaylight/yangtools/yang/data/codec/xml/RandomPrefixTest.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 137). 56
 Warning naming LocalVariableName Local variable name 'qName' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 82

org/opendaylight/yangtools/yang/data/codec/xml/SchemaAwareXMLStreamNormalizedNodeStreamWriter.java

Severity Category Rule Message Line
 Warning naming LocalVariableName Local variable name 'qNameStringEntry' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 52
 Warning sizes LineLength Line is longer than 120 characters (found 124). 59
 Warning whitespace EmptyLineSeparator 'METHOD_DEF' should be separated from previous statement. 123

org/opendaylight/yangtools/yang/data/codec/xml/SchemalessXMLStreamNormalizedNodeStreamWriter.java

Severity Category Rule Message Line
 Warning coding OverloadMethodsDeclarationOrder Overload methods should not be split. Previous overloaded method located at line '49'. 59
 Warning coding OverloadMethodsDeclarationOrder Overload methods should not be split. Previous overloaded method located at line '54'. 64
 Warning naming LocalVariableName Local variable name 'qNameStringEntry' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 109
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 147
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 148
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 149
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 150
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 151
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 152
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 153

org/opendaylight/yangtools/yang/data/codec/xml/XMLStreamNormalizedNodeStreamWriter.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 124). 49
 Warning whitespace EmptyLineSeparator 'STATIC_INIT' should be separated from previous statement. 52
 Warning naming LocalVariableName Local variable name 'f' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 53
 Warning javadoc JavadocStyle First sentence should end with a period. 83
 Warning sizes LineLength Line is longer than 120 characters (found 121). 165
 Warning coding OverloadMethodsDeclarationOrder Overload methods should not be split. Previous overloaded method located at line '187'. 206
 Warning coding OverloadMethodsDeclarationOrder Overload methods should not be split. Previous overloaded method located at line '194'. 216
 Warning coding OverloadMethodsDeclarationOrder Overload methods should not be split. Previous overloaded method located at line '118'. 242
 Warning modifier RedundantModifier Redundant 'public' modifier. 275

org/opendaylight/yangtools/yang/data/codec/xml/XmlCodecFactory.java

Severity Category Rule Message Line
 Warning whitespace OperatorWrap '+' should be on a new line. 59
 Warning indentation Indentation 'method def modifier' have incorrect indentation level 16, expected level should be one of the following: 20, 24. 67
 Warning indentation Indentation 'method def' child have incorrect indentation level 20, expected level should be one of the following: 24, 28. 70
 Warning indentation Indentation 'method def' child have incorrect indentation level 20, expected level should be one of the following: 24, 28. 71
 Warning indentation Indentation 'if' have incorrect indentation level 20, expected level should be one of the following: 24, 28. 72
 Warning indentation Indentation 'if' child have incorrect indentation level 24, expected level should be one of the following: 28, 32. 73
 Warning indentation Indentation 'if rcurly' have incorrect indentation level 20, expected level should be one of the following: 24, 28. 74
 Warning indentation Indentation 'if' child have incorrect indentation level 24, expected level should be one of the following: 28, 32. 75
 Warning indentation Indentation 'if rcurly' have incorrect indentation level 20, expected level should be one of the following: 24, 28. 76
 Warning indentation Indentation 'else' child have incorrect indentation level 24, expected level should be one of the following: 28, 32. 77
 Warning sizes LineLength Line is longer than 120 characters (found 121). 77
 Warning indentation Indentation 'else rcurly' have incorrect indentation level 20, expected level should be one of the following: 24, 28. 78
 Warning indentation Indentation 'method def' child have incorrect indentation level 20, expected level should be one of the following: 24, 28. 79
 Warning indentation Indentation 'method def rcurly' have incorrect indentation level 16, expected level should be one of the following: 20, 24. 80
 Warning indentation Indentation 'object def rcurly' have incorrect indentation level 12, expected level should be one of the following: 16, 20. 81

org/opendaylight/yangtools/yang/data/codec/xml/XmlParserStream.java

Severity Category Rule Message Line
 Warning imports UnusedImports Unused import - org.w3c.dom.Element. 50
 Warning naming LocalVariableName Local variable name 'f' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 65
 Warning coding MissingSwitchDefault switch without "default" clause. 178
 Warning sizes LineLength Line is longer than 120 characters (found 121). 190
 Warning sizes LineLength Line is longer than 120 characters (found 123). 235

org/opendaylight/yangtools/yang/data/codec/xml/XmlStreamUtils.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 121). 80
 Warning whitespace OperatorWrap '?' should be on a new line. 83
 Warning whitespace WhitespaceAround WhitespaceAround: ':' is not preceded with whitespace. 84
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 169

org/opendaylight/yangtools/yang/data/codec/xml/XmlStreamUtilsTest.java

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

org/opendaylight/yangtools/yang/data/codec/xml/XmlToNormalizedNodesTest.java

Severity Category Rule Message Line
 Warning whitespace MethodParamPad '(' should be on the previous line. 85
 Warning whitespace OperatorWrap '+' should be on a new line. 259
 Warning whitespace OperatorWrap '+' should be on a new line. 285
 Warning whitespace OperatorWrap '+' should be on a new line. 311
 Warning whitespace OperatorWrap '+' should be on a new line. 337

org/opendaylight/yangtools/yang/data/codec/xml/YangModeledAnyXMLDeserializationTest.java

Severity Category Rule Message Line
 Warning naming MethodName Method name 'Init' must match pattern '^[a-z][a-zA-Z0-9_]*$'. 64
 Warning coding EmptyStatement Empty statement. 89
 Warning sizes LineLength Line is longer than 120 characters (found 125). 100
 Warning naming LocalVariableName Local variable name 'LeafNode1' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 121
 Warning sizes LineLength Line is longer than 120 characters (found 125). 135
 Warning naming LocalVariableName Local variable name 'LeafNode2' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 165
 Warning naming LocalVariableName Local variable name 'LeafNode3' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 173
 Warning naming MemberName Member name 'qName' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 180
 Warning naming ParameterName Parameter name 'qName' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 183

org/opendaylight/yangtools/yang/data/codec/xml/YangModeledAnyXMLSerializationTest.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 137). 93
 Warning whitespace MethodParamPad '(' should be on the previous line. 135