forked from checkstyle/checkstyle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue checkstyle#12409: Inconsistent allowedAbbreviations
- Loading branch information
Showing
6 changed files
with
167 additions
and
61 deletions.
There are no files selected for viewing
120 changes: 60 additions & 60 deletions
120
config/archunit-store/slices_should_be_free_of_cycles_suppressions
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...checkstyle/checks/naming/abbreviationaswordinname/InputAbbreviationAsWordInNameType7.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
AbbreviationAsWordInName | ||
allowedAbbreviations = ORDER, OBSERVATION, UNDERSCORE, TEST | ||
*/ | ||
|
||
|
||
package com.puppycrawl.tools.checkstyle.checks.naming.abbreviationaswordinname; | ||
|
||
public class InputAbbreviationAsWordInNameType7 { | ||
// violation below 'Abb.* in name 'HBCK_LOCK_PATH' must contain no .* than '4' .*cap.* let.*.' | ||
private int HBCK_LOCK_PATH; | ||
|
||
// violation below 'Abb.* in name 'BOOL_VALS' must contain no more than '4' .*cap.* let.*.' | ||
Boolean[] BOOL_VALS = { false, true }; | ||
|
||
void getTEST() { | ||
} // ok | ||
|
||
void getORDER_OBSERVATION() {} // ok | ||
|
||
// violation below 'Abb.* in name 'getNONE_Test' must contain no more than '4' .*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 'LINE_SEP' must contain no more than '4' .*cap.* let.*.' | ||
int LINE_SEP = 1; | ||
return LINE_SEP; | ||
} | ||
|
||
void getNON_ETest() {} // OK | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters