-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Lint for import "sort order". #57172
Comments
Hopefully we can get this in the style guide too: dart-archive/www.dartlang.org#635 |
Yes please. And thanks for the link @seaneagan. I was just looking for it myself! :) |
Yes please! The linter should complain if:
|
any further plans on this? |
Sorry. Haven't gotten to it but it's definitely a good idea and doable. Added to a new tracking milestone |
I think that with this week's contributions we can close this. |
Hi, Sorry to get this one out after so long, but I don't think dartfmt does sort the import, right? Regards, Raphaël |
@rdehouss: I think what you're after was implemented in |
Hi @pq, no, I was coming from #20244 looking for a solution like https://github.com/timothycrosley/isort to sort automatically the import so that I don't have to fix each lint issues manually. But I understand that I'm now in the linter project and left dartfmt, sorry |
Ah. Got it. What we need here minimally is a quickfix for /fyi @bwilkerson |
The implementation of the quick fix should be largely the same as the implementation of the |
Cool. I was looking at this recently. I created an issue and will take a look (unless @bwilkerson you already are!) |
No, I'm not looking at it. |
Migrated from dartbug/20244:
What steps will clearly show the issue / need for enhancement?
dartfmt -t
on attached foo.dartWhat is the current output?
What would you like to see instead?
The request, as it stands, is for a transformation supplied by
dartfmt
. Sincedart_style
is not in the business of non-WS affecting changes, this feels like linter territory. To start I think we want a lint; ultimately there will be an associated quick fix.The text was updated successfully, but these errors were encountered: