Apache Commons logo Commons Codec

PMD Results

The following document contains the results of PMD 7.14.0.

Violations By Priority

Priority 1

org/apache/commons/codec/binary/BaseNCodec.java

Rule Violation Line
FieldNamingConventions The final field name 'PAD' doesn't match '[a-z][a-zA-Z0-9]*' 399

org/apache/commons/codec/binary/StringUtils.java

Rule Violation Line
MethodNamingConventions The static method name 'getBytesIso8859_1' doesn't match '[a-z][a-zA-Z0-9]*' 146
MethodNamingConventions The static method name 'newStringIso8859_1' doesn't match '[a-z][a-zA-Z0-9]*' 332

org/apache/commons/codec/digest/DigestUtils.java

Rule Violation Line
MethodNamingConventions The static method name 'getSha3_224Digest' doesn't match '[a-z][a-zA-Z0-9]*' 248
MethodNamingConventions The static method name 'getSha3_256Digest' doesn't match '[a-z][a-zA-Z0-9]*' 260
MethodNamingConventions The static method name 'getSha3_384Digest' doesn't match '[a-z][a-zA-Z0-9]*' 272
MethodNamingConventions The static method name 'getSha3_512Digest' doesn't match '[a-z][a-zA-Z0-9]*' 284
MethodNamingConventions The static method name 'getSha512_224Digest' doesn't match '[a-z][a-zA-Z0-9]*' 306
MethodNamingConventions The static method name 'getSha512_256Digest' doesn't match '[a-z][a-zA-Z0-9]*' 317
MethodNamingConventions The static method name 'sha3_224' doesn't match '[a-z][a-zA-Z0-9]*' 667
MethodNamingConventions The static method name 'sha3_224' doesn't match '[a-z][a-zA-Z0-9]*' 679
MethodNamingConventions The static method name 'sha3_224' doesn't match '[a-z][a-zA-Z0-9]*' 690
MethodNamingConventions The static method name 'sha3_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 701
MethodNamingConventions The static method name 'sha3_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 713
MethodNamingConventions The static method name 'sha3_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 724
MethodNamingConventions The static method name 'sha3_256' doesn't match '[a-z][a-zA-Z0-9]*' 735
MethodNamingConventions The static method name 'sha3_256' doesn't match '[a-z][a-zA-Z0-9]*' 747
MethodNamingConventions The static method name 'sha3_256' doesn't match '[a-z][a-zA-Z0-9]*' 758
MethodNamingConventions The static method name 'sha3_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 769
MethodNamingConventions The static method name 'sha3_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 781
MethodNamingConventions The static method name 'sha3_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 792
MethodNamingConventions The static method name 'sha3_384' doesn't match '[a-z][a-zA-Z0-9]*' 803
MethodNamingConventions The static method name 'sha3_384' doesn't match '[a-z][a-zA-Z0-9]*' 815
MethodNamingConventions The static method name 'sha3_384' doesn't match '[a-z][a-zA-Z0-9]*' 826
MethodNamingConventions The static method name 'sha3_384Hex' doesn't match '[a-z][a-zA-Z0-9]*' 837
MethodNamingConventions The static method name 'sha3_384Hex' doesn't match '[a-z][a-zA-Z0-9]*' 849
MethodNamingConventions The static method name 'sha3_384Hex' doesn't match '[a-z][a-zA-Z0-9]*' 860
MethodNamingConventions The static method name 'sha3_512' doesn't match '[a-z][a-zA-Z0-9]*' 871
MethodNamingConventions The static method name 'sha3_512' doesn't match '[a-z][a-zA-Z0-9]*' 883
MethodNamingConventions The static method name 'sha3_512' doesn't match '[a-z][a-zA-Z0-9]*' 894
MethodNamingConventions The static method name 'sha3_512Hex' doesn't match '[a-z][a-zA-Z0-9]*' 905
MethodNamingConventions The static method name 'sha3_512Hex' doesn't match '[a-z][a-zA-Z0-9]*' 917
MethodNamingConventions The static method name 'sha3_512Hex' doesn't match '[a-z][a-zA-Z0-9]*' 928
MethodNamingConventions The static method name 'sha512_224' doesn't match '[a-z][a-zA-Z0-9]*' 1041
MethodNamingConventions The static method name 'sha512_224' doesn't match '[a-z][a-zA-Z0-9]*' 1053
MethodNamingConventions The static method name 'sha512_224' doesn't match '[a-z][a-zA-Z0-9]*' 1064
MethodNamingConventions The static method name 'sha512_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1075
MethodNamingConventions The static method name 'sha512_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1087
MethodNamingConventions The static method name 'sha512_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1098
MethodNamingConventions The static method name 'sha512_256' doesn't match '[a-z][a-zA-Z0-9]*' 1109
MethodNamingConventions The static method name 'sha512_256' doesn't match '[a-z][a-zA-Z0-9]*' 1121
MethodNamingConventions The static method name 'sha512_256' doesn't match '[a-z][a-zA-Z0-9]*' 1132
MethodNamingConventions The static method name 'sha512_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1143
MethodNamingConventions The static method name 'sha512_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1155
MethodNamingConventions The static method name 'sha512_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1166

Priority 3

org/apache/commons/codec/CharEncoding.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 128

org/apache/commons/codec/Charsets.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 167

org/apache/commons/codec/DecoderException.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 39

org/apache/commons/codec/EncoderException.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 40

org/apache/commons/codec/Resources.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 52

org/apache/commons/codec/StringEncoderComparator.java

Rule Violation Line
ShortVariable Avoid variables with short names like o1 73
ShortVariable Avoid variables with short names like o2 73
ShortVariable Avoid variables with short names like s1 80
ShortVariable Avoid variables with short names like s2 81

org/apache/commons/codec/binary/Base16.java

Rule Violation Line
LongVariable Avoid excessively long variable names like BITS_PER_ENCODED_BYTE 47
LongVariable Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK 48
LongVariable Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK 49
LongVariable Avoid excessively long variable names like UPPER_CASE_DECODE_TABLE 56
LongVariable Avoid excessively long variable names like UPPER_CASE_ENCODE_TABLE 70
LongVariable Avoid excessively long variable names like LOWER_CASE_DECODE_TABLE 77
LongVariable Avoid excessively long variable names like LOWER_CASE_ENCODE_TABLE 92
CommentDefaultAccessModifier Missing commented default access modifier on method 'decode(byte[], int, int, Context)' 146
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 152
ConfusingTernary Avoid if (x != y) ..; else ..; 155
CommentDefaultAccessModifier Missing commented default access modifier on method 'encode(byte[], int, int, Context)' 200
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 202

org/apache/commons/codec/binary/Base32.java

Rule Violation Line
LongVariable Avoid excessively long variable names like BITS_PER_ENCODED_BYTE 111
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 111
LongVariable Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK 113
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 113
LongVariable Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK 114
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 114
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 120
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 139
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 151
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 170
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 178
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 181
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 184
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 187
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 190
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 217
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 223
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 228
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 233
CommentDefaultAccessModifier Missing commented default access modifier on method 'decode(byte[], int, int, Context)' 437
ShortVariable Avoid variables with short names like b 447
CommentDefaultAccessModifier Missing commented default access modifier on method 'encode(byte[], int, int, Context)' 543
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 546
ShortVariable Avoid variables with short names like b 613
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLineSeparator()' 643

org/apache/commons/codec/binary/Base64.java

Rule Violation Line
LongVariable Avoid excessively long variable names like BITS_PER_ENCODED_BYTE 108
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 108
LongVariable Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK 109
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 109
LongVariable Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK 110
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 110
LongVariable Avoid excessively long variable names like DECODING_TABLE_LENGTH 111
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 111
LongVariable Avoid excessively long variable names like STANDARD_ENCODE_TABLE 121
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 121
LongVariable Avoid excessively long variable names like URL_SAFE_ENCODE_TABLE 133
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 133
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 154
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 170
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 177
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 179
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 297
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 419
CommentDefaultAccessModifier Missing commented default access modifier on method 'toIntegerBytes(BigInteger)' 446
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 453
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 480
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 485
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 490
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 496
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 498
CommentDefaultAccessModifier Missing commented default access modifier on method 'decode(byte[], int, int, Context)' 742
ShortVariable Avoid variables with short names like b 752
CommentDefaultAccessModifier Missing commented default access modifier on method 'encode(byte[], int, int, Context)' 824
ShortVariable Avoid variables with short names like in 824
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 826
ShortVariable Avoid variables with short names like b 874
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLineSeparator()' 900

org/apache/commons/codec/binary/BaseNCodec.java

Rule Violation Line
LongVariable Avoid excessively long variable names like defaultEncodeTable 67
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'AbstractBuilder(byte[])' 72
LongVariable Avoid excessively long variable names like defaultEncodeTable 72
CommentDefaultAccessModifier Missing commented default access modifier on method 'asThis()' 89
CommentDefaultAccessModifier Missing commented default access modifier on method 'getDecodingPolicy()' 93
CommentDefaultAccessModifier Missing commented default access modifier on method 'getEncodeTable()' 97
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLineLength()' 101
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLineSeparator()' 105
CommentDefaultAccessModifier Missing commented default access modifier on method 'getPadding()' 109
LinguisticNaming Linguistics Antipattern - The setter 'setDecodingPolicy' should not return any type except void linguistically 119
LinguisticNaming Linguistics Antipattern - The setter 'setEncodeTable' should not return any type except void linguistically 130
LinguisticNaming Linguistics Antipattern - The setter 'setLineLength' should not return any type except void linguistically 141
LinguisticNaming Linguistics Antipattern - The setter 'setLineSeparator' should not return any type except void linguistically 152
LinguisticNaming Linguistics Antipattern - The setter 'setPadding' should not return any type except void linguistically 163
CommentDefaultAccessModifier Missing commented default access modifier on nested class 'Context' 175
CommentDefaultAccessModifier Missing commented default access modifier on field 'ibitWorkArea' 181
CommentDefaultAccessModifier Missing commented default access modifier on field 'lbitWorkArea' 187
CommentDefaultAccessModifier Missing commented default access modifier on field 'buffer' 192
CommentDefaultAccessModifier Missing commented default access modifier on field 'pos' 197
CommentDefaultAccessModifier Missing commented default access modifier on field 'readPos' 202
CommentDefaultAccessModifier Missing commented default access modifier on field 'eof' 208
CommentDefaultAccessModifier Missing commented default access modifier on field 'currentLinePos' 214
CommentDefaultAccessModifier Missing commented default access modifier on field 'modulus' 220
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 240
CommentDefaultAccessModifier Missing commented default access modifier on field 'EOF' 240
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 252
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 264
LongVariable Avoid excessively long variable names like DEFAULT_BUFFER_RESIZE_FACTOR 266
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 266
LongVariable Avoid excessively long variable names like DEFAULT_BUFFER_SIZE 272
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 272
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 284
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 287
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 292
LongVariable Avoid excessively long variable names like DECODING_POLICY_DEFAULT 299
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 299
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 306
CommentDefaultAccessModifier Missing commented default access modifier on field 'CHUNK_SEPARATOR' 306
ShortVariable Avoid variables with short names like b 375
CommentDefaultAccessModifier Missing commented default access modifier on method 'toLength(byte[])' 386
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 399
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 402
LongVariable Avoid excessively long variable names like unencodedBlockSize 405
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 405
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 408
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 415
LongVariable Avoid excessively long variable names like chunkSeparatorLength 420
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 420
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 441
LongVariable Avoid excessively long variable names like unencodedBlockSize 455
LongVariable Avoid excessively long variable names like chunkSeparatorLength 455
LongVariable Avoid excessively long variable names like unencodedBlockSize 472
LongVariable Avoid excessively long variable names like chunkSeparatorLength 472
LongVariable Avoid excessively long variable names like unencodedBlockSize 491
LongVariable Avoid excessively long variable names like chunkSeparatorLength 491
CommentDefaultAccessModifier Missing commented default access modifier on method 'available(Context)' 508
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 525
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 542
CommentDefaultAccessModifier Missing commented default access modifier on method 'decode(byte[], int, int, Context)' 553
ShortVariable Avoid variables with short names like i 553
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 569
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 598
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 618
CommentDefaultAccessModifier Missing commented default access modifier on method 'encode(byte[], int, int, Context)' 629
ShortVariable Avoid variables with short names like i 629
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 691
CommentDefaultAccessModifier Missing commented default access modifier on method 'hasData(Context)' 745
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 770
CommentDefaultAccessModifier Missing commented default access modifier on method 'readResults(byte[], int, int, Context)' 822
ShortVariable Avoid variables with short names like b 822
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 834

org/apache/commons/codec/binary/BaseNCodecInputStream.java

Rule Violation Line
ShortVariable Avoid variables with short names like r 126
ShortVariable Avoid variables with short names like b 131
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 132
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 163
ShortVariable Avoid variables with short names like c 187
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 197
ConfusingTernary Avoid if (x != y) ..; else ..; 197
ShortVariable Avoid variables with short names like n 225
ShortVariable Avoid variables with short names like b 230

org/apache/commons/codec/binary/BaseNCodecOutputStream.java

Rule Violation Line
ShortVariable Avoid variables with short names like c 122
ShortVariable Avoid variables with short names like i 191

org/apache/commons/codec/binary/BinaryCodec.java

Rule Violation Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 81
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 109
CommentDefaultAccessModifier Missing commented default access modifier on method 'isEmpty(byte[])' 135
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 150
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 181
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 217
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 247
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 250
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 253
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 302

org/apache/commons/codec/binary/CharSequenceUtils.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on method 'regionMatches(CharSequence, boolean, int, CharSequence, int, int)' 54
ShortVariable Avoid variables with short names like cs 54
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 57
ShortVariable Avoid variables with short names like c1 63
ShortVariable Avoid variables with short names like c2 64
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 69
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 74
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 86

org/apache/commons/codec/binary/Hex.java

Rule Violation Line
LongVariable Avoid excessively long variable names like DEFAULT_CHARSET_NAME 52
ShortVariable Avoid variables with short names like f 102
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 348
ShortVariable Avoid variables with short names like ch 365
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 373
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 452
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 455
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 458

org/apache/commons/codec/binary/StringUtils.java

Rule Violation Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 74
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 77
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 80
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 96
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 171
ShortVariable Avoid variables with short names like e 270
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 311
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 422

org/apache/commons/codec/cli/Digest.java

Rule Violation Line
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 57
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 58
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 59
LongVariable Avoid excessively long variable names like messageDigestAlgorithm 133
LongVariable Avoid excessively long variable names like messageDigestAlgorithm 138

org/apache/commons/codec/digest/B64.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on field 'B64T_STRING' 36
CommentDefaultAccessModifier Missing commented default access modifier on field 'B64T_ARRAY' 41
CommentDefaultAccessModifier Missing commented default access modifier on method 'b64from24bit(byte, byte, byte, int, StringBuilder)' 58
ShortVariable Avoid variables with short names like b2 58
ShortVariable Avoid variables with short names like b1 58
ShortVariable Avoid variables with short names like b0 58
ShortVariable Avoid variables with short names like w 61
ShortVariable Avoid variables with short names like n 63
CommentDefaultAccessModifier Missing commented default access modifier on method 'getRandomSalt(int)' 79
CommentDefaultAccessModifier Missing commented default access modifier on method 'getRandomSalt(int, Random)' 93

org/apache/commons/codec/digest/Blake3.java

Rule Violation Line
ShortVariable Avoid variables with short names like in 166
LongVariable Avoid excessively long variable names like parentNodesRemaining 191
ShortVariable Avoid variables with short names like cv 203
LongVariable Avoid excessively long variable names like inputChainingValue 220
LongVariable Avoid excessively long variable names like inputChainingValue 226
LongVariable Avoid excessively long variable names like outputBlockCounter 239
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 255
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 256
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 257
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 258
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 259
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 260
LongVariable Avoid excessively long variable names like CHAINING_VALUE_INTS 261
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 261
ShortVariable Avoid variables with short names like IV 266
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 266
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 269
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 270
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 271
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 272
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 273
LongVariable Avoid excessively long variable names like DERIVE_KEY_CONTEXT 274
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 274
LongVariable Avoid excessively long variable names like DERIVE_KEY_MATERIAL 275
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 275
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 281
ShortMethodName Avoid using short method names 327
ShortVariable Avoid variables with short names like a 327
ShortVariable Avoid variables with short names like b 327
ShortVariable Avoid variables with short names like c 327
ShortVariable Avoid variables with short names like d 327
ShortVariable Avoid variables with short names like mx 327
ShortVariable Avoid variables with short names like my 327
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 447
ShortVariable Avoid variables with short names like in 515
ShortVariable Avoid variables with short names like in 530

org/apache/commons/codec/digest/Crypt.java

Rule Violation Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 77
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 80
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 83
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 86
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 182

org/apache/commons/codec/digest/DigestUtils.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on field 'BUFFER_SIZE' 62
LongVariable Avoid excessively long variable names like defaultMessageDigest 172
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 174
LongVariable Avoid excessively long variable names like messageDigestAlgorithm 351
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 1367

org/apache/commons/codec/digest/HmacUtils.java

Rule Violation Line
LongVariable Avoid excessively long variable names like STREAM_BUFFER_LENGTH 61
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 789
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 805
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 874

org/apache/commons/codec/digest/Md5Crypt.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on field 'APR1_PREFIX' 56
CommentDefaultAccessModifier Missing commented default access modifier on field 'MD5_PREFIX' 62
ShortVariable Avoid variables with short names like p 291
ShortVariable Avoid variables with short names like m 292
ShortVariable Avoid variables with short names like ii 325
ShortVariable Avoid variables with short names like j 340
ConfusingTernary Avoid if (x != y) ..; else ..; 362366
ConfusingTernary Avoid if (x != y) ..; else ..; 376380
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 413

org/apache/commons/codec/digest/MurmurHash.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLittleEndianInt(byte[], int)' 32
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLittleEndianLong(byte[], int)' 48
UnnecessaryCast Unnecessary cast (long) 50
UnnecessaryCast Unnecessary cast (long) 51
UnnecessaryCast Unnecessary cast (long) 52
UnnecessaryCast Unnecessary cast (long) 53
UnnecessaryCast Unnecessary cast (long) 54
UnnecessaryCast Unnecessary cast (long) 55
UnnecessaryCast Unnecessary cast (long) 56
UnnecessaryCast Unnecessary cast (long) 57

org/apache/commons/codec/digest/MurmurHash2.java

Rule Violation Line
ShortVariable Avoid variables with short names like h 89
ShortVariable Avoid variables with short names like k 95
ShortVariable Avoid variables with short names like h 194
ShortVariable Avoid variables with short names like k 199
UnnecessaryCast Unnecessary cast (long) 211
UnnecessaryCast Unnecessary cast (long) 214
UnnecessaryCast Unnecessary cast (long) 217
UnnecessaryCast Unnecessary cast (long) 220
UnnecessaryCast Unnecessary cast (long) 223
UnnecessaryCast Unnecessary cast (long) 226
UnnecessaryCast Unnecessary cast (long) 229

org/apache/commons/codec/digest/MurmurHash3.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 86
CallSuperInConstructor It is a good practice to call super() in a constructor 86
CommentDefaultAccessModifier Missing commented default access modifier on method 'finalise(int, int, byte[], int)' 103
ShortVariable Avoid variables with short names like k1 106
ShortVariable Avoid variables with short names like b1 155
ShortVariable Avoid variables with short names like b2 155
ShortVariable Avoid variables with short names like b3 155
ShortVariable Avoid variables with short names like b4 155
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 160
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 163
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 166
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 172
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 177
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 191
ShortVariable Avoid variables with short names like k 216
ShortVariable Avoid variables with short names like k 244
CommentDefaultAccessModifier Missing commented default access modifier on method 'finalise(int, int, byte[], int)' 276
ShortVariable Avoid variables with short names like k1 278
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 317
UseUnderscoresInNumericLiterals Number 2862933555777941757L should separate every third digit with an underscore 317
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 322
UseUnderscoresInNumericLiterals Number 104729 should separate every third digit with an underscore 322
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 324
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 325
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 326
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 327
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 329
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 330
ShortVariable Avoid variables with short names like C1 332
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 332
ShortVariable Avoid variables with short names like C2 333
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 333
ShortVariable Avoid variables with short names like R1 334
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 334
ShortVariable Avoid variables with short names like R2 335
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 335
ShortVariable Avoid variables with short names like R3 336
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 336
ShortVariable Avoid variables with short names like M 337
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 337
ShortVariable Avoid variables with short names like N1 339
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 339
ShortVariable Avoid variables with short names like N2 341
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 341
ShortVariable Avoid variables with short names like h1 513
ShortVariable Avoid variables with short names like h2 514
ShortVariable Avoid variables with short names like k1 519
ShortVariable Avoid variables with short names like k2 520
ShortVariable Avoid variables with short names like k1 541
ShortVariable Avoid variables with short names like k2 542
UnnecessaryCast Unnecessary cast (long) 546
UnnecessaryCast Unnecessary cast (long) 549
UnnecessaryCast Unnecessary cast (long) 552
UnnecessaryCast Unnecessary cast (long) 555
UnnecessaryCast Unnecessary cast (long) 558
UnnecessaryCast Unnecessary cast (long) 561
UnnecessaryCast Unnecessary cast (long) 571
UnnecessaryCast Unnecessary cast (long) 574
UnnecessaryCast Unnecessary cast (long) 577
UnnecessaryCast Unnecessary cast (long) 580
UnnecessaryCast Unnecessary cast (long) 583
UnnecessaryCast Unnecessary cast (long) 586
UnnecessaryCast Unnecessary cast (long) 589
ShortVariable Avoid variables with short names like k 721
ShortVariable Avoid variables with short names like k1 727
ShortVariable Avoid variables with short names like r0 785
ShortVariable Avoid variables with short names like r0 836
ShortVariable Avoid variables with short names like r1 837
ShortVariable Avoid variables with short names like k 921
ShortVariable Avoid variables with short names like k1 926
ShortVariable Avoid variables with short names like k 1070
ShortVariable Avoid variables with short names like k1 1079
UnnecessaryCast Unnecessary cast (long) 1083
UnnecessaryCast Unnecessary cast (long) 1086
UnnecessaryCast Unnecessary cast (long) 1089
UnnecessaryCast Unnecessary cast (long) 1092
UnnecessaryCast Unnecessary cast (long) 1095
UnnecessaryCast Unnecessary cast (long) 1098
UnnecessaryCast Unnecessary cast (long) 1101
ShortVariable Avoid variables with short names like k1 1151
ShortVariable Avoid variables with short names like k 1202
ShortVariable Avoid variables with short names like k1 1252
UnnecessaryCast Unnecessary cast (long) 1253
UnnecessaryCast Unnecessary cast (long) 1254
ShortVariable Avoid variables with short names like k 1272

org/apache/commons/codec/digest/PureJavaCrc32.java

Rule Violation Line
ShortVariable Avoid variables with short names like T 53
ShortVariable Avoid variables with short names like b 601
ShortVariable Avoid variables with short names like i 604
ShortVariable Avoid variables with short names like x 606
ShortVariable Avoid variables with short names like b 644

org/apache/commons/codec/digest/PureJavaCrc32C.java

Rule Violation Line
ShortVariable Avoid variables with short names like T 55
ShortVariable Avoid variables with short names like b 599
ShortVariable Avoid variables with short names like c0 602
ShortVariable Avoid variables with short names like c1 603
ShortVariable Avoid variables with short names like c2 604
ShortVariable Avoid variables with short names like c3 605
ShortVariable Avoid variables with short names like c4 607
ShortVariable Avoid variables with short names like c5 608
ShortVariable Avoid variables with short names like c6 609
ShortVariable Avoid variables with short names like c7 610
ShortVariable Avoid variables with short names like b 644

org/apache/commons/codec/digest/Sha2Crypt.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on field 'SHA256_PREFIX' 62
CommentDefaultAccessModifier Missing commented default access modifier on field 'SHA512_PREFIX' 68
PrematureDeclaration Declaration of 'keyLen' can be moved closer to its usages 173
PrematureDeclaration Declaration of 'rounds' can be moved closer to its usages 176
PrematureDeclaration Declaration of 'roundsCustom' can be moved closer to its usages 177
ShortVariable Avoid variables with short names like m 182
ConfusingTernary Avoid if (x != y) ..; else ..; 285289
ShortVariable Avoid variables with short names like cp 333
ConfusingTernary Avoid if (x != y) ..; else ..; 405409
ConfusingTernary Avoid if (x != y) ..; else ..; 432436
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 623

org/apache/commons/codec/digest/UnixCrypt.java

Rule Violation Line
LongVariable Avoid excessively long variable names like CRYPT_SALT_PATTERN 47
UseUnderscoresInNumericLiterals Number 10240 should separate every third digit with an underscore 116
UseUnderscoresInNumericLiterals Number 10242 should separate every third digit with an underscore 117
UseUnderscoresInNumericLiterals Number 10272 should separate every third digit with an underscore 118
UseUnderscoresInNumericLiterals Number 10274 should separate every third digit with an underscore 118
UseUnderscoresInNumericLiterals Number 16384 should separate every third digit with an underscore 150
UseUnderscoresInNumericLiterals Number 16648 should separate every third digit with an underscore 150
UseUnderscoresInNumericLiterals Number 16384 should separate every third digit with an underscore 150
UseUnderscoresInNumericLiterals Number 16640 should separate every third digit with an underscore 150
UseUnderscoresInNumericLiterals Number 16640 should separate every third digit with an underscore 151
UseUnderscoresInNumericLiterals Number 16392 should separate every third digit with an underscore 151
UseUnderscoresInNumericLiterals Number 16648 should separate every third digit with an underscore 151
UseUnderscoresInNumericLiterals Number 16392 should separate every third digit with an underscore 152
UseUnderscoresInNumericLiterals Number 16392 should separate every third digit with an underscore 152
UseUnderscoresInNumericLiterals Number 16384 should separate every third digit with an underscore 153
UseUnderscoresInNumericLiterals Number 16640 should separate every third digit with an underscore 153
UseUnderscoresInNumericLiterals Number 16648 should separate every third digit with an underscore 153
UseUnderscoresInNumericLiterals Number 16392 should separate every third digit with an underscore 154
UseUnderscoresInNumericLiterals Number 16384 should separate every third digit with an underscore 154
UseUnderscoresInNumericLiterals Number 16640 should separate every third digit with an underscore 154
UseUnderscoresInNumericLiterals Number 16648 should separate every third digit with an underscore 155
UseUnderscoresInNumericLiterals Number 32800 should separate every third digit with an underscore 168
UseUnderscoresInNumericLiterals Number 32800 should separate every third digit with an underscore 169
UseUnderscoresInNumericLiterals Number 32768 should separate every third digit with an underscore 169
UseUnderscoresInNumericLiterals Number 32768 should separate every third digit with an underscore 170
UseUnderscoresInNumericLiterals Number 32768 should separate every third digit with an underscore 171
UseUnderscoresInNumericLiterals Number 32800 should separate every third digit with an underscore 171
UseUnderscoresInNumericLiterals Number 32800 should separate every third digit with an underscore 173
UseUnderscoresInNumericLiterals Number 32768 should separate every third digit with an underscore 174
ShortVariable Avoid variables with short names like t 179
UseUnderscoresInNumericLiterals Number 65535 should separate every third digit with an underscore 203
ShortVariable Avoid variables with short names like b 215
ShortVariable Avoid variables with short names like b 270
ShortVariable Avoid variables with short names like i 274
ShortVariable Avoid variables with short names like y 275
ShortVariable Avoid variables with short names like u 276
ShortVariable Avoid variables with short names like j 278
ShortVariable Avoid variables with short names like c 279
ShortVariable Avoid variables with short names like el 326
ShortVariable Avoid variables with short names like r 326
ShortVariable Avoid variables with short names like s 326
ShortVariable Avoid variables with short names like e0 326
ShortVariable Avoid variables with short names like e1 326
ShortVariable Avoid variables with short names like v 327
ShortVariable Avoid variables with short names like u 328
ShortVariable Avoid variables with short names like t 331
ShortVariable Avoid variables with short names like c 341
ShortVariable Avoid variables with short names like d 342
ShortVariable Avoid variables with short names like j 360
ShortVariable Avoid variables with short names like s 371
ShortVariable Avoid variables with short names like t 374
ShortVariable Avoid variables with short names like b 385
ShortVariable Avoid variables with short names like a 393
ShortVariable Avoid variables with short names like n 393
ShortVariable Avoid variables with short names like m 393
ShortVariable Avoid variables with short names like t 394
ShortVariable Avoid variables with short names like b 398
ShortVariable Avoid variables with short names like a 405
ShortVariable Avoid variables with short names like b 405
ShortVariable Avoid variables with short names like n 405
ShortVariable Avoid variables with short names like m 405
ShortVariable Avoid variables with short names like t 406
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 419

org/apache/commons/codec/digest/XXHash32.java

Rule Violation Line
UseUnderscoresInNumericLiterals Number 2654435761L should separate every third digit with an underscore 43
UseUnderscoresInNumericLiterals Number 2246822519L should separate every third digit with an underscore 44
UseUnderscoresInNumericLiterals Number 3266489917L should separate every third digit with an underscore 45
UseUnderscoresInNumericLiterals Number 668265263 should separate every third digit with an underscore 46
UseUnderscoresInNumericLiterals Number 374761393 should separate every third digit with an underscore 47
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 62
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 63
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 66
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 68
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 69
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 71
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 74
ShortVariable Avoid variables with short names like b 132
ShortVariable Avoid variables with short names like s0 134
ShortVariable Avoid variables with short names like s1 135
ShortVariable Avoid variables with short names like s2 136
ShortVariable Avoid variables with short names like s3 137
ShortVariable Avoid variables with short names like b 161
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 163
ShortVariable Avoid variables with short names like b 202

org/apache/commons/codec/language/AbstractCaverphone.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 39

org/apache/commons/codec/language/Caverphone.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 45

org/apache/commons/codec/language/Caverphone1.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 41
CallSuperInConstructor It is a good practice to call super() in a constructor 41
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 56

org/apache/commons/codec/language/Caverphone2.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 41
CallSuperInConstructor It is a good practice to call super() in a constructor 41
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 56

org/apache/commons/codec/language/ColognePhonetic.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on nested class 'CologneBuffer' 190
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'CologneBuffer(char[])' 196
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'CologneBuffer(int)' 201
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'CologneInputBuffer(char[])' 224
ShortVariable Avoid variables with short names like ch 244
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'CologneOutputBuffer(int)' 254
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 281
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 282
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 283
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 284
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 285
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 286
ShortVariable Avoid variables with short names like SZ 288
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 288
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 290
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 292
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 294
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 302
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 311
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 328
ConfusingTernary Avoid if (x != y) ..; else ..; 342346

org/apache/commons/codec/language/DaitchMokotoffSoundex.java

Rule Violation Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 99
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 102
LongVariable Avoid excessively long variable names like replacementAtStart 158
LongVariable Avoid excessively long variable names like replacementBeforeVowel 159
LongVariable Avoid excessively long variable names like replacementDefault 160
LongVariable Avoid excessively long variable names like replacementAtStart 162
LongVariable Avoid excessively long variable names like replacementBeforeVowel 162
LongVariable Avoid excessively long variable names like replacementDefault 163
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 176
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 182
ShortVariable Avoid variables with short names like ch 188
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 206
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 208
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 210
LongVariable Avoid excessively long variable names like MULTILINE_COMMENT_END 212
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 212
LongVariable Avoid excessively long variable names like MULTILINE_COMMENT_START 214
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 214
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 217
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 220
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 223
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 226
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 228
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 230
LongVariable Avoid excessively long variable names like inMultilineComment 243
ShortVariable Avoid variables with short names like r 291
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 314
ShortVariable Avoid variables with short names like sb 348
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 402
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 446
ShortVariable Avoid variables with short names like ch 453

org/apache/commons/codec/language/DoubleMetaphone.java

Rule Violation Line
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 183
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 188
LongVariable Avoid excessively long variable names like L_R_N_M_B_H_F_V_W_SPACE 190
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 190
LongVariable Avoid excessively long variable names like ES_EP_EB_EL_EY_IB_IL_IN_IE_EI_ER 191
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 191
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 192
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 220
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 225
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 238
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 248
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 252
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 262
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 265
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 268
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 271
ShortVariable Avoid variables with short names like c 273
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 283
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 287
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 309
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 321
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 347
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 521
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 579
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 584
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 589
ConfusingTernary Avoid if (x != y) ..; else ..; 636641
ShortVariable Avoid variables with short names like ch 1043

org/apache/commons/codec/language/MatchRatingApproachEncoder.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 68
CommentDefaultAccessModifier Missing commented default access modifier on method 'cleanName(String)' 85
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 128
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 136
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 145
CommentDefaultAccessModifier Missing commented default access modifier on method 'getFirst3Last3(String)' 166
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 172
CommentDefaultAccessModifier Missing commented default access modifier on method 'getMinRating(int)' 190
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 221
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 224
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 227
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 230
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 254
CommentDefaultAccessModifier Missing commented default access modifier on method 'isVowel(String)' 284
CommentDefaultAccessModifier Missing commented default access modifier on method 'leftToRightThenRightToLeftProcessing(String, String)' 302
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 345
CommentDefaultAccessModifier Missing commented default access modifier on method 'removeAccents(String)' 358
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 360
ShortVariable Avoid variables with short names like sb 363
ShortVariable Avoid variables with short names like n 364
ShortVariable Avoid variables with short names like c 367
CommentDefaultAccessModifier Missing commented default access modifier on method 'removeDoubleConsonants(String)' 391
CommentDefaultAccessModifier Missing commented default access modifier on method 'removeVowels(String)' 414
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 428

org/apache/commons/codec/language/Metaphone.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 82
ShortVariable Avoid variables with short names like n 122
ShortVariable Avoid variables with short names like c 137
ShortVariable Avoid variables with short names like c 145
PrematureDeclaration Declaration of 'hard' can be moved closer to its usages 168
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 171
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 175
ShortVariable Avoid variables with short names like n 221

org/apache/commons/codec/language/Nysiis.java

Rule Violation Line
ShortVariable Avoid variables with short names like c 102
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 123
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 128
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 136
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 138
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 140
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 143
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 145
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 152
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 157
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 162
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 167
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 174
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 245
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 252

org/apache/commons/codec/language/RefinedSoundex.java

Rule Violation Line
LongVariable Avoid excessively long variable names like US_ENGLISH_MAPPING_STRING 51
LongVariable Avoid excessively long variable names like US_ENGLISH_MAPPING 58
ShortVariable Avoid variables with short names like s1 128
ShortVariable Avoid variables with short names like s2 128
CommentDefaultAccessModifier Missing commented default access modifier on method 'getMappingCode(char)' 174
ShortVariable Avoid variables with short names like c 174
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 176
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 180
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 194
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 198

org/apache/commons/codec/language/Soundex.java

Rule Violation Line
LongVariable Avoid excessively long variable names like US_ENGLISH_MAPPING_STRING 61
LongVariable Avoid excessively long variable names like US_ENGLISH_MAPPING 69
LongVariable Avoid excessively long variable names like US_ENGLISH_SIMPLIFIED 93
LongVariable Avoid excessively long variable names like US_ENGLISH_GENEALOGY 110
ShortVariable Avoid variables with short names like s1 210
ShortVariable Avoid variables with short names like s2 210
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 257
ShortVariable Avoid variables with short names like ch 272
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 301
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 305
ShortVariable Avoid variables with short names like ch 313

org/apache/commons/codec/language/SoundexUtils.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on method 'clean(String)' 42
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 44
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 55
CommentDefaultAccessModifier Missing commented default access modifier on method 'difference(StringEncoder, String, String)' 86
ShortVariable Avoid variables with short names like s1 86
ShortVariable Avoid variables with short names like s2 86
CommentDefaultAccessModifier Missing commented default access modifier on method 'differenceEncoded(String, String)' 110
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 113
CommentDefaultAccessModifier Missing commented default access modifier on method 'isEmpty(CharSequence)' 139
ShortVariable Avoid variables with short names like cs 139

org/apache/commons/codec/language/bm/BeiderMorseEncoder.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 93
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 108

org/apache/commons/codec/language/bm/Lang.java

Rule Violation Line
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 102
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 104
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 106
LongVariable Avoid excessively long variable names like languageRulesResourceName 138
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 186
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 188
ShortVariable Avoid variables with short names like ls 203
ShortVariable Avoid variables with short names like ls 226

org/apache/commons/codec/language/bm/Languages.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 86
CommentDefaultAccessModifier Missing commented default access modifier on method 'merge(LanguageSet)' 119
CallSuperInConstructor It is a good practice to call super() in a constructor 136
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 172
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 175
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 186
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 189
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `someLanguages.languages::contains` 192
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 205
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 207
LongVariable Avoid excessively long variable names like languagesResourceName 313
ShortVariable Avoid variables with short names like ls 315
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 339

org/apache/commons/codec/language/bm/PhoneticEngine.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on nested class 'PhonemeBuilder' 65
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 79
ShortVariable Avoid variables with short names like i 169
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'RulesApplication(Map<String, List<Rule>>, CharSequence, PhonemeBuilder, int, int)' 173
ShortVariable Avoid variables with short names like i 173
LongVariable Avoid excessively long variable names like DEFAULT_MAX_PHONEMES 227
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 227
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 229
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 231
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 258
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 260
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 262
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 264
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 266
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 318
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 394
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 402
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 441

org/apache/commons/codec/language/bm/ResourceConstants.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on field 'CMT' 33
CommentDefaultAccessModifier Missing commented default access modifier on field 'ENCODING' 34
CommentDefaultAccessModifier Missing commented default access modifier on field 'EXT_CMT_END' 35
CommentDefaultAccessModifier Missing commented default access modifier on field 'EXT_CMT_START' 36
CommentDefaultAccessModifier Missing commented default access modifier on field 'SPACES' 37

org/apache/commons/codec/language/bm/Rule.java

Rule Violation Line
ShortVariable Avoid variables with short names like c 98
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 277
LongVariable Avoid excessively long variable names like ALL_STRINGS_RMATCHER 282
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 282
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 290
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 292
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 293
LongVariable Avoid excessively long variable names like HASH_INCLUDE_LENGTH 294
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 294
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 295
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 296
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 297
ShortVariable Avoid variables with short names like rt 330
ShortVariable Avoid variables with short names like rt 335
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 350
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 354
ShortVariable Avoid variables with short names like rt 368
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `allRules::addAll` 371
ShortVariable Avoid variables with short names like rt 383
ShortVariable Avoid variables with short names like rt 396
ShortVariable Avoid variables with short names like rt 409
ShortVariable Avoid variables with short names like ph 417
ShortVariable Avoid variables with short names like in 424
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 426
CommentDefaultAccessModifier Missing commented default access modifier on method 'parsePhonemeExpr(String)' 434
ShortVariable Avoid variables with short names like ph 434
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 449
LongVariable Avoid excessively long variable names like inMultilineComment 457
LongVariable Avoid excessively long variable names like hashIncludeScanner 485
ShortVariable Avoid variables with short names like ph 498
ShortVariable Avoid variables with short names like r 500
ShortVariable Avoid variables with short names like sb 507
ConfusingTernary Avoid if (x != y) ..; else ..; 541589
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 546
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 548
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 552
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 556
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 560
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 577
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 581
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 585
CommentDefaultAccessModifier Missing commented default access modifier on field 'pattern' 592
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 604
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 608
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 624
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 625
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 626
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 627
ShortVariable Avoid variables with short names like i 688
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 696
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 701
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 704

org/apache/commons/codec/net/BCodec.java

Rule Violation Line
LongVariable Avoid excessively long variable names like DECODING_POLICY_DEFAULT 55
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 125
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 155
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 163
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 180

org/apache/commons/codec/net/PercentCodec.java

Rule Violation Line
LongVariable Avoid excessively long variable names like alwaysEncodeCharsMin 60
LongVariable Avoid excessively long variable names like alwaysEncodeCharsMax 60
ShortVariable Avoid variables with short names like c 85
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 92
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 105
ShortVariable Avoid variables with short names like b 109
ShortVariable Avoid variables with short names like u 112
ShortVariable Avoid variables with short names like l 113
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 137
ShortVariable Avoid variables with short names like bb 149
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 174
LongVariable Avoid excessively long variable names like expectedEncodingBytes 176
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 179
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 194
ShortVariable Avoid variables with short names like b 205
ShortVariable Avoid variables with short names like c 220
ShortVariable Avoid variables with short names like b 230
LongVariable Avoid excessively long variable names like alwaysEncodeCharsArray 248
ShortVariable Avoid variables with short names like c 257

org/apache/commons/codec/net/QCodec.java

Rule Violation Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 157
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 187
ShortVariable Avoid variables with short names like b 199
ConfusingTernary Avoid if (x != y) ..; else ..; 200204
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 206
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 214
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 239
ShortVariable Avoid variables with short names like b 316

org/apache/commons/codec/net/QuotedPrintableCodec.java

Rule Violation Line
ShortVariable Avoid variables with short names like CR 83
ShortVariable Avoid variables with short names like LF 85
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 126
ShortVariable Avoid variables with short names like b 130
ShortVariable Avoid variables with short names like u 137
ShortVariable Avoid variables with short names like l 138
ShortVariable Avoid variables with short names like b 162
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 164
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 206
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 216
ShortVariable Avoid variables with short names like b 223
ShortVariable Avoid variables with short names like b 241
ShortVariable Avoid variables with short names like b 261
ShortVariable Avoid variables with short names like b 284
ShortVariable Avoid variables with short names like b 304
ShortVariable Avoid variables with short names like b 318
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 325
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 330
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 427
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 430
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 469
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 490
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 525
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 528
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 574
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 597

org/apache/commons/codec/net/RFC1522Codec.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'RFC1522Codec(Charset)' 60
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 81
ShortVariable Avoid variables with short names like to 88
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 152
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 186

org/apache/commons/codec/net/URLCodec.java

Rule Violation Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 104
ShortVariable Avoid variables with short names like b 108
ShortVariable Avoid variables with short names like u 113
ShortVariable Avoid variables with short names like l 114
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 137
ShortVariable Avoid variables with short names like b 145
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 171
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 218
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 221
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 243
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 269
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 298
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 301
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 323
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 345

org/apache/commons/codec/net/Utils.java

Rule Violation Line
CommentDefaultAccessModifier Missing commented default access modifier on method 'digit16(byte)' 45
ShortVariable Avoid variables with short names like b 45
ShortVariable Avoid variables with short names like i 46
CommentDefaultAccessModifier Missing commented default access modifier on method 'hexChar(int)' 59
ShortVariable Avoid variables with short names like b 59

Priority 4

org/apache/commons/codec/binary/Hex.java

Rule Violation Line
ShortClassName Avoid short class names like Hex 38

org/apache/commons/codec/digest/B64.java

Rule Violation Line
ShortClassName Avoid short class names like B64 31

org/apache/commons/codec/language/DaitchMokotoffSoundex.java

Rule Violation Line
ShortClassName Avoid short class names like Rule 155

org/apache/commons/codec/language/bm/Lang.java

Rule Violation Line
ShortClassName Avoid short class names like Lang 77

org/apache/commons/codec/language/bm/Rule.java

Rule Violation Line
ShortClassName Avoid short class names like Rule 81

Files

org/apache/commons/codec/CharEncoding.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 128

org/apache/commons/codec/Charsets.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 167

org/apache/commons/codec/DecoderException.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 39

org/apache/commons/codec/EncoderException.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 40

org/apache/commons/codec/Resources.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 52

