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

IGNITE-13197: Import order rule added. #7978

Merged
merged 8 commits into from
Jul 2, 2020
Merged

Conversation

nizhikov
Copy link
Contributor

@nizhikov nizhikov commented Jun 30, 2020

PR contains new checkstyle rule to check import order according to Ignite Code Style.
IntelliJ IDEA setup to match the check

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

@zaleslaw
Copy link
Member

Could we create an XML checkstyle for IDEA or something else to make automatic refactoring?

@nizhikov
Copy link
Contributor Author

@zaleslaw If you setup IDEA equal to screenshot then it will automatically rearrange imports according to codestyle(Code -> Optimize imports). All new imports will goes to the right place, also.

@zaleslaw
Copy link
Member

zaleslaw commented Jun 30, 2020 via email

@nizhikov
Copy link
Contributor Author

@zaleslaw We have automation in the form of maven checkstyle profile. The goal of this PR is to extend the coverage of automatic checks with the automatic Import Order rule. AFAIK checkstyle+maven is common solution and used in many other open-source projects.

Do you have in mind some other kind of automation?

@zaleslaw
Copy link
Member

zaleslaw commented Jun 30, 2020 via email

@nizhikov
Copy link
Contributor Author

We have this file and it updated in PR.
Changes in settings.xml is the essence of PR

@zaleslaw
Copy link
Member

zaleslaw commented Jun 30, 2020 via email

@pavlukhin
Copy link
Contributor

@nizhikov I see that travis build check failed and it seems that it is related to the import order rule (https://travis-ci.org/github/apache/ignite/builds/703548289?utm_source=github_status&utm_medium=notification). Could you please take a look?

@nizhikov nizhikov merged commit 2fbbb67 into apache:master Jul 2, 2020
kartiksomani pushed a commit to kartiksomani/ignite that referenced this pull request Sep 15, 2020
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.

5 participants