-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
A false negative about the rule Indentation #13782
Comments
This is "Line wrap" should be +4 indentation. |
Hi @romani , I want to provide another case for helping analysis, CheckStyle can report an Indention warning at line 2, but I use the same config file. Difference: the new case does not have the annotation MyAnnotation. public @Ann
@Ann2 class T // violation
implements TestInterface {
} Warning message: [WARN] T.java:2:1: '@' has incorrect indentation level 0, expected level should be 4. [Indentation] |
@kalpadiptyaroy no need to speculate, please prove your claim by javac. |
@nrmancuso - My myth is busted. It is legal to use public before annotations while annotating a class. Removing my previous comment. I tried compiling it using |
I am on it. I have written a basic test case in the following PR. Please have a look |
I have read check documentation: https://checkstyle.sourceforge.io/checks/misc/indentation.html#Indentation
I have downloaded the latest checkstyle from: https://checkstyle.org/cmdline.html#Download_and_Run
I have executed the cli and showed it below, as cli describes the problem better than 1,000 words
I would expect Checkstyle to show the warning message like:
Starting audit... [WARN] T.java:4:1: '@' has incorrect indentation level 0, expected level should be 4. [Indentation] Audit done.
but no warnings, hence, I think this is an FN.
The text was updated successfully, but these errors were encountered: