-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Issue #17114 : explain how to use CLI generated XPath #17803
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
base: master
Are you sure you want to change the base?
Conversation
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.
Please keep single commit
Items to improve
src/site/xdoc/cmdline.xml.vm
Outdated
| </code></pre> | ||
| </div> | ||
| <pre>The XPath generated is intended to be used with the SuppressionXpathFilter or SuppressionXpathSingleFilter modules. | ||
| Add the generated XPath to your suppressions.xml file and Referenced it in the configuration file.</pre> |
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 think should remove this sentence. User should read doc of filters vto find out how to configure them
src/site/xdoc/cmdline.xml.vm
Outdated
| /SLIST/LITERAL_WHILE/SLIST/LITERAL_SWITCH/CASE_GROUP/LITERAL_CASE | ||
| </code></pre> | ||
| </div> | ||
| <pre>The XPath generated is intended to be used with the SuppressionXpathFilter or SuppressionXpathSingleFilter modules. |
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 convert name of filters to links , to let users quickly jump to documentation for them
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.
And please use such wording in all 3 cases, it is all that we need. Nothing more .
|
Please read and watch videos at Starting_Development. |
d1dbe23 to
9a68c62
Compare
|
https://ci.appveyor.com/project/Checkstyle/checkstyle/builds/52791663/job/x8pw0qst2isx2i5o#L99 please look a videos on what commands to run before pushing, it help to resolve problems quicker |
6958f9f to
29f90b1
Compare
|
Please address |
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.
Items
src/site/xdoc/cmdline.xml.vm
Outdated
| <div class="wrapper"> | ||
| <p>the XPath generated by is to be used with the | ||
| <a href="../filters/suppressionxpathfilter.html">SuppressionXpathFilter</a> | ||
| or <a href="../filters/suppressionxpathsinglefilter.html">SuppressionXpathSingleFilter</a> modules.</p> |
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.
Just wrap a line
071bda4 to
d5239af
Compare
|
Please read and watch videos at Starting_Development. |
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.
items:
src/site/xdoc/cmdline.xml.vm
Outdated
| </code></pre> | ||
| </div> | ||
| <div class="wrapper"> | ||
| <p>the XPath generated by is to be used with the TreeWalker or |
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 remove "the TreeWalker or" Xpath is only for a filter, parent module of filter described in filter documentation.
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.
done
| </div> | ||
| <div class="wrapper"> | ||
| <p>The XPath generated is intended to be used with the | ||
| <a href="../filters/suppressionfilter.html">SuppressionFilter</a> or |
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.
https://checkstyle.sourceforge.io/filters/suppressionfilter.html does not have xpath, please remove.
only two filters are using xpath:
https://checkstyle.sourceforge.io/filters/suppressionxpathfilter.html
https://checkstyle.sourceforge.io/filters/suppressionxpathsinglefilter.html
you have here generated suppression that is not Xpath based.
this is content for
https://checkstyle.sourceforge.io/filters/suppressionfilter.html#SuppressionFilter
https://checkstyle.sourceforge.io/filters/suppressionsinglefilter.html#SuppressionSingleFilter
please use this two filters here.
d5239af to
ebdb113
Compare
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.
Last
| </code></pre> | ||
| </div> | ||
| <div class="wrapper"> | ||
| <p>the XPath generated by is to be used with the |
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 remove this change, example above is about how to use xpath created by something to print part of AST.
Filter is not applicable here at all
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.
ebdb113 to
b2ac20b
Compare
|
Please keep ci green. |
Issue #17114
(mentioned additional information for type of filters that can be used for given XPath)
Changes made in: