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

Rules

Category Rule Violations Severity
coding IllegalCatch 1  Warning
VariableDeclarationUsageDistance 1  Warning
imports CustomImportOrder
  • thirdPartyPackageRegExp: ".*"
  • sortImportsInGroupAlphabetically: "true"
  • customImportOrderRules: "STATIC###THIRD_PARTY_PACKAGE"
3  Warning
javadoc JavadocStyle
  • checkEmptyJavadoc: "true"
2  Warning
misc ArrayTypeStyle 1  Warning
naming LocalVariableName
  • format: "^[a-z][a-z0-9][a-zA-Z0-9]*$"
  • allowOneCharVarInForLoop: "true"
  • tokens: "VARIABLE_DEF"
1  Warning
whitespace MethodParamPad 1  Warning

Details

org/opendaylight/ovsdb/utils/servicehelper/ServiceHelper.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder Wrong lexicographical order for 'org.osgi.framework.BundleContext' import. Should be before 'org.slf4j.LoggerFactory'. 17
 Warning imports CustomImportOrder Wrong lexicographical order for 'org.osgi.framework.FrameworkUtil' import. Should be before 'org.slf4j.LoggerFactory'. 18
 Warning imports CustomImportOrder Wrong lexicographical order for 'org.osgi.framework.ServiceReference' import. Should be before 'org.slf4j.LoggerFactory'. 19
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 21
 Warning javadoc JavadocStyle First sentence should end with a period. 21
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 70
 Warning javadoc JavadocStyle First sentence should end with a period. 70
 Warning misc ArrayTypeStyle Array brackets at illegal position. 81
 Warning naming LocalVariableName Local variable name 'bCtx' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 85
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 97

org/opendaylight/ovsdb/utils/servicehelper/ServiceHelperTest.java

Severity Category Rule Message Line
 Warning whitespace MethodParamPad '(' is preceded with whitespace. 34
 Warning coding VariableDeclarationUsageDistance Distance between variable 'bundle' 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). 35