-
-
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
doc: updated cmdline docs to be more specific on launching checkstyle JAR #14710
Conversation
c469ae2
to
4cf9525
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.
item:
40ffaa1
to
2c33e47
Compare
Github, generate site |
This comment was marked as outdated.
This comment was marked as outdated.
859548a
to
1c6395c
Compare
Github, generate site for @romani to 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.
Items
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
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 fix CI.
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.
CI must be green
4938463
to
0011391
Compare
Github, generate website for @rnveach to review :) |
5db8ace
to
60d14cf
Compare
Github, generate site |
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 changes.
src/xdocs/cmdline.xml.vm
Outdated
<code>-J, --treeWithJavadoc</code> - This option is used to display the Abstract Syntax | ||
Tree (AST) <b>with Javadoc nodes</b> of the specified file. It can only be used on a | ||
single file and cannot be combined with other options. Note that the column numbers | ||
between the 2 will not be in sync with the file's numbering due to the fact that each |
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.
Is this related to #14780 ? If so remove it since it was approved as a bug. When it is fixed and merged, then this will no longer apply.
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.
Removed.. but I was considering removing it as part of the fix for #14780 itself
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 wouldn't legitimatize this as being written in official documentation, especially if it is a bug. It is sometimes ok to add some things are not unsupported till another issue, but you'll be here a while if you have to write out everything that is a bug in open tickets. The issue itself is documentation and confirms it is supported wrong.
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.
Got it :)
Now that this is merged, let's try #14759
src/xdocs/cmdline.xml.vm
Outdated
cannot be used other options and requires exactly one file to run on to be specified. | ||
<code>-j, --javadocTree</code> - This option is used to print the Parse Tree of the | ||
Javadoc comment. The file has to contain <b>only Javadoc comment content</b> without | ||
including '/**' and '*/' at the beginning and at the end respectively. It can only be |
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.
without including
=> excluding
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
Yes, website is based on release. |
Response to @romani 's comment at discussion
Old docs : https://checkstyle.org/cmdline.html#Command_line_usage
We have been receiving many queries on our matrix forum from new contributors struggling to use our jar through CLI.
The problem here almost in every case was the download path and cli launch path being different (or) the test file/config not located at the same directory as jar.
The docs have been updated with a new example to be more specific.