forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93ab0e7
commit 6b77f06
Showing
3 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
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
56 changes: 56 additions & 0 deletions
56
...rawl/tools/checkstyle/checks/suppresswarningsholder/InputSuppressWarningsHolderAlias.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,56 @@ | ||
/* | ||
com.puppycrawl.tools.checkstyle.checks.SuppressWarningsHolder | ||
aliasList = com.puppycrawl.tools.checkstyle.checks.sizes.ParameterNumberCheck=paramnum | ||
com.puppycrawl.tools.checkstyle.filters.SuppressWarningsFilter | ||
com.puppycrawl.tools.checkstyle.checks.sizes.ParameterNumberCheck | ||
max = (default)7 | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.suppresswarningsholder; | ||
|
||
public class InputSuppressWarningsHolderAlias { | ||
|
||
public void needsLotsOfParameters0(int a, // violation 'More than 7 parameters (found 8)' | ||
int b, int c, int d, int e, int f, int g, int h) { | ||
// ... | ||
} | ||
|
||
@SuppressWarnings("paramnum") | ||
public void needsLotsOfParameters(int a, // filtered violation 'max parameter' | ||
int b, int c, int d, int e, int f, int g, int h) { | ||
// ... | ||
} | ||
|
||
@SuppressWarnings("ParamnumUnknown") | ||
public void needsLotsOfParameters2(int a, // violation 'More than 7 parameters (found 8)' | ||
int b, int c, int d, int e, int f, int g, int h) { | ||
// ... | ||
} | ||
|
||
@SuppressWarnings("PAramnuM") | ||
public void needsLotsOfParameters3(int a, // filtered violation 'max parameter' | ||
int b, int c, int d, int e, int f, int g, int h) { | ||
// ... | ||
} | ||
|
||
@SuppressWarnings("PARAMNUM") | ||
public void needsLotsOfParameters4(int a, // filtered violation 'max parameter' | ||
int b, int c, int d, int e, int f, int g, int h) { | ||
// ... | ||
} | ||
|
||
@SuppressWarnings("paRAMnum") | ||
public void needsLotsOfParameters5(int a, // filtered violation 'max parameter' | ||
int b, int c, int d, int e, int f, int g, int h) { | ||
// ... | ||
} | ||
|
||
@SuppressWarnings("pAramNUm") | ||
public void needsLotsOfParameters6(int a, // filtered violation 'max parameter' | ||
int b, int c, int d, int e, int f, int g, int h) { | ||
// ... | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...awl/tools/checkstyle/checks/suppresswarningsholder/InputSuppressWarningsHolderAlias2.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,35 @@ | ||
/* | ||
com.puppycrawl.tools.checkstyle.checks.SuppressWarningsHolder | ||
aliasList = com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck=constant | ||
com.puppycrawl.tools.checkstyle.filters.SuppressWarningsFilter | ||
com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck | ||
format = (default)^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$ | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.suppresswarningsholder; | ||
|
||
public class InputSuppressWarningsHolderAlias2 { | ||
private static final int a = 0; // violation 'Name 'a' must match pattern' | ||
|
||
@SuppressWarnings("Notconstant") | ||
private static final int b = 0; // violation 'Name 'b' must match pattern' | ||
|
||
@SuppressWarnings("CONSTANT") // filtered violation 'invalid pattern' | ||
private static final int c = 0; | ||
|
||
@SuppressWarnings("CONstant") // filtered violation 'invalid pattern' | ||
private static final int d = 0; | ||
|
||
@SuppressWarnings("consTant") // filtered violation 'invalid pattern' | ||
private static final int e = 0; | ||
|
||
@SuppressWarnings("cOnStAnT") // filtered violation 'invalid pattern' | ||
private static final int f = 0; | ||
|
||
@SuppressWarnings("cOnStAnT") // filtered violation 'invalid pattern' | ||
private static final int g = 0; | ||
} |