checkstyle / checkstyle/checkstyle

Verification of Tokens by getRequiredToken method

Open
#2,492 4 comments 0 reactions 0 assignees View on GitHub
approved
Dominant language
Java
Stars
9.6k
Forks
4.2k
Avg merge
22h 23m
Merged PRs (30d)
232

Description

triggered by https://github.com/checkstyle/checkstyle/issues/2388 .

We need to decided what to do when user specify in "tokens" not all tokens that are in requiredTokens list.

Possible approaches:
1) Checkstyle should give an error to user (fail-fast) when he try to put in "tokens" incomplete set of tokens according to getRequiredTokens.

2) The original intention of tokens was rather to specify additional tokens, not all. So requiredTokens are always appended automatically.

That issue is also related to issue of describing to user getRequiredTokens . Issue to describe getAvailableTokens and getDefaultTokens in XDOC.
##

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.