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 to checkstyle 8.18 #197
Conversation
https://teamcity.jetbrains.com/viewLog.html?buildId=2009968&buildTypeId=Checkstyle_SonarCheckstyleIdeaInspectionsPullRequest&tab=buildLog&_focus=40#_state=32 TC fails although locally I can execute |
I will try re-running it. |
@muhlba91 , please update README.md I updated issue wit details on what we should pay attention. did you test updated Checks and new Filter on your local ? to make sure they works. |
I restarted one more time, did not help. I can not try to reproduce it on master as TC show message "This is a secondary TeamCity node. Write operations are disabled on this server." , and there is no way to run a build manually. |
I have updated the README and changed URLs pointing to any checkstyle URL to use https. |
Thanks a lot for update, but urls are not valid, please review mapping at checkstyle/checkstyle#6478 , it would be better to separate URL update to separate commit, you can split changes by Thanks a lot for your help. |
Test is easy, get violation on some code, try to use filter, if violation disappear it means Filter works. |
@romani I updated the URLs as described in checkstyle/checkstyle#6478 (hence, replaced
That's what I tried with enabling the MethodName check. My test class contained
which results in a wrong method naming. Then I applied the filter according to http://checkstyle.sourceforge.net/config_filters.html#SuppressionXpathSingleFilter:
and analysis resulted in the same error/warning. |
it could mean that there might be problem in xpath query, in Filter iteself or in sonar plugin. it is better to share test cases by bug report template - https://checkstyle.org/report_issue.html#How_to_report_a_bug.3F , it helps quickly reproduce your case and investiagate it, please do. if suppression works fine in CLI, it is clear problem of plugin. Please make sure you placed filter in Treewalker filters in sonar ui. |
I am merged your PR to simplify code changes, but we before release we need to be sure that new functionality works, it will be not professional to release not working features. |
@romani I can confirm a working filter now. I have accidentially enabled a method name filter from a different SQ plugin which resulted in the same error and confused me when testing the filter. For your reference, here is my test data:
checkstyle configuration: checkstyle.txt
|
Update CheckStyle to 8.18 as per #196. (Did I pick up all changes in CS correctly?)