Skip to content

Commit

Permalink
Issue #13213: Remove //ok comments from javadoctagcontinuationindenta…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
luvtyping authored and romani committed Nov 30, 2024
1 parent 5f5e87c commit e89621e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 27 deletions.
18 changes: 0 additions & 18 deletions config/checkstyle-input-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -433,24 +433,6 @@
files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadocmissingleadingasterisk[\\/]InputJavadocMissingLeadingAsteriskCorrect.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentation.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationBlockTag.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]javadoctagcontinuationindentation[\\/]InputJavadocTagContinuationIndentationGuavaFalsePositive.java"/>
<suppress id="UnnecessaryOkComment"
files="checks[\\/]javadoc[\\/]missingjavadocmethod[\\/]InputMissingJavadocMethodAllowedAnnotations.java"/>
<suppress id="UnnecessaryOkComment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ interface FooIn1 {}

/**
* <p>Testing javadoc with spanning tag {@linkplain #DEFAULT default mapping
* factory}.</p> // ok
* factory}.</p>
*/
interface FooIn2 {}
class ShortNextLine {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ public void partialIndent(int x) {
*
* @param x input
* @return itself
* */ // ok
* */
public int identity(int x) {
return x;
}

/**
* Javadoc.
*
* @param args // ok
* @param args
* {@code this} line is not correctly indented // violation
* {@code this} // ok
* {@code this}
* <pre>this line is not correctly indented</pre> // violation
*/
public void multipleLines1(String args) {
Expand All @@ -70,7 +70,7 @@ public void multipleLines1(String args) {
/**
* Javadoc.
*
* @return false always // ok
* @return false always
* {@code this} line is not correctly indented // violation
* {@code this} line is not correctly indented // violation
* <pre>this line is not correctly indented</pre> // violation
Expand Down Expand Up @@ -98,12 +98,12 @@ public boolean isMultipleLines2() {
* <li>cvsroot</li> // violation
* <li>noexec</li> // violation
* <li>
* another item // ok
* another item
* </li>
* <li> yet another item </li> // ok
* <li> yet another item </li>
* </ul> // violation
* some text <i>word</i> more text. // violation
* some text <i>word</i> more text. // ok
* some text <i>word</i> more text.
*/
public String regressionNestedHtml(CharSequence c) {
return "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class InputJavadocTagContinuationIndentationGuavaFalsePositive {

/**
* This class implements the GWT serialization of {@link HashMultimap}. // ok
* This class implements the GWT serialization of {@link HashMultimap}.
*
* @author Jord Sonneveld
*
Expand Down

0 comments on commit e89621e

Please sign in to comment.