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

Allow statement ordering in blocks #3

Open
drawers opened this issue Sep 8, 2023 · 0 comments · May be fixed by #25
Open

Allow statement ordering in blocks #3

drawers opened this issue Sep 8, 2023 · 0 comments · May be fixed by #25

Comments

@drawers
Copy link
Owner

drawers commented Sep 8, 2023

Another common site for merge conflicts and disorder are blocks like the dependencies { block in a build.gradle.kts file.

We could make @Alphabetical apply to a block:

@Alphabetical run {
    println("apple")
    println("banana")
}

in which case, it would scan the lines of the block and enforce dictionary order. This could be a "nuclear option" where none of the other annotation targets make sense.

@drawers drawers linked a pull request Oct 23, 2023 that will close this issue
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 a pull request may close this issue.

1 participant