Skip to content

Commit bbf23fc

Browse files
Aryant-Tripathiromani
authored andcommitted
Issue #17882: add Javadoc for CUSTOM_BLOCK_TAG of JavadocCommentsTokenTypes to new AST format
1 parent d13e710 commit bbf23fc

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

config/jsoref-spellchecker/whitelist.words

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,7 @@ Mycheckstyle
893893
mycompany
894894
mycompanychecks
895895
mycustom
896+
mycustomtag
896897
myfile
897898
myname
898899
myproject

src/main/java/com/puppycrawl/tools/checkstyle/api/JavadocCommentsTokenTypes.java

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,25 @@ public final class JavadocCommentsTokenTypes {
464464
public static final int SERIAL_FIELD_BLOCK_TAG = JavadocCommentsLexer.SERIAL_FIELD_BLOCK_TAG;
465465

466466
/**
467-
* Custom or unrecognized block tag.
467+
* {@code @customBlock} Javadoc block tag.
468+
*
469+
* <p>This type represents any block tag that is not explicitly recognized by Checkstyle,
470+
* such as a project-specific or malformed tag.</p>
471+
*
472+
* <p><b>Example:</b></p>
473+
* <pre>{@code * @mycustomtag This is a custom block tag.}</pre>
474+
* <b>Tree:</b>
475+
* <pre>{@code
476+
* JAVADOC_BLOCK_TAG -> JAVADOC_BLOCK_TAG
477+
* `--CUSTOM_BLOCK_TAG -> CUSTOM_BLOCK_TAG
478+
* |--AT_SIGN -> @
479+
* |--TAG_NAME -> customBlock
480+
* |--TEXT ->
481+
* `--DESCRIPTION -> DESCRIPTION
482+
* `--TEXT -> This is a custom block tag.
483+
* }</pre>
484+
*
485+
* @see #JAVADOC_BLOCK_TAG
468486
*/
469487
public static final int CUSTOM_BLOCK_TAG = JavadocCommentsLexer.CUSTOM_BLOCK_TAG;
470488

0 commit comments

Comments
 (0)