-
-
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 tests for SingleLineJavadocCheckExamples…
…Test
- Loading branch information
Showing
11 changed files
with
254 additions
and
235 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
42 changes: 42 additions & 0 deletions
42
.../resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/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,42 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="SingleLineJavadoc"/> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.singlelinejavadoc; | ||
// xdoc section -- start | ||
public class Example1 { | ||
/** @see Math */ // violation | ||
public int foo() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* @return 42 | ||
*/ | ||
public int bar() { | ||
return 42; | ||
} | ||
|
||
/** {@link #equals(Object)} */ | ||
public int baz() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* <p>the answer to the ultimate question | ||
*/ | ||
public int magic() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* <p>the answer to the ultimate question</p> | ||
*/ | ||
public int foobar() { | ||
return 42; | ||
} | ||
} | ||
// xdoc section -- end |
40 changes: 0 additions & 40 deletions
40
...s/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/Example1.txt
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
.../resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/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,44 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="SingleLineJavadoc"> | ||
<property name="ignoredTags" value="@inheritDoc, @see"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.singlelinejavadoc; | ||
// xdoc section -- start | ||
public class Example2 { | ||
/** @see Math */ | ||
public int foo() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* @return 42 | ||
*/ | ||
public int bar() { | ||
return 42; | ||
} | ||
|
||
/** {@link #equals(Object)} */ | ||
public int baz() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* <p>the answer to the ultimate question | ||
*/ | ||
public int magic() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* <p>the answer to the ultimate question</p> | ||
*/ | ||
public int foobar() { | ||
return 42; | ||
} | ||
} | ||
// xdoc section -- end |
42 changes: 0 additions & 42 deletions
42
...s/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/Example2.txt
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
.../resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/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,44 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="SingleLineJavadoc"> | ||
<property name="ignoreInlineTags" value="false"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.singlelinejavadoc; | ||
// xdoc section -- start | ||
public class Example3 { | ||
/** @see Math */ // violation | ||
public int foo() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* @return 42 | ||
*/ | ||
public int bar() { | ||
return 42; | ||
} | ||
|
||
/** {@link #equals(Object)} */ // violation | ||
public int baz() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* <p>the answer to the ultimate question | ||
*/ | ||
public int magic() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* <p>the answer to the ultimate question</p> | ||
*/ | ||
public int foobar() { | ||
return 42; | ||
} | ||
} | ||
// xdoc section -- end |
42 changes: 0 additions & 42 deletions
42
...s/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/Example3.txt
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
.../resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/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,44 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="SingleLineJavadoc"> | ||
<property name="violateExecutionOnNonTightHtml" value="true"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.singlelinejavadoc; | ||
// xdoc section -- start | ||
public class Example4 { | ||
/** @see Math */ // violation | ||
public int foo() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* @return 42 | ||
*/ | ||
public int bar() { | ||
return 42; | ||
} | ||
|
||
/** {@link #equals(Object)} */ | ||
public int baz() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* <p>the answer to the ultimate question // violation | ||
*/ | ||
public int magic() { | ||
return 42; | ||
} | ||
|
||
/** | ||
* <p>the answer to the ultimate question</p> | ||
*/ | ||
public int foobar() { | ||
return 42; | ||
} | ||
} | ||
// xdoc section -- end |
Oops, something went wrong.