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

chore: Recommend CheckStyle version 8.24 or higher #8259

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

Gerrrr
Copy link
Contributor

@Gerrrr Gerrrr commented Oct 15, 2021

Description

Contributing.md guide suggests to select CheckStyle version 8.18 (newer versions fail to parse the provided XML). Importing checkstyle.xml with this version fails with com.puppycrawl.tools.checkstyle.api.CheckstyleException: LineLength is not allowed as a child in Checker. It does work, however, with versions 8.24 or higher (e.g. 9.0). I suppose that the configuration changed since the guide was written.

Testing done

I tested the change manually - checked the earliest CheckStyle version that allows importing the xml.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@Gerrrr Gerrrr requested a review from spena October 15, 2021 12:21
@Gerrrr Gerrrr requested a review from a team as a code owner October 15, 2021 12:21
CONTRIBUTING.md Outdated
@@ -164,7 +164,7 @@ You can set up IntelliJ for CheckStyle. First install the CheckStyle IDEA plugin

IntelliJ → Preferences → Tools → CheckStyle

In top left corner select CheckStyle version 8.18 (newer versions fail to parse the provided XML)
In top left corner select CheckStyle version 8.24 or newer (older versions fail to parse the provided XML)
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated in 6ee931a.

@Gerrrr Gerrrr merged commit ef48f26 into confluentinc:master Oct 18, 2021
@Gerrrr Gerrrr deleted the chore-checkstyle-version branch October 18, 2021 16:53
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.

2 participants