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 tests for JavadocVariableCheckExamplesTest
- Loading branch information
Showing
10 changed files
with
147 additions
and
139 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
23 changes: 23 additions & 0 deletions
23
...es/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocvariable/Example1.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,23 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="JavadocVariable"/> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocvariable; | ||
|
||
// xdoc section -- start | ||
public class Example1 { | ||
private int a; // violation | ||
|
||
/** | ||
* Some description here | ||
*/ | ||
private int b; | ||
protected int c; // violation | ||
public int d; // violation | ||
/*package*/ int e; // violation | ||
|
||
} | ||
// xdoc section -- end |
21 changes: 0 additions & 21 deletions
21
...les/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocvariable/Example1.txt
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...es/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocvariable/Example2.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="JavadocVariable"> | ||
<property name="scope" value="public"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocvariable; | ||
|
||
// xdoc section -- start | ||
public class Example2 { | ||
private int a; | ||
|
||
/** | ||
* Some description here | ||
*/ | ||
private int b; | ||
protected int c; | ||
public int d; // violation | ||
/*package*/ int e; | ||
} | ||
// xdoc section -- end |
23 changes: 0 additions & 23 deletions
23
...les/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocvariable/Example2.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
24 changes: 24 additions & 0 deletions
24
...es/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocvariable/Example4.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="JavadocVariable"> | ||
<property name="ignoreNamePattern" value="log|logger"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocvariable; | ||
|
||
// xdoc section -- start | ||
public class Example4 { | ||
private int a; // violation | ||
|
||
/** | ||
* Some description here | ||
*/ | ||
private int b; | ||
protected int c; // violation | ||
public int d; // violation | ||
/*package*/ int e; // violation | ||
} | ||
// xdoc section -- end |
25 changes: 0 additions & 25 deletions
25
...les/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocvariable/Example4.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
Oops, something went wrong.