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
Issue #7576: update doc for SuppressWarningsHolder #11542
Conversation
From issue description
You need to add configs, not a java code. |
I am sorry for miss understanding |
@romani I am not getting what exact violation is I have run the CLI tools with this config file and I am getting Audit done in every code example without any error |
Try to understand checkstyle/src/test/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolderTest.java Line 112 in f6a15cf
Read https://checkstyle.org/config_filters.html#SuppressWarningsFilter |
@romani please look at this pic and review if config file is wrong |
Filter is missing, please read documentation attentively, please also read code of this module |
@romani I have read the documentation but still i am not able to figure it out may be I am doing some little mistake please look at this pic and help to figure out |
I have tried without unused also |
Please share config and code and commands that you have in images in text to let me quickly reuse it as I come to keyboard. |
code :- command :- |
Please look at #10043 as inspiration on how to use such modules. Look at other issue for this module there might be more examples. Let me know if you still need help, but it requires me to do this during keyboard time. |
@romani #10043 (comment) I have study this for Member Name check $ cat TestClass.java $ cat TestConfig.xml $ java -jar checkstyle-8.42-all.jar -c TestConfig.xml TestClass.java for Constant Name Check $ cat TestConfig.xml $ java -jar checkstyle-8.42-all.jar -c TestConfig.xml TestClass.java |
More examples of usage https://github.com/checkstyle/checkstyle/pull/11573/files
Please share exact output, in comment. |
@Kevin222004 , ping |
code :- config file :-
output :- |
sorry for being late from few days
give me a moment I will share in a good manner |
Member Name
|
@romani Is it good to review now ? |
This is good example of suppression. Let's use it our examples. |
@romani it don't need any error message ? if it is good can I update website according to it |
Create few field without annotation to keep oe violation |
@romani can you please guide on create config of code
|
Suppres modules are the same, just add module |
Member check:-
Constant Name :-
ParameterNumber:-
|
Please fix indentation in xml config to let users read it with pleasure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update all configs to have holder and check. User need ready to copy paste examples to to play with.
Please update all to have config that is following by java code to show how it works. People love examples more than reading boring documentation.
Items:
src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java
Outdated
Show resolved
Hide resolved
GitHub, generate website |
src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java
Outdated
Show resolved
Hide resolved
Is there any changes still required |
GitHub, generate website |
GitHub, generate website |
@Kevin222004, please start dealing with other issue meanwhile, this PR in final phase of review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can only do partials right now.
src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java
Outdated
Show resolved
Hide resolved
GitHub, generate website |
src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/SuppressWarningsHolder.java
Show resolved
Hide resolved
#11542 (comment) should I create a new issue for this now |
I pushed right version, i will merge after CI pass. |
@Kevin222004 , please fix Teamcity violation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for update
Welcome and Thanks to you also sir to stay for a long for easy issue |
Fixes Issue #7576