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 10 0

Rules

Category Rule Violations Severity
coding VariableDeclarationUsageDistance 1  Warning
imports CustomImportOrder
  • thirdPartyPackageRegExp: ".*"
  • sortImportsInGroupAlphabetically: "true"
  • customImportOrderRules: "STATIC###THIRD_PARTY_PACKAGE"
5  Warning
indentation Indentation
  • throwsIndent: "4"
  • arrayInitIndent: "4"
  • caseIndent: "4"
  • basicOffset: "4"
  • braceAdjustment: "0"
  • lineWrappingIndentation: "4"
1  Warning
sizes LineLength
  • max: "120"
  • ignorePattern: "^package.*|^import.*|a href|href|http://|https://|ftp://"
2  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

Details

org/opendaylight/ovsdb/utils/config/ConfigPropertiesTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'org.junit.Test' should be separated from previous import group. 12
 Warning imports CustomImportOrder Import statement for 'org.mockito.Mockito.eq' is in the wrong order. Should be in the 'STATIC' group, expecting not assigned imports on this line. 15
 Warning imports CustomImportOrder Import statement for 'org.mockito.Mockito.mock' is in the wrong order. Should be in the 'STATIC' group, expecting not assigned imports on this line. 16
 Warning imports CustomImportOrder Import statement for 'org.mockito.Mockito.when' is in the wrong order. Should be in the 'STATIC' group, expecting not assigned imports on this line. 17
 Warning imports CustomImportOrder Wrong lexicographical order for 'org.osgi.framework.FrameworkUtil' import. Should be before 'org.powermock.api.mockito.PowerMockito'. 22
 Warning indentation Indentation 'class def modifier' have incorrect indentation level 1, expected level should be 0. 28
 Warning coding VariableDeclarationUsageDistance Distance between variable 'bundleContext' 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). 41
 Warning sizes LineLength Line is longer than 120 characters (found 129). 86
 Warning sizes LineLength Line is longer than 120 characters (found 121). 92
 Warning whitespace EmptyLineSeparator 'CLASS_DEF' should be separated from previous statement. 99