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 AbstractChecks to log DetailAST - Indentation #7734
Comments
I am on it. |
Please have a look on the commit:
The
The error log is :
The error is comming due to this line in (AbstractItModuleTestSupport.java at lineNo. 257)
Removing this line passes the test cases, and not only this I have tried many other cases for indentation check with different examples (three of them are in my commit), but all have the same result (failing with the same error log). Please help if I am missing something. |
Xpath is failing to suppress the violation this is why no violations are expected. Can you confirm the issue with the CLI? Generate xpath suppression and then use xpath suppression filter to show violation remains. |
Ok, I will do it. Thank you @rnveach |
Should I check it with
or am I doing the wrong checks. |
https://checkstyle.org/cmdline.html#Command_line_usage After you show us that run, use the suppression it generates as part of the xpath single filter and see if you can suppress the violation.
Yes, the released version of checkstyle. |
Thinking that I am doing something wrong, I tried on other module and that worked without an issue and xpathsupression is generated successfully. for instance,
Am I doing something wrong with indentation test or is it a new checkstyle issue. Thanks @rnveach |
You are right, it is my fault. You will need to work with the all jar created from your PR branch. |
Suppression xpath is not generated with the new checkstyle jar, and the detailLogAST changes are applied.
|
@romani ping @Abhishek-kumar09 Can you examine why CLI reports no suppression while IT tests generates a suppression? |
please move this to another issue, we should merge this PR sooner, in new issue lets mention that IT should be fixed. |
I can try. |
@Abhishek-kumar09 I am sorry for conflicting messages. @romani thinks its better to just move on. Please save this PR and start a new PR to update documentation that Indentation will not be supported to the issue is resolved. Please put all details of issue into this main issue for us to come back to later. |
Should a new Issue be created to address this problem about |
wrong indentaion log is caught at some points, please see Abhishek-kumar09@86a45dc#r38003427 |
yes, just copy your example that In this issue please update Check to report violation on AST node, you already updated doc to keep it in list of unsupported Checks in documentation, .... good but please make reference "untill ...." to issue that you need to create. |
Ok, I will do it. Thanks. |
fix is merged. @Abhishek-kumar09 , thanks a lot for your hard work. It is the most complicated module in checkstyle, but you managed to make change with proper testing. |
Thanks for your kind comment @romani :) |
Child of #5777
This issue specifically focuses on Indentation.
The text was updated successfully, but these errors were encountered: