-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #13345: enable example test for SeverityMatchFilterExamplesTest
- Loading branch information
Showing
7 changed files
with
45 additions
and
19 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
src/main/resources/com/puppycrawl/tools/checkstyle/filters/messages.properties
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 @@ | ||
name.invalidPattern=Name ''{0}'' must match pattern ''{1}''. |
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
24 changes: 24 additions & 0 deletions
24
...amples/resources/com/puppycrawl/tools/checkstyle/filters/severitymatchfilter/Example.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,24 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="ParameterName"> | ||
<property name="severity" value="info"/> | ||
</module> | ||
<module name="MethodName"/> | ||
</module> | ||
<module name="SeverityMatchFilter"> | ||
<property name="severity" value="info"/> | ||
<property name="acceptOnMatch" value="false"/> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.filters.severitymatchfilter; | ||
|
||
// xdoc section -- start | ||
public class Example { | ||
|
||
public void method1(int V1){} // ok, ParameterNameCheck's severity is info | ||
|
||
public void Method2(){} // violation | ||
} | ||
// xdoc section -- end |
11 changes: 0 additions & 11 deletions
11
...amples/resources/com/puppycrawl/tools/checkstyle/filters/severitymatchfilter/Example1.txt
This file was deleted.
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