Skip to content

fmt: improve import processing, add test - #21172

Merged
spytheman merged 7 commits into
vlang:masterfrom
ttytm:fmt/import-code-quality
Apr 3, 2024
Merged

spytheman merged 7 commits into
vlang:masterfrom
ttytm:fmt/import-code-quality

Conversation

@ttytm

@ttytm ttytm commented Apr 2, 2024 •

Copy link
Copy Markdown
Member

While deciding not to follow through on removing unused imports (for comprehensible reasons), working on #21169 provided insights allowing for general improvements. Picking the cherries, they should be integrated with this PR. It should serve as a base for further fix ups.


The feature of removing unused imports can still become a thing. It would fit better as as an action that can be triggered by a language sever on demand instead of being part of a formatter.

@ttytm
ttytm force-pushed the fmt/import-code-quality branch 14 times, most recently from 3679000 to 5f21631 Compare April 2, 2024 16:48
@ttytm
ttytm force-pushed the fmt/import-code-quality branch from d404c34 to ddfe323 Compare April 2, 2024 23:08
@ttytm
ttytm force-pushed the fmt/import-code-quality branch from ddfe323 to 78b4fe3 Compare April 2, 2024 23:12
@ttytm
ttytm force-pushed the fmt/import-code-quality branch from b756a7e to 7e596a5 Compare April 3, 2024 13:58
@ttytm ttytm changed the title fmt: improve import processing fmt: improve import processing, add test Apr 3, 2024

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent work. Thank you.

@spytheman
spytheman merged commit 55cafa9 into vlang:master Apr 3, 2024
@ttytm
ttytm deleted the fmt/import-code-quality branch April 14, 2024 06:35
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.

2 participants