Synopsis: | Avoid excessively long variable names |
Language: | Java |
Severity Level: | 6 |
Category: | Naming |
Description: |
Detects when a field, formal or local variable is declared with a long name.public class Something { int reallyLongIntName = -3; // VIOLATION - Field public static void main( String argumentsList[] ) { // VIOLATION - Formal int otherReallyLongName = -5; // VIOLATION - Local for (int interestingIntIndex = 0; // VIOLATION - For interestingIntIndex < 10; interestingIntIndex ++ ) { } } |