Checkstyle Results

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

Summary

Files  Info  Warnings  Errors
36 0 138 0

Files

File  I  W  E
org/opendaylight/protocol/bmp/api/BmpSessionListener.java 0 1 0
org/opendaylight/protocol/bmp/spi/parser/AbstractBmpMessageParser.java 0 1 0
org/opendaylight/protocol/bmp/spi/parser/AbstractBmpMessageWithTlvParser.java 0 2 0
org/opendaylight/protocol/bmp/spi/parser/AbstractBmpMessageWithTlvParserTest.java 0 9 0
org/opendaylight/protocol/bmp/spi/parser/AbstractBmpPerPeerMessageParser.java 0 30 0
org/opendaylight/protocol/bmp/spi/parser/AbstractBmpPerPeerMessageParserTest.java 0 8 0
org/opendaylight/protocol/bmp/spi/parser/BmpDeserializationException.java 0 3 0
org/opendaylight/protocol/bmp/spi/parser/PeerDistinguisherUtil.java 0 33 0
org/opendaylight/protocol/bmp/spi/parser/PeerDistinguisherUtilTest.java 0 8 0
org/opendaylight/protocol/bmp/spi/parser/TlvUtil.java 0 1 0
org/opendaylight/protocol/bmp/spi/parser/TlvUtilTest.java 0 7 0
org/opendaylight/protocol/bmp/spi/registry/AbstractBmpExtensionProviderActivator.java 0 1 0
org/opendaylight/protocol/bmp/spi/registry/AbstractBmpExtensionProviderActivatorTest.java 0 4 0
org/opendaylight/protocol/bmp/spi/registry/BmpMessageRegistrator.java 0 1 0
org/opendaylight/protocol/bmp/spi/registry/SimpleBmpExtensionProviderContext.java 0 6 0
org/opendaylight/protocol/bmp/spi/registry/SimpleBmpExtensionProviderContextActivator.java 0 2 0
org/opendaylight/protocol/bmp/spi/registry/SimpleBmpExtensionProviderContextTest.java 0 1 0
org/opendaylight/protocol/bmp/spi/registry/SimpleBmpMessageRegistry.java 0 4 0
org/opendaylight/protocol/bmp/spi/registry/SimpleBmpMessageRegistryTest.java 0 11 0
org/opendaylight/protocol/bmp/spi/registry/SimpleBmpTlvRegistry.java 0 1 0
org/opendaylight/protocol/bmp/spi/registry/SimpleBmpTlvRegistryTest.java 0 4 0

Rules

Category Rule Violations Severity
coding IllegalCatch 1  Warning
IllegalThrows 3  Warning
imports CustomImportOrder
  • thirdPartyPackageRegExp: ".*"
  • sortImportsInGroupAlphabetically: "true"
  • customImportOrderRules: "STATIC###THIRD_PARTY_PACKAGE"
7  Warning
indentation Indentation
  • throwsIndent: "4"
  • arrayInitIndent: "4"
  • caseIndent: "4"
  • basicOffset: "4"
  • braceAdjustment: "0"
  • lineWrappingIndentation: "4"
53  Warning
javadoc JavadocStyle
  • checkEmptyJavadoc: "true"
2  Warning
modifier RedundantModifier 2  Warning
naming AbbreviationAsWordInName
  • ignoreFinal: "false"
  • allowedAbbreviationLength: "4"
1  Warning
ConstantName 3  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://"
37  Warning
whitespace EmptyLineSeparator
  • allowNoEmptyLineBetweenFields: "true"
  • tokens: "IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"
5  Warning
WhitespaceAround
  • allowEmptyConstructors: "true"
  • allowEmptyMethods: "true"
  • allowEmptyLoops: "true"
  • allowEmptyTypes: "true"
22  Warning

Details

org/opendaylight/protocol/bmp/api/BmpSessionListener.java

Severity Category Rule Message Line
 Warning naming ParameterName Parameter name 'e' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. 18

org/opendaylight/protocol/bmp/spi/parser/AbstractBmpMessageParser.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'com.google.common.base.Preconditions' should be separated from previous import group. 13

org/opendaylight/protocol/bmp/spi/parser/AbstractBmpMessageWithTlvParser.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 141). 38
 Warning whitespace WhitespaceAround WhitespaceAround: 'if' is not followed by whitespace. 45