org/apache/commons/codec/StringEncoderComparator.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like o1 3 73
ShortVariable Avoid variables with short names like o2 3 73
ShortVariable Avoid variables with short names like s1 3 80
ShortVariable Avoid variables with short names like s2 3 81

org/apache/commons/codec/binary/Base16.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like BITS_PER_ENCODED_BYTE 3 47
LongVariable Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK 3 48
LongVariable Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK 3 49
LongVariable Avoid excessively long variable names like UPPER_CASE_DECODE_TABLE 3 56
LongVariable Avoid excessively long variable names like UPPER_CASE_ENCODE_TABLE 3 70
LongVariable Avoid excessively long variable names like LOWER_CASE_DECODE_TABLE 3 77
LongVariable Avoid excessively long variable names like LOWER_CASE_ENCODE_TABLE 3 92
CommentDefaultAccessModifier Missing commented default access modifier on method 'decode(byte[], int, int, Context)' 3 146
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 152
ConfusingTernary Avoid if (x != y) ..; else ..; 3 155
CommentDefaultAccessModifier Missing commented default access modifier on method 'encode(byte[], int, int, Context)' 3 200
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 202

org/apache/commons/codec/binary/Base32.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like BITS_PER_ENCODED_BYTE 3 111
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 111
LongVariable Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK 3 113
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 113
LongVariable Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK 3 114
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 114
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 120
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 139
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 151
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 170
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 178
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 181
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 184
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 187
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 190
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 217
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 223
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 228
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 233
CommentDefaultAccessModifier Missing commented default access modifier on method 'decode(byte[], int, int, Context)' 3 437
ShortVariable Avoid variables with short names like b 3 447
CommentDefaultAccessModifier Missing commented default access modifier on method 'encode(byte[], int, int, Context)' 3 543
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 546
ShortVariable Avoid variables with short names like b 3 613
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLineSeparator()' 3 643

org/apache/commons/codec/binary/Base64.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like BITS_PER_ENCODED_BYTE 3 108
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 108
LongVariable Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK 3 109
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 109
LongVariable Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK 3 110
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 110
LongVariable Avoid excessively long variable names like DECODING_TABLE_LENGTH 3 111
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 111
LongVariable Avoid excessively long variable names like STANDARD_ENCODE_TABLE 3 121
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 121
LongVariable Avoid excessively long variable names like URL_SAFE_ENCODE_TABLE 3 133
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 133
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 154
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 170
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 177
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 179
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 297
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 419
CommentDefaultAccessModifier Missing commented default access modifier on method 'toIntegerBytes(BigInteger)' 3 446
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 453
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 480
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 485
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 490
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 496
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 498
CommentDefaultAccessModifier Missing commented default access modifier on method 'decode(byte[], int, int, Context)' 3 742
ShortVariable Avoid variables with short names like b 3 752
CommentDefaultAccessModifier Missing commented default access modifier on method 'encode(byte[], int, int, Context)' 3 824
ShortVariable Avoid variables with short names like in 3 824
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 826
ShortVariable Avoid variables with short names like b 3 874
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLineSeparator()' 3 900

org/apache/commons/codec/binary/BaseNCodec.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like defaultEncodeTable 3 67
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'AbstractBuilder(byte[])' 3 72
LongVariable Avoid excessively long variable names like defaultEncodeTable 3 72
CommentDefaultAccessModifier Missing commented default access modifier on method 'asThis()' 3 89
CommentDefaultAccessModifier Missing commented default access modifier on method 'getDecodingPolicy()' 3 93
CommentDefaultAccessModifier Missing commented default access modifier on method 'getEncodeTable()' 3 97
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLineLength()' 3 101
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLineSeparator()' 3 105
CommentDefaultAccessModifier Missing commented default access modifier on method 'getPadding()' 3 109
LinguisticNaming Linguistics Antipattern - The setter 'setDecodingPolicy' should not return any type except void linguistically 3 119
LinguisticNaming Linguistics Antipattern - The setter 'setEncodeTable' should not return any type except void linguistically 3 130
LinguisticNaming Linguistics Antipattern - The setter 'setLineLength' should not return any type except void linguistically 3 141
LinguisticNaming Linguistics Antipattern - The setter 'setLineSeparator' should not return any type except void linguistically 3 152
LinguisticNaming Linguistics Antipattern - The setter 'setPadding' should not return any type except void linguistically 3 163
CommentDefaultAccessModifier Missing commented default access modifier on nested class 'Context' 3 175
CommentDefaultAccessModifier Missing commented default access modifier on field 'ibitWorkArea' 3 181
CommentDefaultAccessModifier Missing commented default access modifier on field 'lbitWorkArea' 3 187
CommentDefaultAccessModifier Missing commented default access modifier on field 'buffer' 3 192
CommentDefaultAccessModifier Missing commented default access modifier on field 'pos' 3 197
CommentDefaultAccessModifier Missing commented default access modifier on field 'readPos' 3 202
CommentDefaultAccessModifier Missing commented default access modifier on field 'eof' 3 208
CommentDefaultAccessModifier Missing commented default access modifier on field 'currentLinePos' 3 214
CommentDefaultAccessModifier Missing commented default access modifier on field 'modulus' 3 220
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 240
CommentDefaultAccessModifier Missing commented default access modifier on field 'EOF' 3 240
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 252
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 264
LongVariable Avoid excessively long variable names like DEFAULT_BUFFER_RESIZE_FACTOR 3 266
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 266
LongVariable Avoid excessively long variable names like DEFAULT_BUFFER_SIZE 3 272
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 272
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 284
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 287
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 292
LongVariable Avoid excessively long variable names like DECODING_POLICY_DEFAULT 3 299
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 299
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 306
CommentDefaultAccessModifier Missing commented default access modifier on field 'CHUNK_SEPARATOR' 3 306
ShortVariable Avoid variables with short names like b 3 375
CommentDefaultAccessModifier Missing commented default access modifier on method 'toLength(byte[])' 3 386
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 399
FieldNamingConventions The final field name 'PAD' doesn't match '[a-z][a-zA-Z0-9]*' 1 399
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 402
LongVariable Avoid excessively long variable names like unencodedBlockSize 3 405
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 405
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 408
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 415
LongVariable Avoid excessively long variable names like chunkSeparatorLength 3 420
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 420
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 441
LongVariable Avoid excessively long variable names like unencodedBlockSize 3 455
LongVariable Avoid excessively long variable names like chunkSeparatorLength 3 455
LongVariable Avoid excessively long variable names like unencodedBlockSize 3 472
LongVariable Avoid excessively long variable names like chunkSeparatorLength 3 472
LongVariable Avoid excessively long variable names like unencodedBlockSize 3 491
LongVariable Avoid excessively long variable names like chunkSeparatorLength 3 491
CommentDefaultAccessModifier Missing commented default access modifier on method 'available(Context)' 3 508
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 525
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 542
CommentDefaultAccessModifier Missing commented default access modifier on method 'decode(byte[], int, int, Context)' 3 553
ShortVariable Avoid variables with short names like i 3 553
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 569
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 598
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 618
CommentDefaultAccessModifier Missing commented default access modifier on method 'encode(byte[], int, int, Context)' 3 629
ShortVariable Avoid variables with short names like i 3 629
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 691
CommentDefaultAccessModifier Missing commented default access modifier on method 'hasData(Context)' 3 745
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 770
CommentDefaultAccessModifier Missing commented default access modifier on method 'readResults(byte[], int, int, Context)' 3 822
ShortVariable Avoid variables with short names like b 3 822
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 834

org/apache/commons/codec/binary/BaseNCodecInputStream.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like r 3 126
ShortVariable Avoid variables with short names like b 3 131
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 132
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 163
ShortVariable Avoid variables with short names like c 3 187
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 197
ConfusingTernary Avoid if (x != y) ..; else ..; 3 197
ShortVariable Avoid variables with short names like n 3 225
ShortVariable Avoid variables with short names like b 3 230

org/apache/commons/codec/binary/BaseNCodecOutputStream.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like c 3 122
ShortVariable Avoid variables with short names like i 3 191

org/apache/commons/codec/binary/BinaryCodec.java

Rule Violation Priority Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 81
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 109
CommentDefaultAccessModifier Missing commented default access modifier on method 'isEmpty(byte[])' 3 135
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 150
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 181
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 217
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 247
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 250
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 253
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 302

org/apache/commons/codec/binary/CharSequenceUtils.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on method 'regionMatches(CharSequence, boolean, int, CharSequence, int, int)' 3 54
ShortVariable Avoid variables with short names like cs 3 54
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 57
ShortVariable Avoid variables with short names like c1 3 63
ShortVariable Avoid variables with short names like c2 3 64
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 69
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 74
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 86

org/apache/commons/codec/binary/Hex.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Hex 4 38
LongVariable Avoid excessively long variable names like DEFAULT_CHARSET_NAME 3 52
ShortVariable Avoid variables with short names like f 3 102
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 348
ShortVariable Avoid variables with short names like ch 3 365
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 373
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 452
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 455
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 458

org/apache/commons/codec/binary/StringUtils.java

Rule Violation Priority Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 74
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 77
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 80
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 96
MethodNamingConventions The static method name 'getBytesIso8859_1' doesn't match '[a-z][a-zA-Z0-9]*' 1 146
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 171
ShortVariable Avoid variables with short names like e 3 270
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 311
MethodNamingConventions The static method name 'newStringIso8859_1' doesn't match '[a-z][a-zA-Z0-9]*' 1 332
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 422

org/apache/commons/codec/cli/Digest.java

Rule Violation Priority Line
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 57
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 58
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 59
LongVariable Avoid excessively long variable names like messageDigestAlgorithm 3 133
LongVariable Avoid excessively long variable names like messageDigestAlgorithm 3 138

org/apache/commons/codec/digest/B64.java

Rule Violation Priority Line
ShortClassName Avoid short class names like B64 4 31
CommentDefaultAccessModifier Missing commented default access modifier on field 'B64T_STRING' 3 36
CommentDefaultAccessModifier Missing commented default access modifier on field 'B64T_ARRAY' 3 41
CommentDefaultAccessModifier Missing commented default access modifier on method 'b64from24bit(byte, byte, byte, int, StringBuilder)' 3 58
ShortVariable Avoid variables with short names like b2 3 58
ShortVariable Avoid variables with short names like b1 3 58
ShortVariable Avoid variables with short names like b0 3 58
ShortVariable Avoid variables with short names like w 3 61
ShortVariable Avoid variables with short names like n 3 63
CommentDefaultAccessModifier Missing commented default access modifier on method 'getRandomSalt(int)' 3 79
CommentDefaultAccessModifier Missing commented default access modifier on method 'getRandomSalt(int, Random)' 3 93

org/apache/commons/codec/digest/Blake3.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like in 3 166
LongVariable Avoid excessively long variable names like parentNodesRemaining 3 191
ShortVariable Avoid variables with short names like cv 3 203
LongVariable Avoid excessively long variable names like inputChainingValue 3 220
LongVariable Avoid excessively long variable names like inputChainingValue 3 226
LongVariable Avoid excessively long variable names like outputBlockCounter 3 239
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 255
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 256
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 257
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 258
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 259
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 260
LongVariable Avoid excessively long variable names like CHAINING_VALUE_INTS 3 261
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 261
ShortVariable Avoid variables with short names like IV 3 266
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 266
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 269
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 270
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 271
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 272
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 273
LongVariable Avoid excessively long variable names like DERIVE_KEY_CONTEXT 3 274
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 274
LongVariable Avoid excessively long variable names like DERIVE_KEY_MATERIAL 3 275
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 275
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 281
ShortMethodName Avoid using short method names 3 327
ShortVariable Avoid variables with short names like a 3 327
ShortVariable Avoid variables with short names like b 3 327
ShortVariable Avoid variables with short names like c 3 327
ShortVariable Avoid variables with short names like d 3 327
ShortVariable Avoid variables with short names like mx 3 327
ShortVariable Avoid variables with short names like my 3 327
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 447
ShortVariable Avoid variables with short names like in 3 515
ShortVariable Avoid variables with short names like in 3 530

org/apache/commons/codec/digest/Crypt.java

Rule Violation Priority Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 77
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 80
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 83
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 86
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 182

org/apache/commons/codec/digest/DigestUtils.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on field 'BUFFER_SIZE' 3 62
LongVariable Avoid excessively long variable names like defaultMessageDigest 3 172
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 174
MethodNamingConventions The static method name 'getSha3_224Digest' doesn't match '[a-z][a-zA-Z0-9]*' 1 248
MethodNamingConventions The static method name 'getSha3_256Digest' doesn't match '[a-z][a-zA-Z0-9]*' 1 260
MethodNamingConventions The static method name 'getSha3_384Digest' doesn't match '[a-z][a-zA-Z0-9]*' 1 272
MethodNamingConventions The static method name 'getSha3_512Digest' doesn't match '[a-z][a-zA-Z0-9]*' 1 284
MethodNamingConventions The static method name 'getSha512_224Digest' doesn't match '[a-z][a-zA-Z0-9]*' 1 306
MethodNamingConventions The static method name 'getSha512_256Digest' doesn't match '[a-z][a-zA-Z0-9]*' 1 317
LongVariable Avoid excessively long variable names like messageDigestAlgorithm 3 351
MethodNamingConventions The static method name 'sha3_224' doesn't match '[a-z][a-zA-Z0-9]*' 1 667
MethodNamingConventions The static method name 'sha3_224' doesn't match '[a-z][a-zA-Z0-9]*' 1 679
MethodNamingConventions The static method name 'sha3_224' doesn't match '[a-z][a-zA-Z0-9]*' 1 690
MethodNamingConventions The static method name 'sha3_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 701
MethodNamingConventions The static method name 'sha3_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 713
MethodNamingConventions The static method name 'sha3_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 724
MethodNamingConventions The static method name 'sha3_256' doesn't match '[a-z][a-zA-Z0-9]*' 1 735
MethodNamingConventions The static method name 'sha3_256' doesn't match '[a-z][a-zA-Z0-9]*' 1 747
MethodNamingConventions The static method name 'sha3_256' doesn't match '[a-z][a-zA-Z0-9]*' 1 758
MethodNamingConventions The static method name 'sha3_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 769
MethodNamingConventions The static method name 'sha3_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 781
MethodNamingConventions The static method name 'sha3_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 792
MethodNamingConventions The static method name 'sha3_384' doesn't match '[a-z][a-zA-Z0-9]*' 1 803
MethodNamingConventions The static method name 'sha3_384' doesn't match '[a-z][a-zA-Z0-9]*' 1 815
MethodNamingConventions The static method name 'sha3_384' doesn't match '[a-z][a-zA-Z0-9]*' 1 826
MethodNamingConventions The static method name 'sha3_384Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 837
MethodNamingConventions The static method name 'sha3_384Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 849
MethodNamingConventions The static method name 'sha3_384Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 860
MethodNamingConventions The static method name 'sha3_512' doesn't match '[a-z][a-zA-Z0-9]*' 1 871
MethodNamingConventions The static method name 'sha3_512' doesn't match '[a-z][a-zA-Z0-9]*' 1 883
MethodNamingConventions The static method name 'sha3_512' doesn't match '[a-z][a-zA-Z0-9]*' 1 894
MethodNamingConventions The static method name 'sha3_512Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 905
MethodNamingConventions The static method name 'sha3_512Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 917
MethodNamingConventions The static method name 'sha3_512Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 928
MethodNamingConventions The static method name 'sha512_224' doesn't match '[a-z][a-zA-Z0-9]*' 1 1041
MethodNamingConventions The static method name 'sha512_224' doesn't match '[a-z][a-zA-Z0-9]*' 1 1053
MethodNamingConventions The static method name 'sha512_224' doesn't match '[a-z][a-zA-Z0-9]*' 1 1064
MethodNamingConventions The static method name 'sha512_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 1075
MethodNamingConventions The static method name 'sha512_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 1087
MethodNamingConventions The static method name 'sha512_224Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 1098
MethodNamingConventions The static method name 'sha512_256' doesn't match '[a-z][a-zA-Z0-9]*' 1 1109
MethodNamingConventions The static method name 'sha512_256' doesn't match '[a-z][a-zA-Z0-9]*' 1 1121
MethodNamingConventions The static method name 'sha512_256' doesn't match '[a-z][a-zA-Z0-9]*' 1 1132
MethodNamingConventions The static method name 'sha512_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 1143
MethodNamingConventions The static method name 'sha512_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 1155
MethodNamingConventions The static method name 'sha512_256Hex' doesn't match '[a-z][a-zA-Z0-9]*' 1 1166
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 1367

org/apache/commons/codec/digest/HmacUtils.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like STREAM_BUFFER_LENGTH 3 61
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 789
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 805
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 874

org/apache/commons/codec/digest/Md5Crypt.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on field 'APR1_PREFIX' 3 56
CommentDefaultAccessModifier Missing commented default access modifier on field 'MD5_PREFIX' 3 62
ShortVariable Avoid variables with short names like p 3 291
ShortVariable Avoid variables with short names like m 3 292
ShortVariable Avoid variables with short names like ii 3 325
ShortVariable Avoid variables with short names like j 3 340
ConfusingTernary Avoid if (x != y) ..; else ..; 3 362366
ConfusingTernary Avoid if (x != y) ..; else ..; 3 376380
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 413

org/apache/commons/codec/digest/MurmurHash.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLittleEndianInt(byte[], int)' 3 32
CommentDefaultAccessModifier Missing commented default access modifier on method 'getLittleEndianLong(byte[], int)' 3 48
UnnecessaryCast Unnecessary cast (long) 3 50
UnnecessaryCast Unnecessary cast (long) 3 51
UnnecessaryCast Unnecessary cast (long) 3 52
UnnecessaryCast Unnecessary cast (long) 3 53
UnnecessaryCast Unnecessary cast (long) 3 54
UnnecessaryCast Unnecessary cast (long) 3 55
UnnecessaryCast Unnecessary cast (long) 3 56
UnnecessaryCast Unnecessary cast (long) 3 57

org/apache/commons/codec/digest/MurmurHash2.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like h 3 89
ShortVariable Avoid variables with short names like k 3 95
ShortVariable Avoid variables with short names like h 3 194
ShortVariable Avoid variables with short names like k 3 199
UnnecessaryCast Unnecessary cast (long) 3 211
UnnecessaryCast Unnecessary cast (long) 3 214
UnnecessaryCast Unnecessary cast (long) 3 217
UnnecessaryCast Unnecessary cast (long) 3 220
UnnecessaryCast Unnecessary cast (long) 3 223
UnnecessaryCast Unnecessary cast (long) 3 226
UnnecessaryCast Unnecessary cast (long) 3 229

org/apache/commons/codec/digest/MurmurHash3.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 86
CallSuperInConstructor It is a good practice to call super() in a constructor 3 86
CommentDefaultAccessModifier Missing commented default access modifier on method 'finalise(int, int, byte[], int)' 3 103
ShortVariable Avoid variables with short names like k1 3 106
ShortVariable Avoid variables with short names like b1 3 155
ShortVariable Avoid variables with short names like b2 3 155
ShortVariable Avoid variables with short names like b3 3 155
ShortVariable Avoid variables with short names like b4 3 155
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 160
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 163
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 166
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 172
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 177
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 191
ShortVariable Avoid variables with short names like k 3 216
ShortVariable Avoid variables with short names like k 3 244
CommentDefaultAccessModifier Missing commented default access modifier on method 'finalise(int, int, byte[], int)' 3 276
ShortVariable Avoid variables with short names like k1 3 278
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 317
UseUnderscoresInNumericLiterals Number 2862933555777941757L should separate every third digit with an underscore 3 317
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 322
UseUnderscoresInNumericLiterals Number 104729 should separate every third digit with an underscore 3 322
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 324
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 325
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 326
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 327
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 329
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 330
ShortVariable Avoid variables with short names like C1 3 332
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 332
ShortVariable Avoid variables with short names like C2 3 333
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 333
ShortVariable Avoid variables with short names like R1 3 334
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 334
ShortVariable Avoid variables with short names like R2 3 335
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 335
ShortVariable Avoid variables with short names like R3 3 336
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 336
ShortVariable Avoid variables with short names like M 3 337
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 337
ShortVariable Avoid variables with short names like N1 3 339
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 339
ShortVariable Avoid variables with short names like N2 3 341
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 341
ShortVariable Avoid variables with short names like h1 3 513
ShortVariable Avoid variables with short names like h2 3 514
ShortVariable Avoid variables with short names like k1 3 519
ShortVariable Avoid variables with short names like k2 3 520
ShortVariable Avoid variables with short names like k1 3 541
ShortVariable Avoid variables with short names like k2 3 542
UnnecessaryCast Unnecessary cast (long) 3 546
UnnecessaryCast Unnecessary cast (long) 3 549
UnnecessaryCast Unnecessary cast (long) 3 552
UnnecessaryCast Unnecessary cast (long) 3 555
UnnecessaryCast Unnecessary cast (long) 3 558
UnnecessaryCast Unnecessary cast (long) 3 561
UnnecessaryCast Unnecessary cast (long) 3 571
UnnecessaryCast Unnecessary cast (long) 3 574
UnnecessaryCast Unnecessary cast (long) 3 577
UnnecessaryCast Unnecessary cast (long) 3 580
UnnecessaryCast Unnecessary cast (long) 3 583
UnnecessaryCast Unnecessary cast (long) 3 586
UnnecessaryCast Unnecessary cast (long) 3 589
ShortVariable Avoid variables with short names like k 3 721
ShortVariable Avoid variables with short names like k1 3 727
ShortVariable Avoid variables with short names like r0 3 785
ShortVariable Avoid variables with short names like r0 3 836
ShortVariable Avoid variables with short names like r1 3 837
ShortVariable Avoid variables with short names like k 3 921
ShortVariable Avoid variables with short names like k1 3 926
ShortVariable Avoid variables with short names like k 3 1070
ShortVariable Avoid variables with short names like k1 3 1079
UnnecessaryCast Unnecessary cast (long) 3 1083
UnnecessaryCast Unnecessary cast (long) 3 1086
UnnecessaryCast Unnecessary cast (long) 3 1089
UnnecessaryCast Unnecessary cast (long) 3 1092
UnnecessaryCast Unnecessary cast (long) 3 1095
UnnecessaryCast Unnecessary cast (long) 3 1098
UnnecessaryCast Unnecessary cast (long) 3 1101
ShortVariable Avoid variables with short names like k1 3 1151
ShortVariable Avoid variables with short names like k 3 1202
ShortVariable Avoid variables with short names like k1 3 1252
UnnecessaryCast Unnecessary cast (long) 3 1253
UnnecessaryCast Unnecessary cast (long) 3 1254
ShortVariable Avoid variables with short names like k 3 1272

org/apache/commons/codec/digest/PureJavaCrc32.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like T 3 53
ShortVariable Avoid variables with short names like b 3 601
ShortVariable Avoid variables with short names like i 3 604
ShortVariable Avoid variables with short names like x 3 606
ShortVariable Avoid variables with short names like b 3 644

org/apache/commons/codec/digest/PureJavaCrc32C.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like T 3 55
ShortVariable Avoid variables with short names like b 3 599
ShortVariable Avoid variables with short names like c0 3 602
ShortVariable Avoid variables with short names like c1 3 603
ShortVariable Avoid variables with short names like c2 3 604
ShortVariable Avoid variables with short names like c3 3 605
ShortVariable Avoid variables with short names like c4 3 607
ShortVariable Avoid variables with short names like c5 3 608
ShortVariable Avoid variables with short names like c6 3 609
ShortVariable Avoid variables with short names like c7 3 610
ShortVariable Avoid variables with short names like b 3 644

org/apache/commons/codec/digest/Sha2Crypt.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on field 'SHA256_PREFIX' 3 62
CommentDefaultAccessModifier Missing commented default access modifier on field 'SHA512_PREFIX' 3 68
PrematureDeclaration Declaration of 'keyLen' can be moved closer to its usages 3 173
PrematureDeclaration Declaration of 'rounds' can be moved closer to its usages 3 176
PrematureDeclaration Declaration of 'roundsCustom' can be moved closer to its usages 3 177
ShortVariable Avoid variables with short names like m 3 182
ConfusingTernary Avoid if (x != y) ..; else ..; 3 285289
ShortVariable Avoid variables with short names like cp 3 333
ConfusingTernary Avoid if (x != y) ..; else ..; 3 405409
ConfusingTernary Avoid if (x != y) ..; else ..; 3 432436
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 623

org/apache/commons/codec/digest/UnixCrypt.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like CRYPT_SALT_PATTERN 3 47
UseUnderscoresInNumericLiterals Number 10240 should separate every third digit with an underscore 3 116
UseUnderscoresInNumericLiterals Number 10242 should separate every third digit with an underscore 3 117
UseUnderscoresInNumericLiterals Number 10272 should separate every third digit with an underscore 3 118
UseUnderscoresInNumericLiterals Number 10274 should separate every third digit with an underscore 3 118
UseUnderscoresInNumericLiterals Number 16384 should separate every third digit with an underscore 3 150
UseUnderscoresInNumericLiterals Number 16648 should separate every third digit with an underscore 3 150
UseUnderscoresInNumericLiterals Number 16384 should separate every third digit with an underscore 3 150
UseUnderscoresInNumericLiterals Number 16640 should separate every third digit with an underscore 3 150
UseUnderscoresInNumericLiterals Number 16640 should separate every third digit with an underscore 3 151
UseUnderscoresInNumericLiterals Number 16392 should separate every third digit with an underscore 3 151
UseUnderscoresInNumericLiterals Number 16648 should separate every third digit with an underscore 3 151
UseUnderscoresInNumericLiterals Number 16392 should separate every third digit with an underscore 3 152
UseUnderscoresInNumericLiterals Number 16392 should separate every third digit with an underscore 3 152
UseUnderscoresInNumericLiterals Number 16384 should separate every third digit with an underscore 3 153
UseUnderscoresInNumericLiterals Number 16640 should separate every third digit with an underscore 3 153
UseUnderscoresInNumericLiterals Number 16648 should separate every third digit with an underscore 3 153
UseUnderscoresInNumericLiterals Number 16392 should separate every third digit with an underscore 3 154
UseUnderscoresInNumericLiterals Number 16384 should separate every third digit with an underscore 3 154
UseUnderscoresInNumericLiterals Number 16640 should separate every third digit with an underscore 3 154
UseUnderscoresInNumericLiterals Number 16648 should separate every third digit with an underscore 3 155
UseUnderscoresInNumericLiterals Number 32800 should separate every third digit with an underscore 3 168
UseUnderscoresInNumericLiterals Number 32800 should separate every third digit with an underscore 3 169
UseUnderscoresInNumericLiterals Number 32768 should separate every third digit with an underscore 3 169
UseUnderscoresInNumericLiterals Number 32768 should separate every third digit with an underscore 3 170
UseUnderscoresInNumericLiterals Number 32768 should separate every third digit with an underscore 3 171
UseUnderscoresInNumericLiterals Number 32800 should separate every third digit with an underscore 3 171
UseUnderscoresInNumericLiterals Number 32800 should separate every third digit with an underscore 3 173
UseUnderscoresInNumericLiterals Number 32768 should separate every third digit with an underscore 3 174
ShortVariable Avoid variables with short names like t 3 179
UseUnderscoresInNumericLiterals Number 65535 should separate every third digit with an underscore 3 203
ShortVariable Avoid variables with short names like b 3 215
ShortVariable Avoid variables with short names like b 3 270
ShortVariable Avoid variables with short names like i 3 274
ShortVariable Avoid variables with short names like y 3 275
ShortVariable Avoid variables with short names like u 3 276
ShortVariable Avoid variables with short names like j 3 278
ShortVariable Avoid variables with short names like c 3 279
ShortVariable Avoid variables with short names like el 3 326
ShortVariable Avoid variables with short names like r 3 326
ShortVariable Avoid variables with short names like s 3 326
ShortVariable Avoid variables with short names like e0 3 326
ShortVariable Avoid variables with short names like e1 3 326
ShortVariable Avoid variables with short names like v 3 327
ShortVariable Avoid variables with short names like u 3 328
ShortVariable Avoid variables with short names like t 3 331
ShortVariable Avoid variables with short names like c 3 341
ShortVariable Avoid variables with short names like d 3 342
ShortVariable Avoid variables with short names like j 3 360
ShortVariable Avoid variables with short names like s 3 371
ShortVariable Avoid variables with short names like t 3 374
ShortVariable Avoid variables with short names like b 3 385
ShortVariable Avoid variables with short names like a 3 393
ShortVariable Avoid variables with short names like n 3 393
ShortVariable Avoid variables with short names like m 3 393
ShortVariable Avoid variables with short names like t 3 394
ShortVariable Avoid variables with short names like b 3 398
ShortVariable Avoid variables with short names like a 3 405
ShortVariable Avoid variables with short names like b 3 405
ShortVariable Avoid variables with short names like n 3 405
ShortVariable Avoid variables with short names like m 3 405
ShortVariable Avoid variables with short names like t 3 406
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 419

org/apache/commons/codec/digest/XXHash32.java

Rule Violation Priority Line
UseUnderscoresInNumericLiterals Number 2654435761L should separate every third digit with an underscore 3 43
UseUnderscoresInNumericLiterals Number 2246822519L should separate every third digit with an underscore 3 44
UseUnderscoresInNumericLiterals Number 3266489917L should separate every third digit with an underscore 3 45
UseUnderscoresInNumericLiterals Number 668265263 should separate every third digit with an underscore 3 46
UseUnderscoresInNumericLiterals Number 374761393 should separate every third digit with an underscore 3 47
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 62
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 63
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 66
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 68
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 69
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 71
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 74
ShortVariable Avoid variables with short names like b 3 132
ShortVariable Avoid variables with short names like s0 3 134
ShortVariable Avoid variables with short names like s1 3 135
ShortVariable Avoid variables with short names like s2 3 136
ShortVariable Avoid variables with short names like s3 3 137
ShortVariable Avoid variables with short names like b 3 161
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 163
ShortVariable Avoid variables with short names like b 3 202

org/apache/commons/codec/language/AbstractCaverphone.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 39

org/apache/commons/codec/language/Caverphone.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 45

org/apache/commons/codec/language/Caverphone1.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 41
CallSuperInConstructor It is a good practice to call super() in a constructor 3 41
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 56

org/apache/commons/codec/language/Caverphone2.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 41
CallSuperInConstructor It is a good practice to call super() in a constructor 3 41
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 56

org/apache/commons/codec/language/ColognePhonetic.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on nested class 'CologneBuffer' 3 190
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'CologneBuffer(char[])' 3 196
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'CologneBuffer(int)' 3 201
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'CologneInputBuffer(char[])' 3 224
ShortVariable Avoid variables with short names like ch 3 244
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'CologneOutputBuffer(int)' 3 254
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 281
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 282
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 283
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 284
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 285
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 286
ShortVariable Avoid variables with short names like SZ 3 288
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 288
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 290
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 292
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 294
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 302
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 311
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 328
ConfusingTernary Avoid if (x != y) ..; else ..; 3 342346

org/apache/commons/codec/language/DaitchMokotoffSoundex.java

Rule Violation Priority Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 99
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 102
ShortClassName Avoid short class names like Rule 4 155
LongVariable Avoid excessively long variable names like replacementAtStart 3 158
LongVariable Avoid excessively long variable names like replacementBeforeVowel 3 159
LongVariable Avoid excessively long variable names like replacementDefault 3 160
LongVariable Avoid excessively long variable names like replacementAtStart 3 162
LongVariable Avoid excessively long variable names like replacementBeforeVowel 3 162
LongVariable Avoid excessively long variable names like replacementDefault 3 163
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 176
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 182
ShortVariable Avoid variables with short names like ch 3 188
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 206
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 208
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 210
LongVariable Avoid excessively long variable names like MULTILINE_COMMENT_END 3 212
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 212
LongVariable Avoid excessively long variable names like MULTILINE_COMMENT_START 3 214
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 214
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 217
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 220
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 223
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 226
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 228
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 230
LongVariable Avoid excessively long variable names like inMultilineComment 3 243
ShortVariable Avoid variables with short names like r 3 291
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 314
ShortVariable Avoid variables with short names like sb 3 348
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 402
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 446
ShortVariable Avoid variables with short names like ch 3 453

org/apache/commons/codec/language/DoubleMetaphone.java

Rule Violation Priority Line
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 183
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 188
LongVariable Avoid excessively long variable names like L_R_N_M_B_H_F_V_W_SPACE 3 190
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 190
LongVariable Avoid excessively long variable names like ES_EP_EB_EL_EY_IB_IL_IN_IE_EI_ER 3 191
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 191
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 192
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 220
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 225
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 238
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 248
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 252
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 262
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 265
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 268
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 271
ShortVariable Avoid variables with short names like c 3 273
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 283
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 287
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 309
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 321
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 347
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 521
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 579
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 584
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 589
ConfusingTernary Avoid if (x != y) ..; else ..; 3 636641
ShortVariable Avoid variables with short names like ch 3 1043

