forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InputAbbreviationAsWordInNameType7.java
45 lines (28 loc) · 1.12 KB
/
InputAbbreviationAsWordInNameType7.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
AbbreviationAsWordInName
allowedAbbreviations = ORDER, OBSERVATION, UNDERSCORE, TEST
*/
package com.puppycrawl.tools.checkstyle.checks.naming.abbreviationaswordinname;
public class InputAbbreviationAsWordInNameType7 {
// violation below 'Abb.* in name '.*' must contain no more than '4' consecutive cap.* let.*.'
private int HBCK_LOCK_PATH;
// violation below 'Abb.* in name '.*' must contain no more than '4' consecutive cap.* let.*.'
Boolean[] BOOL_VALS = { false, true };
void getTEST() {
} // ok
void getORDER_OBSERVATION() {} // ok
// violation below 'Abb.* in name '.*' must contain no more than '4' consecutive cap.* let.*.'
void getNONE_Test() {}
void getCLR_Test() {} // ok
void getUNDERSCORE() {} // ok
void getTEST_OBSERVATION() {} // ok
void getTEST_UNDERSCORE() {} // ok
void getORDER() {} // ok
void getOBSERVATION() {} // ok
void getORDER_UNDERSCORE() {} // ok
int getCLRTest() { // ok
// violation below 'Abb.* in name '.*' must contain no more than '4' conse.* cap.* let.*.'
int LINE_SEP = 1;
return LINE_SEP;
}
}