Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
2 0 106 0

Rules

Category Rule Violations Severity
blocks LeftCurly
  • maxLineLength: "100"
2  Warning
RightCurly
  • tokens: "CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"
  • option: "alone"
2  Warning
RightCurly 2  Warning
coding IllegalCatch 4  Warning
OneStatementPerLine 1  Warning
imports CustomImportOrder
  • thirdPartyPackageRegExp: ".*"
  • sortImportsInGroupAlphabetically: "true"
  • customImportOrderRules: "STATIC###THIRD_PARTY_PACKAGE"
8  Warning
indentation Indentation
  • throwsIndent: "4"
  • arrayInitIndent: "4"
  • caseIndent: "4"
  • basicOffset: "4"
  • braceAdjustment: "0"
  • lineWrappingIndentation: "4"
4  Warning
naming MemberName
  • format: "^[a-z][a-z0-9][a-zA-Z0-9]*$"
2  Warning
regexp RegexpSinglelineJava
  • ignoreComments: "false"
  • format: "System\.(out)|(err)\.print(ln)?\("
  • message: "Line contains console output."
27  Warning
sizes LineLength
  • max: "120"
  • ignorePattern: "^package.*|^import.*|a href|href|http://|https://|ftp://"
5  Warning
whitespace MethodParamPad 1  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"
9  Warning
WhitespaceAround
  • allowEmptyConstructors: "true"
  • allowEmptyMethods: "true"
  • allowEmptyLoops: "true"
  • allowEmptyTypes: "true"
41  Warning

Details

org/opendaylight/netvirt/vpnmanager/shell/ShowVpn.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Wrong lexicographical order for 'java.util.ArrayList' import. Should be before 'org.slf4j.LoggerFactory'. 26
 Warning imports CustomImportOrder Wrong lexicographical order for 'java.util.HashMap' import. Should be before 'org.slf4j.LoggerFactory'. 27
 Warning imports CustomImportOrder Wrong lexicographical order for 'java.util.List' import. Should be before 'org.slf4j.LoggerFactory'. 28
 Warning imports CustomImportOrder Wrong lexicographical order for 'java.util.Map' import. Should be before 'org.slf4j.LoggerFactory'. 29
 Warning whitespace OperatorWrap '+' should be on a new line. 31
 Warning whitespace OperatorWrap '+' should be on a new line. 35
 Warning naming MemberName Member name 'LOG' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 39
 Warning sizes LineLength Line is longer than 120 characters (found 147). 46
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 55
 Warning whitespace WhitespaceAround WhitespaceAround: 'try' is not followed by whitespace. 56
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 56
 Warning whitespace WhitespaceAround WhitespaceAround: 'if' is not followed by whitespace. 64
 Warning blocks RightCurly '}' at column 21 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 66
 Warning indentation Indentation 'else' child have incorrect indentation level 20, expected level should be 24. 67
 Warning blocks LeftCurly '{' at column 26 should have line break after. 67
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not followed by whitespace. 67
 Warning indentation Indentation 'instanceNameToConfigInterfaceMap' have incorrect indentation level 28, expected level should be 30. 68
 Warning whitespace WhitespaceAround WhitespaceAround: '+' is not preceded with whitespace. 68
 Warning whitespace WhitespaceAround WhitespaceAround: '+' is not followed by whitespace. 68
 Warning whitespace WhitespaceAround WhitespaceAround: 'if' is not followed by whitespace. 73
 Warning blocks RightCurly '}' at column 21 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally). 75
 Warning indentation Indentation 'else' child have incorrect indentation level 20, expected level should be 24. 76
 Warning blocks LeftCurly '{' at column 26 should have line break after. 76
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not followed by whitespace. 76
 Warning indentation Indentation 'instanceNameToOperInterfaceMap' have incorrect indentation level 28, expected level should be 30. 77
 Warning whitespace WhitespaceAround WhitespaceAround: '+' is not preceded with whitespace. 77
 Warning whitespace WhitespaceAround WhitespaceAround: '+' is not followed by whitespace. 77
 Warning regexp RegexpSinglelineJava Line contains console output. 80
 Warning regexp RegexpSinglelineJava Line contains console output. 81
 Warning whitespace OperatorWrap '+' should be on a new line. 81
 Warning regexp RegexpSinglelineJava Line contains console output. 83
 Warning coding OneStatementPerLine Only one statement per line allowed. 85
 Warning whitespace WhitespaceAround WhitespaceAround: 'if' is not followed by whitespace. 87
 Warning regexp RegexpSinglelineJava Line contains console output. 96
 Warning regexp RegexpSinglelineJava Line contains console output. 99
 Warning regexp RegexpSinglelineJava Line contains console output. 100
 Warning regexp RegexpSinglelineJava Line contains console output. 102
 Warning whitespace WhitespaceAround WhitespaceAround: 'else' is not preceded with whitespace. 103
 Warning whitespace WhitespaceAround WhitespaceAround: '}' is not followed by whitespace. 103
 Warning regexp RegexpSinglelineJava Line contains console output. 105
 Warning regexp RegexpSinglelineJava Line contains console output. 108
 Warning regexp RegexpSinglelineJava Line contains console output. 111
 Warning regexp RegexpSinglelineJava Line contains console output. 114
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 118
 Warning whitespace WhitespaceAround WhitespaceAround: 'catch' is not preceded with whitespace. 118
 Warning whitespace WhitespaceAround WhitespaceAround: '}' is not followed by whitespace. 118
 Warning regexp RegexpSinglelineJava Line contains console output. 119
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 133
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 140
 Warning regexp RegexpSinglelineJava Line contains console output. 148
 Warning whitespace WhitespaceAround WhitespaceAround: 'else' is not preceded with whitespace. 149
 Warning whitespace WhitespaceAround WhitespaceAround: '}' is not followed by whitespace. 149
 Warning whitespace WhitespaceAround WhitespaceAround: 'else' is not followed by whitespace. 149
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 149
 Warning sizes LineLength Line is longer than 120 characters (found 128). 153
 Warning regexp RegexpSinglelineJava Line contains console output. 157
 Warning whitespace WhitespaceAround WhitespaceAround: 'else' is not preceded with whitespace. 158
 Warning whitespace WhitespaceAround WhitespaceAround: '}' is not followed by whitespace. 158
 Warning whitespace WhitespaceAround WhitespaceAround: 'else' is not followed by whitespace. 158
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 158
 Warning sizes LineLength Line is longer than 120 characters (found 124). 162
 Warning regexp RegexpSinglelineJava Line contains console output. 166
 Warning whitespace WhitespaceAround WhitespaceAround: 'else' is not preceded with whitespace. 167
 Warning whitespace WhitespaceAround WhitespaceAround: '}' is not followed by whitespace. 167
 Warning whitespace WhitespaceAround WhitespaceAround: 'else' is not followed by whitespace. 167
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 167

