Skip to content

Conversation

@fedimser
Copy link

@fedimser fedimser commented Oct 30, 2025

This PR adds an option importsOrder = AsciiCaseInsensitive that allows to sort imports alpabetically, but ignoring case.

Resolves #2305.

Tested locally: sbt "expect3_7_3Target3_7_3 / testOnly -- -z organizeImports"

@bjaglin
Copy link
Collaborator

bjaglin commented Nov 2, 2025

Thanks for the contribution! Following up on your comment about the naming, I would still keep Ascii as a prefix like this PR implements, since we might one day create a SymbolsFirstCaseInsensitive.

Copy link
Collaborator

@bjaglin bjaglin left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution. Could you look into testing the corner case I mention in the comment?

@fedimser fedimser requested a review from bjaglin November 3, 2025 04:13
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.

OrganizeImports: Support case-insensitive sorting

2 participants