org/apache/commons/codec/language/MatchRatingApproachEncoder.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 68
CommentDefaultAccessModifier Missing commented default access modifier on method 'cleanName(String)' 3 85
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 128
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 136
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 145
CommentDefaultAccessModifier Missing commented default access modifier on method 'getFirst3Last3(String)' 3 166
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 172
CommentDefaultAccessModifier Missing commented default access modifier on method 'getMinRating(int)' 3 190
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 221
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 224
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 227
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 230
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 254
CommentDefaultAccessModifier Missing commented default access modifier on method 'isVowel(String)' 3 284
CommentDefaultAccessModifier Missing commented default access modifier on method 'leftToRightThenRightToLeftProcessing(String, String)' 3 302
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 345
CommentDefaultAccessModifier Missing commented default access modifier on method 'removeAccents(String)' 3 358
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 360
ShortVariable Avoid variables with short names like sb 3 363
ShortVariable Avoid variables with short names like n 3 364
ShortVariable Avoid variables with short names like c 3 367
CommentDefaultAccessModifier Missing commented default access modifier on method 'removeDoubleConsonants(String)' 3 391
CommentDefaultAccessModifier Missing commented default access modifier on method 'removeVowels(String)' 3 414
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 428

org/apache/commons/codec/language/Metaphone.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 82
ShortVariable Avoid variables with short names like n 3 122
ShortVariable Avoid variables with short names like c 3 137
ShortVariable Avoid variables with short names like c 3 145
PrematureDeclaration Declaration of 'hard' can be moved closer to its usages 3 168
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 171
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 175
ShortVariable Avoid variables with short names like n 3 221

org/apache/commons/codec/language/Nysiis.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like c 3 102
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 123
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 128
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 136
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 138
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 140
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 143
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 145
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 152
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 157
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 162
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 167
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 174
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 245
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 252

org/apache/commons/codec/language/RefinedSoundex.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like US_ENGLISH_MAPPING_STRING 3 51
LongVariable Avoid excessively long variable names like US_ENGLISH_MAPPING 3 58
ShortVariable Avoid variables with short names like s1 3 128
ShortVariable Avoid variables with short names like s2 3 128
CommentDefaultAccessModifier Missing commented default access modifier on method 'getMappingCode(char)' 3 174
ShortVariable Avoid variables with short names like c 3 174
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 176
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 180
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 194
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 198

org/apache/commons/codec/language/Soundex.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like US_ENGLISH_MAPPING_STRING 3 61
LongVariable Avoid excessively long variable names like US_ENGLISH_MAPPING 3 69
LongVariable Avoid excessively long variable names like US_ENGLISH_SIMPLIFIED 3 93
LongVariable Avoid excessively long variable names like US_ENGLISH_GENEALOGY 3 110
ShortVariable Avoid variables with short names like s1 3 210
ShortVariable Avoid variables with short names like s2 3 210
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 257
ShortVariable Avoid variables with short names like ch 3 272
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 301
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 305
ShortVariable Avoid variables with short names like ch 3 313

org/apache/commons/codec/language/SoundexUtils.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on method 'clean(String)' 3 42
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 44
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 55
CommentDefaultAccessModifier Missing commented default access modifier on method 'difference(StringEncoder, String, String)' 3 86
ShortVariable Avoid variables with short names like s1 3 86
ShortVariable Avoid variables with short names like s2 3 86
CommentDefaultAccessModifier Missing commented default access modifier on method 'differenceEncoded(String, String)' 3 110
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 113
CommentDefaultAccessModifier Missing commented default access modifier on method 'isEmpty(CharSequence)' 3 139
ShortVariable Avoid variables with short names like cs 3 139

org/apache/commons/codec/language/bm/BeiderMorseEncoder.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 93
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 108

org/apache/commons/codec/language/bm/Lang.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Lang 4 77
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 102
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 104
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 106
LongVariable Avoid excessively long variable names like languageRulesResourceName 3 138
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 186
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 188
ShortVariable Avoid variables with short names like ls 3 203
ShortVariable Avoid variables with short names like ls 3 226

org/apache/commons/codec/language/bm/Languages.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3 86
CommentDefaultAccessModifier Missing commented default access modifier on method 'merge(LanguageSet)' 3 119
CallSuperInConstructor It is a good practice to call super() in a constructor 3 136
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 172
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 175
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 186
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 189
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `someLanguages.languages::contains` 3 192
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 205
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 207
LongVariable Avoid excessively long variable names like languagesResourceName 3 313
ShortVariable Avoid variables with short names like ls 3 315
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 339

org/apache/commons/codec/language/bm/PhoneticEngine.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on nested class 'PhonemeBuilder' 3 65
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 79
ShortVariable Avoid variables with short names like i 3 169
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'RulesApplication(Map<String, List<Rule>>, CharSequence, PhonemeBuilder, int, int)' 3 173
ShortVariable Avoid variables with short names like i 3 173
LongVariable Avoid excessively long variable names like DEFAULT_MAX_PHONEMES 3 227
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 227
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 229
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 231
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 258
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 260
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 262
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 264
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 266
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 318
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 394
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 402
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 441

org/apache/commons/codec/language/bm/ResourceConstants.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on field 'CMT' 3 33
CommentDefaultAccessModifier Missing commented default access modifier on field 'ENCODING' 3 34
CommentDefaultAccessModifier Missing commented default access modifier on field 'EXT_CMT_END' 3 35
CommentDefaultAccessModifier Missing commented default access modifier on field 'EXT_CMT_START' 3 36
CommentDefaultAccessModifier Missing commented default access modifier on field 'SPACES' 3 37

org/apache/commons/codec/language/bm/Rule.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Rule 4 81
ShortVariable Avoid variables with short names like c 3 98
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 277
LongVariable Avoid excessively long variable names like ALL_STRINGS_RMATCHER 3 282
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 282
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 290
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 292
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 293
LongVariable Avoid excessively long variable names like HASH_INCLUDE_LENGTH 3 294
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 294
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 295
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 296
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 297
ShortVariable Avoid variables with short names like rt 3 330
ShortVariable Avoid variables with short names like rt 3 335
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 350
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 354
ShortVariable Avoid variables with short names like rt 3 368
LambdaCanBeMethodReference Lambda expression could be written as a method reference: `allRules::addAll` 3 371
ShortVariable Avoid variables with short names like rt 3 383
ShortVariable Avoid variables with short names like rt 3 396
ShortVariable Avoid variables with short names like rt 3 409
ShortVariable Avoid variables with short names like ph 3 417
ShortVariable Avoid variables with short names like in 3 424
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 426
CommentDefaultAccessModifier Missing commented default access modifier on method 'parsePhonemeExpr(String)' 3 434
ShortVariable Avoid variables with short names like ph 3 434
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 449
LongVariable Avoid excessively long variable names like inMultilineComment 3 457
LongVariable Avoid excessively long variable names like hashIncludeScanner 3 485
ShortVariable Avoid variables with short names like ph 3 498
ShortVariable Avoid variables with short names like r 3 500
ShortVariable Avoid variables with short names like sb 3 507
ConfusingTernary Avoid if (x != y) ..; else ..; 3 541589
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 546
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 548
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 552
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 556
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 560
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 577
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 581
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 585
CommentDefaultAccessModifier Missing commented default access modifier on field 'pattern' 3 592
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 604
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 608
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 624
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 625
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 626
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 627
ShortVariable Avoid variables with short names like i 3 688
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 696
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 701
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 704

org/apache/commons/codec/net/BCodec.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like DECODING_POLICY_DEFAULT 3 55
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 125
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 155
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 163
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 180

org/apache/commons/codec/net/PercentCodec.java

Rule Violation Priority Line
LongVariable Avoid excessively long variable names like alwaysEncodeCharsMin 3 60
LongVariable Avoid excessively long variable names like alwaysEncodeCharsMax 3 60
ShortVariable Avoid variables with short names like c 3 85
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 92
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 105
ShortVariable Avoid variables with short names like b 3 109
ShortVariable Avoid variables with short names like u 3 112
ShortVariable Avoid variables with short names like l 3 113
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 137
ShortVariable Avoid variables with short names like bb 3 149
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 174
LongVariable Avoid excessively long variable names like expectedEncodingBytes 3 176
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 179
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 194
ShortVariable Avoid variables with short names like b 3 205
ShortVariable Avoid variables with short names like c 3 220
ShortVariable Avoid variables with short names like b 3 230
LongVariable Avoid excessively long variable names like alwaysEncodeCharsArray 3 248
ShortVariable Avoid variables with short names like c 3 257

org/apache/commons/codec/net/QCodec.java

Rule Violation Priority Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 157
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 187
ShortVariable Avoid variables with short names like b 3 199
ConfusingTernary Avoid if (x != y) ..; else ..; 3 200204
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 206
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 214
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 239
ShortVariable Avoid variables with short names like b 3 316

org/apache/commons/codec/net/QuotedPrintableCodec.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like CR 3 83
ShortVariable Avoid variables with short names like LF 3 85
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 126
ShortVariable Avoid variables with short names like b 3 130
ShortVariable Avoid variables with short names like u 3 137
ShortVariable Avoid variables with short names like l 3 138
ShortVariable Avoid variables with short names like b 3 162
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 164
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 206
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 216
ShortVariable Avoid variables with short names like b 3 223
ShortVariable Avoid variables with short names like b 3 241
ShortVariable Avoid variables with short names like b 3 261
ShortVariable Avoid variables with short names like b 3 284
ShortVariable Avoid variables with short names like b 3 304
ShortVariable Avoid variables with short names like b 3 318
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 325
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 330
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 427
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 430
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 469
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 490
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 525
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 528
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 574
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 597

org/apache/commons/codec/net/RFC1522Codec.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on constructor 'RFC1522Codec(Charset)' 3 60
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 81
ShortVariable Avoid variables with short names like to 3 88
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 152
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 186

org/apache/commons/codec/net/URLCodec.java

Rule Violation Priority Line
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 104
ShortVariable Avoid variables with short names like b 3 108
ShortVariable Avoid variables with short names like u 3 113
ShortVariable Avoid variables with short names like l 3 114
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 137
ShortVariable Avoid variables with short names like b 3 145
FieldDeclarationsShouldBeAtStartOfClass Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 3 171
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 218
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 221
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 243
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 269
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 298
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 301
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 323
OnlyOneReturn A method should have only one exit point, and that should be the last statement in the method 3 345

org/apache/commons/codec/net/Utils.java

Rule Violation Priority Line
CommentDefaultAccessModifier Missing commented default access modifier on method 'digit16(byte)' 3 45
ShortVariable Avoid variables with short names like b 3 45
ShortVariable Avoid variables with short names like i 3 46
CommentDefaultAccessModifier Missing commented default access modifier on method 'hexChar(int)' 3 59
ShortVariable Avoid variables with short names like b 3 59