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 JavadocTagContinuat…
…ionIndentationCheck
- Loading branch information
1 parent
95a2f94
commit fd3a002
Showing
9 changed files
with
177 additions
and
86 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
33 changes: 33 additions & 0 deletions
33
...uppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/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,33 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="JavadocTagContinuationIndentation"/> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadoctagcontinuationindentation; | ||
|
||
// xdoc section -- start | ||
/** | ||
* <p> 'p' tag is unclosed | ||
* <p> 'p' tag is closed</p> | ||
*/ | ||
class Example1 { | ||
|
||
/** | ||
* @tag comment | ||
* Indentation spacing is 4 | ||
*/ | ||
public void testMethod1(String input) { | ||
// OK, Default expected Indentation is 4 | ||
} | ||
|
||
/** | ||
* @tag comment | ||
* Indentation spacing is 2 | ||
*/ | ||
public void testMethod2(String input) { | ||
// violation 3 lines above 'Line continuation have incorrect indentation level' | ||
} | ||
} | ||
// xdoc section -- end |
18 changes: 0 additions & 18 deletions
18
...puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/Example1.txt
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...uppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/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,35 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="JavadocTagContinuationIndentation"> | ||
<property name="offset" value="2"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadoctagcontinuationindentation; | ||
|
||
// xdoc section -- start | ||
/** | ||
* <p> 'p' tag is unclosed | ||
* <p> 'p' tag is closed</p> | ||
*/ | ||
class Example2 { | ||
|
||
/** | ||
* @tag comment | ||
* Indentation spacing is 4 | ||
*/ | ||
public void testMethod1(String input) { | ||
// OK, Indentation above 1 is fine as offset value is 2 | ||
} | ||
|
||
/** | ||
* @tag comment | ||
* Indentation spacing is 2 | ||
*/ | ||
public void testMethod2(String input) { | ||
// OK, Indentation above 1 is fine as offset value is 2 | ||
} | ||
} | ||
// xdoc section -- end |
20 changes: 0 additions & 20 deletions
20
...puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/Example2.txt
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...uppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/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,35 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="JavadocTagContinuationIndentation"> | ||
<property name="violateExecutionOnNonTightHtml" value="true"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadoctagcontinuationindentation; | ||
|
||
// xdoc section -- start | ||
/** | ||
* <p> 'p' tag is unclosed | ||
* <p> 'p' tag is closed</p> | ||
*/ | ||
class Example3 { | ||
// violation 4 lines above 'Unclosed HTML tag found: p' | ||
/** | ||
* @tag comment | ||
* Indentation spacing is 4 | ||
*/ | ||
public void testMethod1(String input) { | ||
// OK, Default expected Indentation is 4 | ||
} | ||
|
||
/** | ||
* @tag comment | ||
* Indentation spacing is 1 | ||
*/ | ||
public void testMethod2(String input) { | ||
// violation 3 lines above 'Line continuation have incorrect indentation level' | ||
} | ||
} | ||
// xdoc section -- end |
18 changes: 0 additions & 18 deletions
18
...puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/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