New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update doc for IllegalToken #7645
Comments
I am on it~ |
But I need some help. Because when I run mvn clean verify, a failing test occurs. Details as follows: main: execute: |
不允许的导入 is Chinese. import.control.disallowed=不允许的导入 |
checkstyle/config/suppressions.xml Lines 102 to 103 in aa5a9fd
The issue is how we do some of our suppressions. Some suppressions are based on the message as there is specific violations we want to ignore but allow others as they are real issues. The only way currently in checkstyle to do these type of suppressions is by the violation message printed to the console. This is known to cause issues with people who use another language by default. Our CI uses the default locale, English. You can get around this by using the CI in the PR as what the actual issues are. You can try changing the default language used by your maven commands.
|
Thank you. I get it, and I fix this through set MAVEN_OPTS=-Duser.language=en as environment variables. I will try to send a PR. |
Issue checkstyle#7645: Update doc for IllegalToken Issue checkstyle#7645: Update doc for IllegalToken
Fix is merged. |
Issue checkstyle#7591: Update doc for TodoComment Issue checkstyle#7621: Update doc for GenericWhitespace Issue checkstyle#7705: add no error regression for contribution repo Issue checkstyle#7684: update doc for AvoidStarImport Issue checkstyle#7670: Update doc for NoClone Issue checkstyle#2410: JavadocStyleCheck: need to support VAR html tag doc: fix inconsistencies between code and docs doc: fix out-of-order div and dfn tags Issue checkstyle#7705: add no error regression for methods distance repo Issue checkstyle#7645: Update doc for IllegalToken
https://checkstyle.org/config_coding.html#IllegalToken
Add example for each existing config to show what code is ok and what code cause violation.
Good example is https://checkstyle.org/config_naming.html#AbstractClassName
Look at referenced commits of #5832, to see what and how should be changed in code.
Please play with module/check by means of https://checkstyle.org/cmdline.html to understand how it works.
PLEASE READ https://github.com/checkstyle/checkstyle/wiki/Good-practice-on-how-to-update-examples
The text was updated successfully, but these errors were encountered: