PMD Results
The following document contains the results of PMD 6.55.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]*' |
270 |
Priority 3
org/apache/commons/codec/CharEncoding.java
Rule |
Violation |
Line |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
128–130 |
org/apache/commons/codec/Charsets.java
Rule |
Violation |
Line |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
169–171 |
org/apache/commons/codec/DecoderException.java
Rule |
Violation |
Line |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
39–40 |
org/apache/commons/codec/EncoderException.java
Rule |
Violation |
Line |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
40–41 |
org/apache/commons/codec/Resources.java
Rule |
Violation |
Line |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
49–51 |
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 |
46 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK |
47 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK |
48 |
LongVariable |
Avoid excessively long variable names like UPPER_CASE_DECODE_TABLE |
55 |
LongVariable |
Avoid excessively long variable names like UPPER_CASE_ENCODE_TABLE |
70 |
LongVariable |
Avoid excessively long variable names like LOWER_CASE_DECODE_TABLE |
81 |
LongVariable |
Avoid excessively long variable names like LOWER_CASE_ENCODE_TABLE |
97 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the decode method if you want a default access modifier |
150–199 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
156 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
160 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the encode method if you want a default access modifier |
215–240 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
217 |
org/apache/commons/codec/binary/Base32.java
Rule |
Violation |
Line |
LongVariable |
Avoid excessively long variable names like BITS_PER_ENCODED_BYTE |
50 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK |
51 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK |
52 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the decode method if you want a default access modifier |
348–441 |
ShortVariable |
Avoid variables with short names like b |
358 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the encode method if you want a default access modifier |
455–549 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
459 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
469 |
ShortVariable |
Avoid variables with short names like b |
526 |
org/apache/commons/codec/binary/Base64.java
Rule |
Violation |
Line |
LongVariable |
Avoid excessively long variable names like BITS_PER_ENCODED_BYTE |
63 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK |
64 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK |
65 |
LongVariable |
Avoid excessively long variable names like STANDARD_ENCODE_TABLE |
75 |
LongVariable |
Avoid excessively long variable names like URL_SAFE_ENCODE_TABLE |
88 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
242 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
366 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the toIntegerBytes method if you want a default access modifier |
393–415 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
400 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
422 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
425 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
430 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
436 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
442 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the decode method if you want a default access modifier |
643–700 |
ShortVariable |
Avoid variables with short names like b |
652 |
ShortVariable |
Avoid variables with short names like in |
724 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the encode method if you want a default access modifier |
724–793 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
726 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
736 |
ShortVariable |
Avoid variables with short names like b |
774 |
org/apache/commons/codec/binary/BaseNCodec.java
Rule |
Violation |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the Context nested class if you want a default access modifier |
61–120 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the ibitWorkArea field if you want a default access modifier |
67 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the lbitWorkArea field if you want a default access modifier |
73 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the buffer field if you want a default access modifier |
78 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the pos field if you want a default access modifier |
83 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the readPos field if you want a default access modifier |
88 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the eof field if you want a default access modifier |
94 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the currentLinePos field if you want a default access modifier |
100 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the modulus field if you want a default access modifier |
106 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
127 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the EOF field if you want a default access modifier |
127 |
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 |
LongVariable |
Avoid excessively long variable names like DEFAULT_BUFFER_RESIZE_FACTOR |
153 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
153 |
LongVariable |
Avoid excessively long variable names like DEFAULT_BUFFER_SIZE |
159 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
159 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
171 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
174 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
179 |
LongVariable |
Avoid excessively long variable names like DECODING_POLICY_DEFAULT |
185 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
185 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
192 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the CHUNK_SEPARATOR field if you want a default access modifier |
192 |
ShortVariable |
Avoid variables with short names like b |
261 |
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. |
273 |
LongVariable |
Avoid excessively long variable names like unencodedBlockSize |
276 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
276 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
279 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
286 |
LongVariable |
Avoid excessively long variable names like chunkSeparatorLength |
291 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
291 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
312 |
LongVariable |
Avoid excessively long variable names like unencodedBlockSize |
323 |
LongVariable |
Avoid excessively long variable names like chunkSeparatorLength |
324 |
LongVariable |
Avoid excessively long variable names like unencodedBlockSize |
338 |
LongVariable |
Avoid excessively long variable names like chunkSeparatorLength |
339 |
LongVariable |
Avoid excessively long variable names like unencodedBlockSize |
355 |
LongVariable |
Avoid excessively long variable names like chunkSeparatorLength |
356 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the available method if you want a default access modifier |
373–375 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
388 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
392 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
408 |
ShortVariable |
Avoid variables with short names like i |
419 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the decode method if you want a default access modifier |
419 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
435 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
464 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
484 |
ShortVariable |
Avoid variables with short names like i |
495 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the encode method if you want a default access modifier |
495 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
556 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the hasData method if you want a default access modifier |
611–613 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
639 |
ShortVariable |
Avoid variables with short names like b |
691 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the readResults method if you want a default access modifier |
691–706 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
703 |
org/apache/commons/codec/binary/BaseNCodecInputStream.java
Rule |
Violation |
Line |
ShortVariable |
Avoid variables with short names like r |
127 |
ShortVariable |
Avoid variables with short names like b |
132 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
133 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
167 |
ShortVariable |
Avoid variables with short names like c |
191 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
201 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
201 |
ShortVariable |
Avoid variables with short names like n |
228 |
ShortVariable |
Avoid variables with short names like b |
234 |
org/apache/commons/codec/binary/BaseNCodecOutputStream.java
Rule |
Violation |
Line |
ShortVariable |
Avoid variables with short names like c |
120 |
ShortVariable |
Avoid variables with short names like i |
192 |
org/apache/commons/codec/binary/BinaryCodec.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
35–299 |
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 |
To avoid mistakes add a comment at the beginning of the isEmpty method if you want a default access modifier |
135–137 |
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 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
240 |
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 |
246 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
295 |
org/apache/commons/codec/binary/CharSequenceUtils.java
Rule |
Violation |
Line |
ShortVariable |
Avoid variables with short names like cs |
54 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the regionMatches method if you want a default access modifier |
54–83 |
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 |
64 |
ShortVariable |
Avoid variables with short names like c2 |
65 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
72 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
78 |
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 |
107 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
349 |
ShortVariable |
Avoid variables with short names like ch |
366 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
374 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
453 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
456 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
459 |
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 |
72 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
75 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
78 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
94 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
169 |
ShortVariable |
Avoid variables with short names like e |
269 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
310 |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
421–423 |
org/apache/commons/codec/digest/Blake3.java
Rule |
Violation |
Line |
ShortVariable |
Avoid variables with short names like in |
165 |
LongVariable |
Avoid excessively long variable names like parentNodesRemaining |
190 |
ShortVariable |
Avoid variables with short names like cv |
202 |
LongVariable |
Avoid excessively long variable names like inputChainingValue |
217 |
LongVariable |
Avoid excessively long variable names like inputChainingValue |
224 |
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. |
260 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
262 |
LongVariable |
Avoid excessively long variable names like CHAINING_VALUE_INTS |
263 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
263 |
ShortVariable |
Avoid variables with short names like IV |
267 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
267–268 |
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 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
275 |
LongVariable |
Avoid excessively long variable names like DERIVE_KEY_CONTEXT |
277 |
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 DERIVE_KEY_MATERIAL |
279 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
279 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
284–292 |
ShortMethodName |
Avoid using short method names |
332–342 |
ShortVariable |
Avoid variables with short names like a |
333 |
ShortVariable |
Avoid variables with short names like b |
333 |
ShortVariable |
Avoid variables with short names like c |
333 |
ShortVariable |
Avoid variables with short names like d |
333 |
ShortVariable |
Avoid variables with short names like mx |
333 |
ShortVariable |
Avoid variables with short names like my |
333 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
455 |
ShortVariable |
Avoid variables with short names like in |
523 |
ShortVariable |
Avoid variables with short names like in |
538 |
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 |
75 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
78 |
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 |
84 |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
180–182 |
org/apache/commons/codec/digest/DigestUtils.java
Rule |
Violation |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the BUFFER_SIZE field if you want a default access modifier |
63 |
LongVariable |
Avoid excessively long variable names like defaultMessageDigest |
174 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
176 |
LongVariable |
Avoid excessively long variable names like messageDigestAlgorithm |
353 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'inputStream': resource specifications are implicitly final |
1280 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'inputStream': resource specifications are implicitly final |
1338 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
1373 |
org/apache/commons/codec/digest/HmacUtils.java
Rule |
Violation |
Line |
LongVariable |
Avoid excessively long variable names like STREAM_BUFFER_LENGTH |
60 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
790 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
806 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
875 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'stream': resource specifications are implicitly final |
976 |
org/apache/commons/codec/digest/MurmurHash3.java
Rule |
Violation |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the finalise method if you want a default access modifier |
87–111 |
ShortVariable |
Avoid variables with short names like k1 |
92 |
ShortVariable |
Avoid variables with short names like b1 |
139 |
ShortVariable |
Avoid variables with short names like b2 |
139 |
ShortVariable |
Avoid variables with short names like b3 |
139 |
ShortVariable |
Avoid variables with short names like b4 |
139 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
144 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
147 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
150 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
156 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
168 |
ShortVariable |
Avoid variables with short names like k |
195 |
ShortVariable |
Avoid variables with short names like k |
224 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the finalise method if you want a default access modifier |
257–278 |
ShortVariable |
Avoid variables with short names like k1 |
259 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
298 |
UseUnderscoresInNumericLiterals |
Number 2862933555777941757L should separate every third digit with an underscore |
298 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
303 |
UseUnderscoresInNumericLiterals |
Number 104729 should separate every third digit with an underscore |
303 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
305 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
306 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
307 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
308 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
310 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
311 |
ShortVariable |
Avoid variables with short names like C1 |
313 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
313 |
ShortVariable |
Avoid variables with short names like C2 |
314 |
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 R1 |
315 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
315 |
ShortVariable |
Avoid variables with short names like R2 |
316 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
316 |
ShortVariable |
Avoid variables with short names like R3 |
317 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
317 |
ShortVariable |
Avoid variables with short names like M |
318 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
318 |
ShortVariable |
Avoid variables with short names like N1 |
320 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
320 |
ShortVariable |
Avoid variables with short names like N2 |
322 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
322 |
ShortVariable |
Avoid variables with short names like h1 |
516 |
ShortVariable |
Avoid variables with short names like h2 |
517 |
ShortVariable |
Avoid variables with short names like k1 |
523 |
ShortVariable |
Avoid variables with short names like k2 |
524 |
ShortVariable |
Avoid variables with short names like k1 |
546 |
ShortVariable |
Avoid variables with short names like k2 |
547 |
ShortVariable |
Avoid variables with short names like k |
706 |
ShortVariable |
Avoid variables with short names like k1 |
715 |
ShortVariable |
Avoid variables with short names like r0 |
773 |
ShortVariable |
Avoid variables with short names like r0 |
824 |
ShortVariable |
Avoid variables with short names like r1 |
825 |
ShortVariable |
Avoid variables with short names like k |
906 |
ShortVariable |
Avoid variables with short names like k1 |
912 |
ShortVariable |
Avoid variables with short names like k |
1036 |
ShortVariable |
Avoid variables with short names like k1 |
1047 |
ShortVariable |
Avoid variables with short names like k1 |
1106 |
ShortVariable |
Avoid variables with short names like k |
1149 |
ShortVariable |
Avoid variables with short names like k1 |
1193 |
ShortVariable |
Avoid variables with short names like k |
1213 |
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 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
167 |
ShortVariable |
Avoid variables with short names like b |
202 |
org/apache/commons/codec/language/AbstractCaverphone.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
34–72 |
org/apache/commons/codec/language/Caverphone.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
35–97 |
org/apache/commons/codec/language/Caverphone1.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
32–126 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
47 |
org/apache/commons/codec/language/Caverphone2.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
32–130 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
47 |
org/apache/commons/codec/language/ColognePhonetic.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
183–457 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the CologneBuffer nested class if you want a default access modifier |
190–220 |
ShortVariable |
Avoid variables with short names like ch |
243 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
279 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
280 |
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 |
ShortVariable |
Avoid variables with short names like SZ |
286 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
286 |
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 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
300 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
319 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
333–337 |
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 |
101 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
104 |
LongVariable |
Avoid excessively long variable names like replacementAtStart |
162 |
LongVariable |
Avoid excessively long variable names like replacementBeforeVowel |
163 |
LongVariable |
Avoid excessively long variable names like replacementDefault |
164 |
LongVariable |
Avoid excessively long variable names like replacementAtStart |
166 |
LongVariable |
Avoid excessively long variable names like replacementBeforeVowel |
166 |
LongVariable |
Avoid excessively long variable names like replacementDefault |
167 |
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 |
186 |
ShortVariable |
Avoid variables with short names like ch |
192 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
207 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
209 |
LongVariable |
Avoid excessively long variable names like MULTILINE_COMMENT_END |
211 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
211 |
LongVariable |
Avoid excessively long variable names like MULTILINE_COMMENT_START |
213 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
213 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
216 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
219 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
222 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
225 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'scanner': resource specifications are implicitly final |
228 |
LongVariable |
Avoid excessively long variable names like inMultilineComment |
239 |
ShortVariable |
Avoid variables with short names like r |
298 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
324 |
ShortVariable |
Avoid variables with short names like sb |
358 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
415 |
ShortVariable |
Avoid variables with short names like sb |
445 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
468 |
ShortVariable |
Avoid variables with short names like ch |
478 |
org/apache/commons/codec/language/DoubleMetaphone.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
37–992 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
119 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
123–124 |
LongVariable |
Avoid excessively long variable names like L_R_N_M_B_H_F_V_W_SPACE |
125 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
125–126 |
LongVariable |
Avoid excessively long variable names like ES_EP_EB_EL_EY_IB_IL_IN_IE_EI_ER |
127 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
127–128 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
130–131 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
156 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
165 |
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 |
179 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
189 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
192 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
195 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
198 |
ShortVariable |
Avoid variables with short names like c |
200 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
210 |
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 |
236 |
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 |
276 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
449 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
507 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
512 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
517 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
565–570 |
ShortVariable |
Avoid variables with short names like ch |
979 |
org/apache/commons/codec/language/MatchRatingApproachEncoder.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
33–425 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the cleanName method if you want a default access modifier |
78–88 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
121 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
129 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
138 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the getFirst3Last3 method if you want a default access modifier |
159–168 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
165 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the getMinRating method if you want a default access modifier |
183–199 |
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 |
217 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
220 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
223 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
247 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the isVowel method if you want a default access modifier |
277–280 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the leftToRightThenRightToLeftProcessing method if you want a default access modifier |
295–341 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
338 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the removeAccents method if you want a default access modifier |
351–370 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
353 |
ShortVariable |
Avoid variables with short names like sb |
356 |
ShortVariable |
Avoid variables with short names like n |
357 |
ShortVariable |
Avoid variables with short names like c |
360 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the removeDoubleConsonants method if you want a default access modifier |
384–393 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the removeVowels method if you want a default access modifier |
407–424 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
421 |
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 |
252 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
259 |
org/apache/commons/codec/language/RefinedSoundex.java
Rule |
Violation |
Line |
LongVariable |
Avoid excessively long variable names like US_ENGLISH_MAPPING_STRING |
49 |
LongVariable |
Avoid excessively long variable names like US_ENGLISH_MAPPING |
56 |
ShortVariable |
Avoid variables with short names like s1 |
126 |
ShortVariable |
Avoid variables with short names like s2 |
126 |
ShortVariable |
Avoid variables with short names like c |
172 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the getMappingCode method if you want a default access modifier |
172–181 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
174 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
178 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
192 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
196 |
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 |
216 |
ShortVariable |
Avoid variables with short names like s2 |
216 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
269 |
ShortVariable |
Avoid variables with short names like ch |
284 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
315 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
319 |
ShortVariable |
Avoid variables with short names like ch |
327 |
org/apache/commons/codec/language/SoundexUtils.java
Rule |
Violation |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the clean method if you want a default access modifier |
40–56 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
42 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
53 |
ShortVariable |
Avoid variables with short names like s1 |
84 |
ShortVariable |
Avoid variables with short names like s2 |
84 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the difference method if you want a default access modifier |
84–86 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the differenceEncoded method if you want a default access modifier |
108–121 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
111 |
ShortVariable |
Avoid variables with short names like cs |
137 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the isEmpty method if you want a default access modifier |
137–139 |
org/apache/commons/codec/language/bm/BeiderMorseEncoder.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
82–187 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
100 |
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 |
LongVariable |
Avoid excessively long variable names like languageRulesResourceName |
136 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'scanner': resource specifications are implicitly final |
138–139 |
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. |
186 |
ShortVariable |
Avoid variables with short names like ls |
201 |
ShortVariable |
Avoid variables with short names like ls |
226 |
org/apache/commons/codec/language/bm/Languages.java
Rule |
Violation |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the merge method if you want a default access modifier |
85 |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
96–98 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
127 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
130 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
141 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
144 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
157 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
159 |
LongVariable |
Avoid excessively long variable names like languagesResourceName |
251 |
ShortVariable |
Avoid variables with short names like ls |
253 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'lsScanner': resource specifications are implicitly final |
254–255 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
277 |
org/apache/commons/codec/language/bm/PhoneticEngine.java
Rule |
Violation |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the PhonemeBuilder nested class if you want a default access modifier |
64–149 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
78 |
ShortVariable |
Avoid variables with short names like i |
168 |
ShortVariable |
Avoid variables with short names like i |
173 |
LongVariable |
Avoid excessively long variable names like DEFAULT_MAX_PHONEMES |
226 |
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. |
255 |
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. |
259 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
261 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
263 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
316 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
378 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
380 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
382 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
392 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
400 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
439 |
org/apache/commons/codec/language/bm/ResourceConstants.java
Rule |
Violation |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the CMT field if you want a default access modifier |
31 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the ENCODING field if you want a default access modifier |
32 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the EXT_CMT_END field if you want a default access modifier |
33 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the EXT_CMT_START field if you want a default access modifier |
34 |
org/apache/commons/codec/language/bm/Rule.java
Rule |
Violation |
Line |
ShortVariable |
Avoid variables with short names like c |
96 |
LongVariable |
Avoid excessively long variable names like ALL_STRINGS_RMATCHER |
200 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
200 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
202 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
204 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
206 |
LongVariable |
Avoid excessively long variable names like HASH_INCLUDE_LENGTH |
208 |
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–211 |
ShortVariable |
Avoid variables with short names like rs |
219 |
ShortVariable |
Avoid variables with short names like ls |
221 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'scanner': resource specifications are implicitly final |
223 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'scanner': resource specifications are implicitly final |
230 |
ShortVariable |
Avoid variables with short names like rt |
246 |
ShortVariable |
Avoid variables with short names like rt |
252 |
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 |
272 |
ShortVariable |
Avoid variables with short names like rt |
289 |
ShortVariable |
Avoid variables with short names like rt |
308 |
ShortVariable |
Avoid variables with short names like rt |
324 |
ShortVariable |
Avoid variables with short names like rt |
342 |
ShortVariable |
Avoid variables with short names like ph |
354 |
ShortVariable |
Avoid variables with short names like in |
361 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
364 |
ShortVariable |
Avoid variables with short names like ph |
369 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
384 |
LongVariable |
Avoid excessively long variable names like inMultilineComment |
393 |
LongVariable |
Avoid excessively long variable names like hashIncludeScanner |
426 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'hashIncludeScanner': resource specifications are implicitly final |
426 |
ShortVariable |
Avoid variables with short names like ph |
440 |
ShortVariable |
Avoid variables with short names like r |
442 |
ShortVariable |
Avoid variables with short names like sb |
448 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
486–537 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
491 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
493 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
497 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
501 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
505 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
524 |
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 |
532–533 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the pattern field if you want a default access modifier |
540 |
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 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
574 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
576 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
578 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
580 |
ShortVariable |
Avoid variables with short names like i |
648 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
658 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
664 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
667 |
org/apache/commons/codec/net/BCodec.java
Rule |
Violation |
Line |
LongVariable |
Avoid excessively long variable names like DECODING_POLICY_DEFAULT |
54 |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
97–100 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
130 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
153 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
165 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
173 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
190 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
212 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
231 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
249 |
org/apache/commons/codec/net/PercentCodec.java
Rule |
Violation |
Line |
LongVariable |
Avoid excessively long variable names like alwaysEncodeCharsMax |
61 |
LongVariable |
Avoid excessively long variable names like alwaysEncodeCharsMin |
61 |
ShortVariable |
Avoid variables with short names like c |
86 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
93 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
106 |
ShortVariable |
Avoid variables with short names like b |
111 |
ShortVariable |
Avoid variables with short names like u |
114 |
ShortVariable |
Avoid variables with short names like l |
115 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
139 |
ShortVariable |
Avoid variables with short names like bb |
151 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
176 |
LongVariable |
Avoid excessively long variable names like expectedEncodingBytes |
179 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
182 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
197 |
ShortVariable |
Avoid variables with short names like b |
208 |
ShortVariable |
Avoid variables with short names like c |
223 |
ShortVariable |
Avoid variables with short names like b |
233 |
LongVariable |
Avoid excessively long variable names like alwaysEncodeCharsArray |
251 |
ShortVariable |
Avoid variables with short names like c |
260 |
org/apache/commons/codec/net/QCodec.java
Rule |
Violation |
Line |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
129–131 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
161 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
184 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
196 |
ShortVariable |
Avoid variables with short names like b |
208 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
209–213 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
215 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
223 |
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 |
270 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
289 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
307 |
ShortVariable |
Avoid variables with short names like b |
355 |
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 |
165 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
207 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
217 |
ShortVariable |
Avoid variables with short names like b |
224 |
ShortVariable |
Avoid variables with short names like b |
242 |
ShortVariable |
Avoid variables with short names like b |
262 |
ShortVariable |
Avoid variables with short names like b |
285 |
UnnecessaryModifier |
Unnecessary modifier 'final' on method 'encodeQuotedPrintable': private methods cannot be overridden |
285–292 |
ShortVariable |
Avoid variables with short names like b |
305 |
ShortVariable |
Avoid variables with short names like b |
319 |
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. |
331 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
429 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
432 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
473 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
495 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
530 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
533 |
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 |
604 |
org/apache/commons/codec/net/RFC1522Codec.java
Rule |
Violation |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
43–188 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
72 |
ShortVariable |
Avoid variables with short names like to |
79 |
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 |
177 |
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 |
Priority 4
org/apache/commons/codec/binary/Hex.java
Rule |
Violation |
Line |
ShortClassName |
Avoid short class names like Hex |
38–567 |
org/apache/commons/codec/digest/B64.java
Rule |
Violation |
Line |
ShortClassName |
Avoid short class names like B64 |
31–99 |
org/apache/commons/codec/language/DaitchMokotoffSoundex.java
Rule |
Violation |
Line |
ShortClassName |
Avoid short class names like Rule |
160–205 |
org/apache/commons/codec/language/bm/Lang.java
Rule |
Violation |
Line |
ShortClassName |
Avoid short class names like Lang |
77–229 |
org/apache/commons/codec/language/bm/Rule.java
Rule |
Violation |
Line |
ShortClassName |
Avoid short class names like Rule |
85–671 |
Files
org/apache/commons/codec/CharEncoding.java
Rule |
Violation |
Priority |
Line |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
3 |
128–130 |
org/apache/commons/codec/Charsets.java
Rule |
Violation |
Priority |
Line |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
3 |
169–171 |
org/apache/commons/codec/DecoderException.java
Rule |
Violation |
Priority |
Line |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
3 |
39–40 |
org/apache/commons/codec/EncoderException.java
Rule |
Violation |
Priority |
Line |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
3 |
40–41 |
org/apache/commons/codec/Resources.java
Rule |
Violation |
Priority |
Line |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
3 |
49–51 |
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 |
46 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK |
3 |
47 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK |
3 |
48 |
LongVariable |
Avoid excessively long variable names like UPPER_CASE_DECODE_TABLE |
3 |
55 |
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 |
81 |
LongVariable |
Avoid excessively long variable names like LOWER_CASE_ENCODE_TABLE |
3 |
97 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the decode method if you want a default access modifier |
3 |
150–199 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
156 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
160 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the encode method if you want a default access modifier |
3 |
215–240 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
217 |
org/apache/commons/codec/binary/Base32.java
Rule |
Violation |
Priority |
Line |
LongVariable |
Avoid excessively long variable names like BITS_PER_ENCODED_BYTE |
3 |
50 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK |
3 |
51 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK |
3 |
52 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the decode method if you want a default access modifier |
3 |
348–441 |
ShortVariable |
Avoid variables with short names like b |
3 |
358 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the encode method if you want a default access modifier |
3 |
455–549 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
459 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
469 |
ShortVariable |
Avoid variables with short names like b |
3 |
526 |
org/apache/commons/codec/binary/Base64.java
Rule |
Violation |
Priority |
Line |
LongVariable |
Avoid excessively long variable names like BITS_PER_ENCODED_BYTE |
3 |
63 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_UNENCODED_BLOCK |
3 |
64 |
LongVariable |
Avoid excessively long variable names like BYTES_PER_ENCODED_BLOCK |
3 |
65 |
LongVariable |
Avoid excessively long variable names like STANDARD_ENCODE_TABLE |
3 |
75 |
LongVariable |
Avoid excessively long variable names like URL_SAFE_ENCODE_TABLE |
3 |
88 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
242 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
366 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the toIntegerBytes method if you want a default access modifier |
3 |
393–415 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
400 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
422 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
425 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
430 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
436 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
442 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the decode method if you want a default access modifier |
3 |
643–700 |
ShortVariable |
Avoid variables with short names like b |
3 |
652 |
ShortVariable |
Avoid variables with short names like in |
3 |
724 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the encode method if you want a default access modifier |
3 |
724–793 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
726 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
736 |
ShortVariable |
Avoid variables with short names like b |
3 |
774 |
org/apache/commons/codec/binary/BaseNCodec.java
Rule |
Violation |
Priority |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the Context nested class if you want a default access modifier |
3 |
61–120 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the ibitWorkArea field if you want a default access modifier |
3 |
67 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the lbitWorkArea field if you want a default access modifier |
3 |
73 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the buffer field if you want a default access modifier |
3 |
78 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the pos field if you want a default access modifier |
3 |
83 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the readPos field if you want a default access modifier |
3 |
88 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the eof field if you want a default access modifier |
3 |
94 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the currentLinePos field if you want a default access modifier |
3 |
100 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the modulus field if you want a default access modifier |
3 |
106 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
127 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the EOF field if you want a default access modifier |
3 |
127 |
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 |
LongVariable |
Avoid excessively long variable names like DEFAULT_BUFFER_RESIZE_FACTOR |
3 |
153 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
153 |
LongVariable |
Avoid excessively long variable names like DEFAULT_BUFFER_SIZE |
3 |
159 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
159 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
171 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
174 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
179 |
LongVariable |
Avoid excessively long variable names like DECODING_POLICY_DEFAULT |
3 |
185 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
185 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
192 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the CHUNK_SEPARATOR field if you want a default access modifier |
3 |
192 |
ShortVariable |
Avoid variables with short names like b |
3 |
261 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
270 |
FieldNamingConventions |
The final field name 'PAD' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
270 |
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 unencodedBlockSize |
3 |
276 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
276 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
279 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
286 |
LongVariable |
Avoid excessively long variable names like chunkSeparatorLength |
3 |
291 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
291 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
312 |
LongVariable |
Avoid excessively long variable names like unencodedBlockSize |
3 |
323 |
LongVariable |
Avoid excessively long variable names like chunkSeparatorLength |
3 |
324 |
LongVariable |
Avoid excessively long variable names like unencodedBlockSize |
3 |
338 |
LongVariable |
Avoid excessively long variable names like chunkSeparatorLength |
3 |
339 |
LongVariable |
Avoid excessively long variable names like unencodedBlockSize |
3 |
355 |
LongVariable |
Avoid excessively long variable names like chunkSeparatorLength |
3 |
356 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the available method if you want a default access modifier |
3 |
373–375 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
388 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
392 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
408 |
ShortVariable |
Avoid variables with short names like i |
3 |
419 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the decode method if you want a default access modifier |
3 |
419 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
435 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
464 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
484 |
ShortVariable |
Avoid variables with short names like i |
3 |
495 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the encode method if you want a default access modifier |
3 |
495 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
556 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the hasData method if you want a default access modifier |
3 |
611–613 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
639 |
ShortVariable |
Avoid variables with short names like b |
3 |
691 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the readResults method if you want a default access modifier |
3 |
691–706 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
703 |
org/apache/commons/codec/binary/BaseNCodecInputStream.java
Rule |
Violation |
Priority |
Line |
ShortVariable |
Avoid variables with short names like r |
3 |
127 |
ShortVariable |
Avoid variables with short names like b |
3 |
132 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
133 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
167 |
ShortVariable |
Avoid variables with short names like c |
3 |
191 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
201 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
201 |
ShortVariable |
Avoid variables with short names like n |
3 |
228 |
ShortVariable |
Avoid variables with short names like b |
3 |
234 |
org/apache/commons/codec/binary/BaseNCodecOutputStream.java
Rule |
Violation |
Priority |
Line |
ShortVariable |
Avoid variables with short names like c |
3 |
120 |
ShortVariable |
Avoid variables with short names like i |
3 |
192 |
org/apache/commons/codec/binary/BinaryCodec.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
35–299 |
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 |
To avoid mistakes add a comment at the beginning of the isEmpty method if you want a default access modifier |
3 |
135–137 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
150 |
LocalVariableNamingConventions |
The final local variable name 'l_ascii' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
154 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
181 |
LocalVariableNamingConventions |
The final local variable name 'l_ascii' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
185 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
240 |
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 |
246 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
295 |
org/apache/commons/codec/binary/CharSequenceUtils.java
Rule |
Violation |
Priority |
Line |
ShortVariable |
Avoid variables with short names like cs |
3 |
54 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the regionMatches method if you want a default access modifier |
3 |
54–83 |
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 |
64 |
ShortVariable |
Avoid variables with short names like c2 |
3 |
65 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
72 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
78 |
org/apache/commons/codec/binary/Hex.java
Rule |
Violation |
Priority |
Line |
ShortClassName |
Avoid short class names like Hex |
4 |
38–567 |
LongVariable |
Avoid excessively long variable names like DEFAULT_CHARSET_NAME |
3 |
52 |
ShortVariable |
Avoid variables with short names like f |
3 |
107 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
349 |
ShortVariable |
Avoid variables with short names like ch |
3 |
366 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
374 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
453 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
456 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
459 |
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 |
72 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
75 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
78 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
94 |
MethodNamingConventions |
The static method name 'getBytesIso8859_1' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
144–146 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
169 |
ShortVariable |
Avoid variables with short names like e |
3 |
269 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
310 |
MethodNamingConventions |
The static method name 'newStringIso8859_1' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
331–333 |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
3 |
421–423 |
org/apache/commons/codec/digest/Blake3.java
Rule |
Violation |
Priority |
Line |
ShortVariable |
Avoid variables with short names like in |
3 |
165 |
LongVariable |
Avoid excessively long variable names like parentNodesRemaining |
3 |
190 |
ShortVariable |
Avoid variables with short names like cv |
3 |
202 |
LongVariable |
Avoid excessively long variable names like inputChainingValue |
3 |
217 |
LongVariable |
Avoid excessively long variable names like inputChainingValue |
3 |
224 |
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 |
260 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
262 |
LongVariable |
Avoid excessively long variable names like CHAINING_VALUE_INTS |
3 |
263 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
263 |
ShortVariable |
Avoid variables with short names like IV |
3 |
267 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
267–268 |
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 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
275 |
LongVariable |
Avoid excessively long variable names like DERIVE_KEY_CONTEXT |
3 |
277 |
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 DERIVE_KEY_MATERIAL |
3 |
279 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
279 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
284–292 |
ShortMethodName |
Avoid using short method names |
3 |
332–342 |
ShortVariable |
Avoid variables with short names like a |
3 |
333 |
ShortVariable |
Avoid variables with short names like b |
3 |
333 |
ShortVariable |
Avoid variables with short names like c |
3 |
333 |
ShortVariable |
Avoid variables with short names like d |
3 |
333 |
ShortVariable |
Avoid variables with short names like mx |
3 |
333 |
ShortVariable |
Avoid variables with short names like my |
3 |
333 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
455 |
ShortVariable |
Avoid variables with short names like in |
3 |
523 |
ShortVariable |
Avoid variables with short names like in |
3 |
538 |
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 |
75 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
78 |
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 |
84 |
UnnecessaryConstructor |
Avoid unnecessary constructors - the compiler will generate these for you |
3 |
180–182 |
org/apache/commons/codec/digest/HmacUtils.java
Rule |
Violation |
Priority |
Line |
LongVariable |
Avoid excessively long variable names like STREAM_BUFFER_LENGTH |
3 |
60 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
790 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
806 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
875 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'stream': resource specifications are implicitly final |
3 |
976 |
org/apache/commons/codec/digest/MurmurHash3.java
Rule |
Violation |
Priority |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the finalise method if you want a default access modifier |
3 |
87–111 |
ShortVariable |
Avoid variables with short names like k1 |
3 |
92 |
ShortVariable |
Avoid variables with short names like b1 |
3 |
139 |
ShortVariable |
Avoid variables with short names like b2 |
3 |
139 |
ShortVariable |
Avoid variables with short names like b3 |
3 |
139 |
ShortVariable |
Avoid variables with short names like b4 |
3 |
139 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
144 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
147 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
150 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
156 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
168 |
ShortVariable |
Avoid variables with short names like k |
3 |
195 |
ShortVariable |
Avoid variables with short names like k |
3 |
224 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the finalise method if you want a default access modifier |
3 |
257–278 |
ShortVariable |
Avoid variables with short names like k1 |
3 |
259 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
298 |
UseUnderscoresInNumericLiterals |
Number 2862933555777941757L should separate every third digit with an underscore |
3 |
298 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
303 |
UseUnderscoresInNumericLiterals |
Number 104729 should separate every third digit with an underscore |
3 |
303 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
305 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
306 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
307 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
308 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
310 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
311 |
ShortVariable |
Avoid variables with short names like C1 |
3 |
313 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
313 |
ShortVariable |
Avoid variables with short names like C2 |
3 |
314 |
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 R1 |
3 |
315 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
315 |
ShortVariable |
Avoid variables with short names like R2 |
3 |
316 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
316 |
ShortVariable |
Avoid variables with short names like R3 |
3 |
317 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
317 |
ShortVariable |
Avoid variables with short names like M |
3 |
318 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
318 |
ShortVariable |
Avoid variables with short names like N1 |
3 |
320 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
320 |
ShortVariable |
Avoid variables with short names like N2 |
3 |
322 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
322 |
ShortVariable |
Avoid variables with short names like h1 |
3 |
516 |
ShortVariable |
Avoid variables with short names like h2 |
3 |
517 |
ShortVariable |
Avoid variables with short names like k1 |
3 |
523 |
ShortVariable |
Avoid variables with short names like k2 |
3 |
524 |
ShortVariable |
Avoid variables with short names like k1 |
3 |
546 |
ShortVariable |
Avoid variables with short names like k2 |
3 |
547 |
ShortVariable |
Avoid variables with short names like k |
3 |
706 |
ShortVariable |
Avoid variables with short names like k1 |
3 |
715 |
ShortVariable |
Avoid variables with short names like r0 |
3 |
773 |
ShortVariable |
Avoid variables with short names like r0 |
3 |
824 |
ShortVariable |
Avoid variables with short names like r1 |
3 |
825 |
ShortVariable |
Avoid variables with short names like k |
3 |
906 |
ShortVariable |
Avoid variables with short names like k1 |
3 |
912 |
ShortVariable |
Avoid variables with short names like k |
3 |
1036 |
ShortVariable |
Avoid variables with short names like k1 |
3 |
1047 |
ShortVariable |
Avoid variables with short names like k1 |
3 |
1106 |
ShortVariable |
Avoid variables with short names like k |
3 |
1149 |
ShortVariable |
Avoid variables with short names like k1 |
3 |
1193 |
ShortVariable |
Avoid variables with short names like k |
3 |
1213 |
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 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
167 |
ShortVariable |
Avoid variables with short names like b |
3 |
202 |
org/apache/commons/codec/language/AbstractCaverphone.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
34–72 |
org/apache/commons/codec/language/Caverphone.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
35–97 |
org/apache/commons/codec/language/Caverphone1.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
32–126 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
47 |
org/apache/commons/codec/language/Caverphone2.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
32–130 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
47 |
org/apache/commons/codec/language/ColognePhonetic.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
183–457 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the CologneBuffer nested class if you want a default access modifier |
3 |
190–220 |
ShortVariable |
Avoid variables with short names like ch |
3 |
243 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
279 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
280 |
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 |
ShortVariable |
Avoid variables with short names like SZ |
3 |
286 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
286 |
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 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
300 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
319 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
333–337 |
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 |
101 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
104 |
ShortClassName |
Avoid short class names like Rule |
4 |
160–205 |
LongVariable |
Avoid excessively long variable names like replacementAtStart |
3 |
162 |
LongVariable |
Avoid excessively long variable names like replacementBeforeVowel |
3 |
163 |
LongVariable |
Avoid excessively long variable names like replacementDefault |
3 |
164 |
LongVariable |
Avoid excessively long variable names like replacementAtStart |
3 |
166 |
LongVariable |
Avoid excessively long variable names like replacementBeforeVowel |
3 |
166 |
LongVariable |
Avoid excessively long variable names like replacementDefault |
3 |
167 |
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 |
186 |
ShortVariable |
Avoid variables with short names like ch |
3 |
192 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
207 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
209 |
LongVariable |
Avoid excessively long variable names like MULTILINE_COMMENT_END |
3 |
211 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
211 |
LongVariable |
Avoid excessively long variable names like MULTILINE_COMMENT_START |
3 |
213 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
213 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
216 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
219 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
222 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
225 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'scanner': resource specifications are implicitly final |
3 |
228 |
LongVariable |
Avoid excessively long variable names like inMultilineComment |
3 |
239 |
ShortVariable |
Avoid variables with short names like r |
3 |
298 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
324 |
ShortVariable |
Avoid variables with short names like sb |
3 |
358 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
415 |
ShortVariable |
Avoid variables with short names like sb |
3 |
445 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
468 |
ShortVariable |
Avoid variables with short names like ch |
3 |
478 |
org/apache/commons/codec/language/DoubleMetaphone.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
37–992 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
119 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
123–124 |
LongVariable |
Avoid excessively long variable names like L_R_N_M_B_H_F_V_W_SPACE |
3 |
125 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
125–126 |
LongVariable |
Avoid excessively long variable names like ES_EP_EB_EL_EY_IB_IL_IN_IE_EI_ER |
3 |
127 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
127–128 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
130–131 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
156 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
165 |
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 |
179 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
189 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
192 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
195 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
198 |
ShortVariable |
Avoid variables with short names like c |
3 |
200 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
210 |
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 |
236 |
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 |
276 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
449 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
507 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
512 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
517 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
565–570 |
ShortVariable |
Avoid variables with short names like ch |
3 |
979 |
org/apache/commons/codec/language/MatchRatingApproachEncoder.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
33–425 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the cleanName method if you want a default access modifier |
3 |
78–88 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
121 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
129 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
138 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the getFirst3Last3 method if you want a default access modifier |
3 |
159–168 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
165 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the getMinRating method if you want a default access modifier |
3 |
183–199 |
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 |
217 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
220 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
223 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
247 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the isVowel method if you want a default access modifier |
3 |
277–280 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the leftToRightThenRightToLeftProcessing method if you want a default access modifier |
3 |
295–341 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
338 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the removeAccents method if you want a default access modifier |
3 |
351–370 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
353 |
ShortVariable |
Avoid variables with short names like sb |
3 |
356 |
ShortVariable |
Avoid variables with short names like n |
3 |
357 |
ShortVariable |
Avoid variables with short names like c |
3 |
360 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the removeDoubleConsonants method if you want a default access modifier |
3 |
384–393 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the removeVowels method if you want a default access modifier |
3 |
407–424 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
421 |
org/apache/commons/codec/language/Metaphone.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
55–397 |
ShortVariable |
Avoid variables with short names like n |
3 |
114 |
ShortVariable |
Avoid variables with short names like c |
3 |
130 |
ShortVariable |
Avoid variables with short names like c |
3 |
138 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
161 |
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 |
168 |
ShortVariable |
Avoid variables with short names like n |
3 |
214 |
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 |
252 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
259 |
org/apache/commons/codec/language/RefinedSoundex.java
Rule |
Violation |
Priority |
Line |
LongVariable |
Avoid excessively long variable names like US_ENGLISH_MAPPING_STRING |
3 |
49 |
LongVariable |
Avoid excessively long variable names like US_ENGLISH_MAPPING |
3 |
56 |
ShortVariable |
Avoid variables with short names like s1 |
3 |
126 |
ShortVariable |
Avoid variables with short names like s2 |
3 |
126 |
ShortVariable |
Avoid variables with short names like c |
3 |
172 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the getMappingCode method if you want a default access modifier |
3 |
172–181 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
174 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
178 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
192 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
196 |
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 |
216 |
ShortVariable |
Avoid variables with short names like s2 |
3 |
216 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
269 |
ShortVariable |
Avoid variables with short names like ch |
3 |
284 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
315 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
319 |
ShortVariable |
Avoid variables with short names like ch |
3 |
327 |
org/apache/commons/codec/language/SoundexUtils.java
Rule |
Violation |
Priority |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the clean method if you want a default access modifier |
3 |
40–56 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
42 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
53 |
ShortVariable |
Avoid variables with short names like s1 |
3 |
84 |
ShortVariable |
Avoid variables with short names like s2 |
3 |
84 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the difference method if you want a default access modifier |
3 |
84–86 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the differenceEncoded method if you want a default access modifier |
3 |
108–121 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
111 |
ShortVariable |
Avoid variables with short names like cs |
3 |
137 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the isEmpty method if you want a default access modifier |
3 |
137–139 |
org/apache/commons/codec/language/bm/BeiderMorseEncoder.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
82–187 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
100 |
org/apache/commons/codec/language/bm/Lang.java
Rule |
Violation |
Priority |
Line |
ShortClassName |
Avoid short class names like Lang |
4 |
77–229 |
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 |
LongVariable |
Avoid excessively long variable names like languageRulesResourceName |
3 |
136 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'scanner': resource specifications are implicitly final |
3 |
138–139 |
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 |
186 |
ShortVariable |
Avoid variables with short names like ls |
3 |
201 |
ShortVariable |
Avoid variables with short names like ls |
3 |
226 |
org/apache/commons/codec/language/bm/Languages.java
Rule |
Violation |
Priority |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the merge method if you want a default access modifier |
3 |
85 |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
3 |
96–98 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
127 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
130 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
141 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
144 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
157 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
159 |
LongVariable |
Avoid excessively long variable names like languagesResourceName |
3 |
251 |
ShortVariable |
Avoid variables with short names like ls |
3 |
253 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'lsScanner': resource specifications are implicitly final |
3 |
254–255 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
277 |
org/apache/commons/codec/language/bm/PhoneticEngine.java
Rule |
Violation |
Priority |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the PhonemeBuilder nested class if you want a default access modifier |
3 |
64–149 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
78 |
ShortVariable |
Avoid variables with short names like i |
3 |
168 |
ShortVariable |
Avoid variables with short names like i |
3 |
173 |
LongVariable |
Avoid excessively long variable names like DEFAULT_MAX_PHONEMES |
3 |
226 |
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 |
255 |
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 |
259 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
261 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
263 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
316 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
378 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
380 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
382 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
392 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
400 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
439 |
org/apache/commons/codec/language/bm/ResourceConstants.java
Rule |
Violation |
Priority |
Line |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the CMT field if you want a default access modifier |
3 |
31 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the ENCODING field if you want a default access modifier |
3 |
32 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the EXT_CMT_END field if you want a default access modifier |
3 |
33 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the EXT_CMT_START field if you want a default access modifier |
3 |
34 |
org/apache/commons/codec/language/bm/Rule.java
Rule |
Violation |
Priority |
Line |
ShortClassName |
Avoid short class names like Rule |
4 |
85–671 |
ShortVariable |
Avoid variables with short names like c |
3 |
96 |
LongVariable |
Avoid excessively long variable names like ALL_STRINGS_RMATCHER |
3 |
200 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
200 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
202 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
204 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
206 |
LongVariable |
Avoid excessively long variable names like HASH_INCLUDE_LENGTH |
3 |
208 |
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–211 |
ShortVariable |
Avoid variables with short names like rs |
3 |
219 |
ShortVariable |
Avoid variables with short names like ls |
3 |
221 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'scanner': resource specifications are implicitly final |
3 |
223 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'scanner': resource specifications are implicitly final |
3 |
230 |
ShortVariable |
Avoid variables with short names like rt |
3 |
246 |
ShortVariable |
Avoid variables with short names like rt |
3 |
252 |
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 |
272 |
ShortVariable |
Avoid variables with short names like rt |
3 |
289 |
ShortVariable |
Avoid variables with short names like rt |
3 |
308 |
ShortVariable |
Avoid variables with short names like rt |
3 |
324 |
ShortVariable |
Avoid variables with short names like rt |
3 |
342 |
ShortVariable |
Avoid variables with short names like ph |
3 |
354 |
ShortVariable |
Avoid variables with short names like in |
3 |
361 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
364 |
ShortVariable |
Avoid variables with short names like ph |
3 |
369 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
384 |
LongVariable |
Avoid excessively long variable names like inMultilineComment |
3 |
393 |
LongVariable |
Avoid excessively long variable names like hashIncludeScanner |
3 |
426 |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'hashIncludeScanner': resource specifications are implicitly final |
3 |
426 |
ShortVariable |
Avoid variables with short names like ph |
3 |
440 |
ShortVariable |
Avoid variables with short names like r |
3 |
442 |
ShortVariable |
Avoid variables with short names like sb |
3 |
448 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
486–537 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
491 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
493 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
497 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
501 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
505 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
524 |
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 |
532–533 |
CommentDefaultAccessModifier |
To avoid mistakes add a comment at the beginning of the pattern field if you want a default access modifier |
3 |
540 |
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 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
574 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
576 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
578 |
FieldDeclarationsShouldBeAtStartOfClass |
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. |
3 |
580 |
ShortVariable |
Avoid variables with short names like i |
3 |
648 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
658 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
664 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
667 |
org/apache/commons/codec/net/BCodec.java
Rule |
Violation |
Priority |
Line |
LongVariable |
Avoid excessively long variable names like DECODING_POLICY_DEFAULT |
3 |
54 |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
3 |
97–100 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
130 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
153 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
165 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
173 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
190 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
212 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
231 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
249 |
org/apache/commons/codec/net/PercentCodec.java
Rule |
Violation |
Priority |
Line |
LongVariable |
Avoid excessively long variable names like alwaysEncodeCharsMax |
3 |
61 |
LongVariable |
Avoid excessively long variable names like alwaysEncodeCharsMin |
3 |
61 |
ShortVariable |
Avoid variables with short names like c |
3 |
86 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
93 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
106 |
ShortVariable |
Avoid variables with short names like b |
3 |
111 |
ShortVariable |
Avoid variables with short names like u |
3 |
114 |
ShortVariable |
Avoid variables with short names like l |
3 |
115 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
139 |
ShortVariable |
Avoid variables with short names like bb |
3 |
151 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
176 |
LongVariable |
Avoid excessively long variable names like expectedEncodingBytes |
3 |
179 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
182 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
197 |
ShortVariable |
Avoid variables with short names like b |
3 |
208 |
ShortVariable |
Avoid variables with short names like c |
3 |
223 |
ShortVariable |
Avoid variables with short names like b |
3 |
233 |
LongVariable |
Avoid excessively long variable names like alwaysEncodeCharsArray |
3 |
251 |
ShortVariable |
Avoid variables with short names like c |
3 |
260 |
org/apache/commons/codec/net/QCodec.java
Rule |
Violation |
Priority |
Line |
CallSuperInConstructor |
It is a good practice to call super() in a constructor |
3 |
129–131 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
161 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
184 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
196 |
ShortVariable |
Avoid variables with short names like b |
3 |
208 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
209–213 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
215 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
223 |
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 |
270 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
289 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
307 |
ShortVariable |
Avoid variables with short names like b |
3 |
355 |
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 |
165 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
207 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
217 |
ShortVariable |
Avoid variables with short names like b |
3 |
224 |
ShortVariable |
Avoid variables with short names like b |
3 |
242 |
ShortVariable |
Avoid variables with short names like b |
3 |
262 |
ShortVariable |
Avoid variables with short names like b |
3 |
285 |
UnnecessaryModifier |
Unnecessary modifier 'final' on method 'encodeQuotedPrintable': private methods cannot be overridden |
3 |
285–292 |
ShortVariable |
Avoid variables with short names like b |
3 |
305 |
ShortVariable |
Avoid variables with short names like b |
3 |
319 |
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 |
331 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
429 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
432 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
473 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
495 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
530 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
533 |
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 |
604 |
org/apache/commons/codec/net/RFC1522Codec.java
Rule |
Violation |
Priority |
Line |
AtLeastOneConstructor |
Each class should declare at least one constructor |
3 |
43–188 |
OnlyOneReturn |
A method should have only one exit point, and that should be the last statement in the method |
3 |
72 |
ShortVariable |
Avoid variables with short names like to |
3 |
79 |
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 |
177 |
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 |
|