Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
31 0 63 0

Rules

Category Rule Violations Severity
coding IllegalCatch 2  Warning
MissingSwitchDefault 1  Warning
OverloadMethodsDeclarationOrder 5  Warning
indentation Indentation
  • throwsIndent: "4"
  • arrayInitIndent: "4"
  • caseIndent: "4"
  • basicOffset: "4"
  • braceAdjustment: "0"
  • lineWrappingIndentation: "4"
7  Warning
javadoc JavadocStyle
  • tokens: "ANNOTATION_DEF, ANNOTATION_FIELD_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF, INTERFACE_DEF, METHOD_DEF, VARIABLE_DEF"
  • 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"
7  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://"
13  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
MethodParamPad 7  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"
4  Warning
ParenPad 1  Warning
WhitespaceAround
  • allowEmptyConstructors: "true"
  • allowEmptyMethods: "true"
  • allowEmptyLoops: "true"
  • allowEmptyTypes: "true"
1  Warning

Details

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_]*$'. 43
 Warning sizes LineLength Line is longer than 120 characters (found 122). 44

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]+)*$'. 106
 Warning whitespace EmptyLineSeparator 'STATIC_INIT' should be separated from previous statement. 107
 Warning whitespace EmptyLineSeparator 'STATIC_INIT' should be separated from previous statement. 116
 Warning whitespace MethodParamPad '(' should be on the previous line. 307

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

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

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/SchemalessXMLStreamNormalizedNodeStreamWriterTest.java

Severity Category Rule Message Line
 Warning whitespace MethodParamPad '(' should be on the previous line. 108
 Warning whitespace MethodParamPad '(' should be on the previous line. 159
 Warning sizes LineLength Line is longer than 120 characters (found 125). 192
 Warning sizes LineLength Line is longer than 120 characters (found 130). 300

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

Severity Category Rule Message Line
 Warning coding IllegalCatch Catching 'RuntimeException' is not allowed. 80
 Warning coding IllegalCatch Catching 'RuntimeException' is not allowed. 104

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 whitespace ParenPad '(' is followed by whitespace. 80
 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/XMLStreamWriterUtils.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 121). 71
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 130

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

Severity Category Rule Message Line
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 17

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

Severity Category Rule Message Line
 Warning javadoc JavadocStyle Javadoc has empty description section. 90
 Warning coding MissingSwitchDefault switch without "default" clause. 192
 Warning sizes LineLength Line is longer than 120 characters (found 121). 204
 Warning sizes LineLength Line is longer than 120 characters (found 123). 249

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. 130
 Warning javadoc JavadocStyle First sentence should end with a period. 130

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

Severity Category Rule Message Line
 Warning whitespace MethodParamPad '(' should be on the previous line. 83
 Warning whitespace OperatorWrap '+' should be on a new line. 242
 Warning whitespace OperatorWrap '+' should be on a new line. 265
 Warning whitespace OperatorWrap '+' should be on a new line. 288
 Warning whitespace OperatorWrap '+' should be on a new line. 311

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_]*$'. 63
 Warning sizes LineLength Line is longer than 120 characters (found 125). 94
 Warning naming LocalVariableName Local variable name 'LeafNode1' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 115
 Warning sizes LineLength Line is longer than 120 characters (found 125). 129
 Warning naming LocalVariableName Local variable name 'LeafNode2' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 159
 Warning naming LocalVariableName Local variable name 'LeafNode3' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 167
 Warning naming MemberName Member name 'qName' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 174
 Warning naming ParameterName Parameter name 'qName' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 177

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). 77
 Warning whitespace MethodParamPad '(' should be on the previous line. 119