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.
Issue checkstyle#13345: Enable examples tests for MissingjavadocTypeC…
…heck
- Loading branch information
1 parent
608d4a5
commit 8e5396f
Showing
9 changed files
with
117 additions
and
104 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
19 changes: 19 additions & 0 deletions
19
...resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadoctype/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,19 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="MissingJavadocType"/> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype; | ||
|
||
// xdoc section -- start | ||
class Example1 { | ||
/** Javadoc.*/ | ||
public class testClass0 {} | ||
public class testClass1 {} | ||
private class testClass2 {} | ||
protected class testClass3 {} | ||
class testClass4 {} | ||
} | ||
// xdoc section -- end |
14 changes: 0 additions & 14 deletions
14
.../resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadoctype/Example1.txt
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
...resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadoctype/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,21 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="MissingJavadocType"> | ||
<property name="scope" value="private"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype; | ||
|
||
// xdoc section -- start | ||
class Example2 { // violation, 'Missing a Javadoc comment' | ||
/** Javadoc.*/ | ||
public class testClass0 {} | ||
public class testClass1 {} // violation, 'Missing a Javadoc comment' | ||
private class testClass2 {} // violation, 'Missing a Javadoc comment' | ||
protected class testClass3 {} // violation, 'Missing a Javadoc comment' | ||
class testClass4 {} // violation, 'Missing a Javadoc comment' | ||
} | ||
// xdoc section -- end |
16 changes: 0 additions & 16 deletions
16
.../resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadoctype/Example2.txt
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadoctype/Example3.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="MissingJavadocType"> | ||
<property name="scope" value="private"/> | ||
<property name="excludeScope" value="package"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadoctype; | ||
|
||
// xdoc section -- start | ||
class Example3 { | ||
/** Javadoc.*/ | ||
public class testClass0 {} | ||
public class testClass1 {} | ||
private class testClass2 {} // violation, 'Missing a Javadoc comment' | ||
protected class testClass3 {} | ||
class testClass4 {} | ||
|
||
} | ||
// xdoc section -- end |
17 changes: 0 additions & 17 deletions
17
.../resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadoctype/Example3.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