org/opendaylight/netvirt/vpnmanager/shell/ShowVpnInstanceOpData.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Wrong lexicographical order for 'java.util.ArrayList' import. Should be before 'org.slf4j.LoggerFactory'. 26
 Warning imports CustomImportOrder Wrong lexicographical order for 'java.util.HashMap' import. Should be before 'org.slf4j.LoggerFactory'. 27
 Warning imports CustomImportOrder Wrong lexicographical order for 'java.util.List' import. Should be before 'org.slf4j.LoggerFactory'. 28
 Warning imports CustomImportOrder Wrong lexicographical order for 'java.util.Map' import. Should be before 'org.slf4j.LoggerFactory'. 29
 Warning whitespace OperatorWrap '+' should be on a new line. 31
 Warning whitespace OperatorWrap '+' should be on a new line. 35
 Warning whitespace OperatorWrap '+' should be on a new line. 36
 Warning naming MemberName Member name 'LOG' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 39
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 49
 Warning whitespace WhitespaceAround WhitespaceAround: 'try' is not followed by whitespace. 50
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 50
 Warning regexp RegexpSinglelineJava Line contains console output. 53
 Warning regexp RegexpSinglelineJava Line contains console output. 57
 Warning regexp RegexpSinglelineJava Line contains console output. 60
 Warning regexp RegexpSinglelineJava Line contains console output. 64
 Warning regexp RegexpSinglelineJava Line contains console output. 67
 Warning regexp RegexpSinglelineJava Line contains console output. 70
 Warning regexp RegexpSinglelineJava Line contains console output. 71
 Warning regexp RegexpSinglelineJava Line contains console output. 73
 Warning whitespace OperatorWrap '+' should be on a new line. 74
 Warning sizes LineLength Line is longer than 120 characters (found 130). 75
 Warning whitespace OperatorWrap '+' should be on a new line. 75
 Warning regexp RegexpSinglelineJava Line contains console output. 77
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 80
 Warning whitespace WhitespaceAround WhitespaceAround: 'catch' is not preceded with whitespace. 80
 Warning whitespace WhitespaceAround WhitespaceAround: '}' is not followed by whitespace. 80
 Warning regexp RegexpSinglelineJava Line contains console output. 81
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 88
 Warning whitespace MethodParamPad '(' should be on the previous line. 92
 Warning whitespace OperatorWrap '||' should be on a new line. 95
 Warning regexp RegexpSinglelineJava Line contains console output. 98
 Warning whitespace WhitespaceAround WhitespaceAround: 'else' is not preceded with whitespace. 99
 Warning whitespace WhitespaceAround WhitespaceAround: '}' is not followed by whitespace. 99
 Warning regexp RegexpSinglelineJava Line contains console output. 108
 Warning whitespace WhitespaceAround WhitespaceAround: 'else' is not preceded with whitespace. 109
 Warning whitespace WhitespaceAround WhitespaceAround: '}' is not followed by whitespace. 109
 Warning whitespace WhitespaceAround WhitespaceAround: 'for' is not followed by whitespace. 113
 Warning whitespace WhitespaceAround WhitespaceAround: '{' is not preceded with whitespace. 113
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 126
 Warning sizes LineLength Line is longer than 120 characters (found 133). 135