Skip to content

feat: expose import block source edits - #172

Closed
kim-em wants to merge 2 commits into
mainfrom
import-formatting-source-edit
Closed

kim-em wants to merge 2 commits into
mainfrom
import-formatting-source-edit

Conversation

@kim-em

@kim-em kim-em commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Expose import-block source edits so commands and text-based linters can use the same replacement ranges and whitespace handling. #norm_imports now builds its interactive suggestion from that API.

Also provide stable grouping by public/private visibility for style checks. These functions preserve order within each group and ignore meta and all when choosing the group, while preserving those modifiers in the output. They do not remove redundant imports.

Validation: lake test, including source-edit, comment/modifier preservation, and no-op regression tests.

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.

1 participant