-
Notifications
You must be signed in to change notification settings - Fork 744
fix: cleanup checkstyle import rules #1503
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,12 +53,11 @@ page at http://checkstyle.sourceforge.net/config.html --> | |
| </module> | ||
|
|
||
| <module name="ImportOrder"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure, but perhaps what really needs to be updated is this: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml Why do we have to customize this in this project?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "@elharo The customization was needed because we do not have formatter plugin enabled in this repository. Due to that import order are not structured properly. I am planning to enable the formatter plugin after that we would not have to customize this configuration. I will open a separate PR for that once that is merged will rebase this PR." |
||
| <!-- Checks for out of order import statements. --> | ||
|
|
||
| <property name="severity" value="warning"/> | ||
| <property name="groups" value="com.google,android,junit,net,org,java,javax"/> | ||
suraj-qlogic marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <!-- This ensures that static imports go first. --> | ||
| <property name="option" value="top"/> | ||
| <property name="separatedStaticGroups" value="true"/> | ||
| <property name="caseSensitive" value="true"/> | ||
| <property name="tokens" value="STATIC_IMPORT, IMPORT"/> | ||
| </module> | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.