org/opendaylight/protocol/bmp/spi/parser/AbstractBmpMessageWithTlvParserTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'com.google.common.base.Preconditions' should be separated from previous import group. 15
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not preceded with whitespace. 74
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not followed by whitespace. 74
 Warning modifier RedundantModifier Redundant 'public' modifier. 81
 Warning whitespace EmptyLineSeparator 'METHOD_DEF' should be separated from previous statement. 84
 Warning whitespace EmptyLineSeparator 'METHOD_DEF' should be separated from previous statement. 87
 Warning whitespace EmptyLineSeparator 'METHOD_DEF' should be separated from previous statement. 91
 Warning whitespace EmptyLineSeparator 'METHOD_DEF' should be separated from previous statement. 95
 Warning whitespace WhitespaceAround WhitespaceAround: 'if' is not followed by whitespace. 97

org/opendaylight/protocol/bmp/spi/parser/AbstractBmpPerPeerMessageParser.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 121). 31
 Warning sizes LineLength Line is longer than 120 characters (found 131). 52
 Warning sizes LineLength Line is longer than 120 characters (found 142). 53
 Warning sizes LineLength Line is longer than 120 characters (found 124). 54
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 68
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 69
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 70
 Warning sizes LineLength Line is longer than 120 characters (found 121). 70
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 71
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 72
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 73
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 74
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 75
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 76
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 77
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 78
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 103
 Warning indentation Indentation 'if' have incorrect indentation level 12, expected level should be 16. 104
 Warning indentation Indentation 'if' child have incorrect indentation level 16, expected level should be 20. 105
 Warning indentation Indentation 'if rcurly' have incorrect indentation level 12, expected level should be 16. 106
 Warning indentation Indentation 'else' child have incorrect indentation level 16, expected level should be 20. 107
 Warning indentation Indentation 'else rcurly' have incorrect indentation level 12, expected level should be 16. 108
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 109
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 110
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 111
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 112
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 113
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 114
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 115
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 116

org/opendaylight/protocol/bmp/spi/parser/AbstractBmpPerPeerMessageParserTest.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 127). 51
 Warning sizes LineLength Line is longer than 120 characters (found 122). 53
 Warning sizes LineLength Line is longer than 120 characters (found 122). 81
 Warning sizes LineLength Line is longer than 120 characters (found 129). 82
 Warning sizes LineLength Line is longer than 120 characters (found 128). 85
 Warning sizes LineLength Line is longer than 120 characters (found 129). 109
 Warning sizes LineLength Line is longer than 120 characters (found 137). 113
 Warning sizes LineLength Line is longer than 120 characters (found 129). 141

org/opendaylight/protocol/bmp/spi/parser/BmpDeserializationException.java

Severity Category Rule Message Line
 Warning javadoc SummaryJavadoc First sentence of Javadoc is incomplete (period is missing) or not present. 23
 Warning javadoc JavadocStyle Javadoc has empty description section. 23
 Warning whitespace EmptyLineSeparator 'CTOR_DEF' should be separated from previous statement. 27

org/opendaylight/protocol/bmp/spi/parser/PeerDistinguisherUtil.java

Severity Category Rule Message Line
 Warning javadoc JavadocStyle First sentence should end with a period. 22
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 65
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 66
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 67
 Warning sizes LineLength Line is longer than 120 characters (found 132). 67
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 68
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 69
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 70
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 71
 Warning sizes LineLength Line is longer than 120 characters (found 130). 71
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 72
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 73
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 74
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 75
 Warning sizes LineLength Line is longer than 120 characters (found 137). 75
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 76
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 77
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 78
 Warning sizes LineLength Line is longer than 120 characters (found 151). 84
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 88
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 89
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 90
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 91
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 92
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 93
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 94
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 95
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 96
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 97
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 98
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 99
 Warning indentation Indentation 'case' child have incorrect indentation level 8, expected level should be 12. 100
 Warning indentation Indentation 'block' child have incorrect indentation level 12, expected level should be 16. 101

org/opendaylight/protocol/bmp/spi/parser/PeerDistinguisherUtilTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'io.netty.buffer.ByteBuf' should be separated from previous import group. 12
 Warning sizes LineLength Line is longer than 120 characters (found 122). 24
 Warning sizes LineLength Line is longer than 120 characters (found 129). 39
 Warning sizes LineLength Line is longer than 120 characters (found 129). 52
 Warning sizes LineLength Line is longer than 120 characters (found 129). 65
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not preceded with whitespace. 72
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not followed by whitespace. 72
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 73

org/opendaylight/protocol/bmp/spi/parser/TlvUtil.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'io.netty.buffer.ByteBuf' should be separated from previous import group. 14

org/opendaylight/protocol/bmp/spi/parser/TlvUtilTest.java

Severity Category Rule Message Line
 Warning naming AbbreviationAsWordInName Abbreviation in name 'testFormatTlvASCII' must contain no more than '4' capital letters. 78
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not preceded with whitespace. 87
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not followed by whitespace. 87
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 88
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not preceded with whitespace. 98
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not followed by whitespace. 98
 Warning coding IllegalThrows Throwing 'Throwable' is not allowed. 99

org/opendaylight/protocol/bmp/spi/registry/AbstractBmpExtensionProviderActivator.java

Severity Category Rule Message Line
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 48

org/opendaylight/protocol/bmp/spi/registry/AbstractBmpExtensionProviderActivatorTest.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 124). 17
 Warning naming ConstantName Name 'context' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 18
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not preceded with whitespace. 27
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not followed by whitespace. 27

org/opendaylight/protocol/bmp/spi/registry/BmpMessageRegistrator.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 124). 19

org/opendaylight/protocol/bmp/spi/registry/SimpleBmpExtensionProviderContext.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 144). 35
 Warning sizes LineLength Line is longer than 120 characters (found 133). 50
 Warning sizes LineLength Line is longer than 120 characters (found 129). 60
 Warning sizes LineLength Line is longer than 120 characters (found 133). 70
 Warning sizes LineLength Line is longer than 120 characters (found 134). 80
 Warning sizes LineLength Line is longer than 120 characters (found 137). 90

org/opendaylight/protocol/bmp/spi/registry/SimpleBmpExtensionProviderContextActivator.java

Severity Category Rule Message Line
 Warning whitespace WhitespaceAround WhitespaceAround: 'for' is not followed by whitespace. 35
 Warning whitespace WhitespaceAround WhitespaceAround: 'for' is not followed by whitespace. 44

org/opendaylight/protocol/bmp/spi/registry/SimpleBmpExtensionProviderContextTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'org.junit.Before' should be separated from previous import group. 11

org/opendaylight/protocol/bmp/spi/registry/SimpleBmpMessageRegistry.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 124). 30
 Warning sizes LineLength Line is longer than 120 characters (found 140). 39
 Warning sizes LineLength Line is longer than 120 characters (found 121). 68
 Warning sizes LineLength Line is longer than 120 characters (found 140). 71

org/opendaylight/protocol/bmp/spi/registry/SimpleBmpMessageRegistryTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'io.netty.buffer.ByteBuf' should be separated from previous import group. 13
 Warning sizes LineLength Line is longer than 120 characters (found 139). 49
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not preceded with whitespace. 56
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not followed by whitespace. 56
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not preceded with whitespace. 62
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not followed by whitespace. 62
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not preceded with whitespace. 68
 Warning whitespace WhitespaceAround WhitespaceAround: '=' is not followed by whitespace. 68
 Warning whitespace WhitespaceAround WhitespaceAround: '-' is not preceded with whitespace. 70
 Warning whitespace WhitespaceAround WhitespaceAround: '-' is not followed by whitespace. 70
 Warning modifier RedundantModifier Redundant 'public' modifier. 95

org/opendaylight/protocol/bmp/spi/registry/SimpleBmpTlvRegistry.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 120 characters (found 123). 58

org/opendaylight/protocol/bmp/spi/registry/SimpleBmpTlvRegistryTest.java

Severity Category Rule Message Line
 Warning imports CustomImportOrder 'io.netty.buffer.ByteBuf' should be separated from previous import group. 14
 Warning naming ConstantName Name 'descriptionTlvType' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 37
 Warning naming ConstantName Name 'otherTlvType' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 38
 Warning sizes LineLength Line is longer than 120 characters (found 125). 59