-
-
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 #14689: Resolve Javadoc summary false positives
- Loading branch information
1 parent
194a6f7
commit 617d911
Showing
8 changed files
with
121 additions
and
22 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
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
35 changes: 35 additions & 0 deletions
35
...e/checks/javadoc/summaryjavadoc/InputSummaryJavadocForbiddenFragmentRelativeToPeriod.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 @@ | ||
/* | ||
SummaryJavadoc | ||
violateExecutionOnNonTightHtml = (default)false | ||
forbiddenSummaryFragments = ^$|fail-summary-fragment | ||
period = _ | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.javadoc.summaryjavadoc; | ||
|
||
public class InputSummaryJavadocForbiddenFragmentRelativeToPeriod { | ||
|
||
/** | ||
* Summary sentence on its own line_ | ||
* <p> | ||
* Another sentence that is not part of the summary, | ||
* so this should not matter: fail-summary-fragment_ | ||
*/ | ||
void foo1() {} | ||
|
||
// violation below 'Forbidden summary fragment.' | ||
/** | ||
* Summary sentence containing default period mentioning version 1.1, then ending with correct | ||
* period after disallowed words, fail-summary-fragment_ | ||
*/ | ||
void foo2() {} | ||
|
||
// violation below 'Forbidden summary fragment.' | ||
/** | ||
* Summary sentence containing correct period mid_word, then ending with correct period after | ||
* disallowed words, fail-summary-fragment_ | ||
*/ | ||
void foo3() {} | ||
} |
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
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