Open kevmoo opened 3 years ago
CC @pq re LINT
Just some history: The quick fix uses the ImportOrganizer
, which also implements the "Sort Members in Dart File" feature in IDEs. The lint was written long after ImportOrganizer
was and disagrees with it. IIRC, the Flutter team has yet another way of sorting imports that doesn't match either of the pre-existing orders.
While I strongly agree that it would be nice for everything to be consistent, there's an open question as to which pieces should be changed and to what.
tl;dr
LintNames.directives_ordering
(which I agree with) prefers code like thisDartFixKind.ORGANIZE_IMPORTS
orders code like this:I hacked up the test which I would like to pass. 😄
CC @jwren @scheglov