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

Checkstyle import rules should be consistent with the codebase #9920

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

niloc132
Copy link
Contributor

@niloc132 niloc132 commented Feb 9, 2024

The old checkstyle was similar but not identical to the Google Java Style Guide, and it seems that checkstyle updates have changed import behaviors in a way to make them incompatible with those conventions (but more compatible with the Google style). These new rules are a close approximation to the old convention, with a few exceptions, mostly that imports are all listed at the top. There were also some inconsistencies, such as grouping jsinterop and javaemul with java packages - those have been resolved as simply as possible, with checkstyle rules to enforce this.

The old checkstyle was similar but not identical to the Google Java
Style Guide, and it seems that checkstyle updates have changed import
behaviors in a way to make them incompatible with those conventions (but
more compatible with the Google style). These new rules are a close
approximation to the old convention, with a few exceptions, mostly that
imports are all listed at the top. There were also some inconsistencies,
such as grouping jsinterop and javaemul with java packages - those have
been resolved as simply as possible, with checkstyle rules to enforce
this.
@niloc132
Copy link
Contributor Author

niloc132 commented Feb 9, 2024

Added a commit which relied on line numbers in Throwable not changing, so that this test still passes.

@niloc132 niloc132 merged commit b5dc7f6 into gwtproject:main Feb 12, 2024
3 checks passed
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.

1 participant