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

Add Sort Members functionality to Eclipse formatter #2312

Merged
merged 21 commits into from
Nov 3, 2024

Conversation

arouel
Copy link
Contributor

@arouel arouel commented Oct 24, 2024

Why

We not only want to format our code with Eclipse JDT, but also sort the members as we know it from Eclipse IDE. This ensures that the methods are always in sorted order and thus may help for better readability. It is turned off by default, but you might want to consider enabling it when setting coding standards for a project. There are two options to enable/disable it on project level or on file level.

@nedtwigg
Copy link
Member

Super cool, thanks! Needs

  • spotlessApply (then we'll find out if the tests are passing in CI)
  • updates to changelogs

@nedtwigg
Copy link
Member

Problem now seems to be

@arouel
Copy link
Contributor Author

arouel commented Oct 28, 2024

@nedtwigg I addressed all the points and I think it is ready for review. Any feedback is very appreciated.

Copy link

@Treutler Treutler left a comment

Choose a reason for hiding this comment

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

LGTM

@nedtwigg
Copy link
Member

nedtwigg commented Nov 3, 2024

This was hard to do, thanks for the PR! Will be released soon...

@nedtwigg nedtwigg merged commit 4685ac2 into diffplug:main Nov 3, 2024
16 checks passed
@arouel arouel deleted the sort-members branch November 4, 2024 08:53
@arouel
Copy link
Contributor Author

arouel commented Nov 27, 2024

@nedtwigg do you have an ETA for release?

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.

3 participants