Skip to content
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

Merged
merged 1 commit into from Apr 16, 2024

Conversation

MANISH-K-07
Copy link
Contributor

@MANISH-K-07 MANISH-K-07 commented Mar 23, 2024

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.

@MANISH-K-07 MANISH-K-07 marked this pull request as draft March 23, 2024 11:00
@MANISH-K-07 MANISH-K-07 marked this pull request as ready for review March 23, 2024 12:46
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

item:

src/main/java/com/puppycrawl/tools/checkstyle/Main.java Outdated Show resolved Hide resolved
@MANISH-K-07
Copy link
Contributor Author

Github, generate site

@MANISH-K-07

This comment was marked as outdated.

@MANISH-K-07
Copy link
Contributor Author

MANISH-K-07 commented Mar 24, 2024

Github, generate site for @romani to review :)

@rnveach rnveach self-requested a review March 24, 2024 01:57
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Items

src/main/java/com/puppycrawl/tools/checkstyle/Main.java Outdated Show resolved Hide resolved
@MANISH-K-07 MANISH-K-07 changed the title doc: updated cmdline option -t docs to be more specific doc: updated cmdline docs to be more specific on launching checkstyle JAR Mar 25, 2024
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Items

src/xdocs/cmdline.xml.vm Outdated Show resolved Hide resolved
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix CI.

@romani romani self-requested a review March 26, 2024 13:33
Copy link
Member

@romani romani left a 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

@rnveach rnveach assigned nrmancuso and unassigned romani and nrmancuso Apr 3, 2024
@MANISH-K-07
Copy link
Contributor Author

MANISH-K-07 commented Apr 3, 2024

Github, generate website for @rnveach to review :)

src/xdocs/cmdline.xml.vm Outdated Show resolved Hide resolved
@MANISH-K-07 MANISH-K-07 requested a review from rnveach April 3, 2024 18:32
src/xdocs/cmdline.xml.vm Outdated Show resolved Hide resolved
src/xdocs/cmdline.xml.vm Outdated Show resolved Hide resolved
src/xdocs/cmdline.xml.vm Show resolved Hide resolved
@MANISH-K-07
Copy link
Contributor Author

Github, generate site

Copy link
Member

@rnveach rnveach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last changes.

<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
Copy link
Member

@rnveach rnveach Apr 13, 2024

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.

Copy link
Contributor Author

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

Copy link
Member

@rnveach rnveach Apr 15, 2024

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.

Copy link
Contributor Author

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

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without including => excluding

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@rnveach rnveach merged commit b1498c3 into checkstyle:master Apr 16, 2024
113 checks passed
@MANISH-K-07 MANISH-K-07 deleted the docs1 branch April 16, 2024 00:16
@MANISH-K-07
Copy link
Contributor Author

MANISH-K-07 commented Apr 16, 2024

@romani , @rnveach , do the docs usually get published during release cycle?

@rnveach
Copy link
Member

rnveach commented Apr 16, 2024

Yes, website is based on release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants