Skip to content

Upgrade to Checkstyle 8.28 - #9790

Merged
ejona86 merged 1 commit into
grpc:masterfrom
ejona86:checkstyle-8.28
Jan 6, 2023
Merged

ejona86 merged 1 commit into
grpc:masterfrom
ejona86:checkstyle-8.28

Conversation

@ejona86

@ejona86 ejona86 commented Jan 5, 2023

Copy link
Copy Markdown
Member

Trying to upgrade Gradle to 7.6 improved the checkstyle plugin such that it appears to have been running in new occasions. That in turn exposed us to checkstyle/checkstyle#5088. That bug was fixed in 8.28, which also fixed lots of other bugs. So now we have better checking and some existing volations needed fixing. Since the code style fixes generated a lot of noise, this is a pre-fix to reduce the size of a Gradle upgrade.

I did not upgrade past 8.28 because at some point some other bugs were introduced, in particular with the Indentation module. I chose the oldest version that had the particular bug impacting me fixed. Upgrading to this old-but-newer version still makes it easier to upgrade to a newer version in the future.

Trying to upgrade Gradle to 7.6 improved the checkstyle plugin such that
it appears to have been running in new occasions. That in turn exposed
us to checkstyle/checkstyle#5088. That bug was
fixed in 8.28, which also fixed lots of other bugs. So now we have
better checking and some existing volations needed fixing. Since the
code style fixes generated a lot of noise, this is a pre-fix to reduce
the size of a Gradle upgrade.

I did not upgrade past 8.28 because at some point some other bugs were
introduced, in particular with the Indentation module. I chose the
oldest version that had the particular bug impacting me fixed. Upgrading
to this old-but-newer version still makes it easier to upgrade to a
newer version in the future.
@ejona86
ejona86 requested a review from larry-safran January 5, 2023 21:12

@larry-safran larry-safran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As long as checking line length isn't a problem for generated code, it LGTM.

Comment thread buildscripts/checkstyle.xml Resolved
@ejona86
ejona86 merged commit d17a2db into grpc:master Jan 6, 2023
@ejona86
ejona86 deleted the checkstyle-8.28 branch January 6, 2023 01:07
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants