Closed johnmccutchan closed 2 months ago
Or the lint should be changed to use a case-insensitive comparison.
@pq
I'd be in favor of case-insensitive comparison in this case.
making that change will probably cause a bunch of existing code to be out of spec?
It may very well. We'd want to do a bit of testing to measure impact first.
Duplicate of https://github.com/dart-lang/linter/issues/3866
Given the following code:
The analyzer will complain:
But the names are sorted alphabetically.
The fix:
seems wrong as it isn't alphabetically sorted (P comes after e).
The analyzer should be specific that it wants you to sort according to the ascii/utf-8 value of the characters.