Dart SDK version: 3.7.0-157.0.dev (dev) (Sat Nov 16 12:03:16 2024 -0800) on "windows_x64"
Running dart fix --apply on this code will apply the fixes in b.dart multiple times:
// a.dart
part 'b.dart';
void a() {
// need to trigger a lint in a.dart for the bug to happen
;
b();
}
// b.dart
part of 'a.dart';
Stream<String> b() {
// dart fix should only add a single const
return Stream.empty();
}
Dart SDK version: 3.7.0-157.0.dev (dev) (Sat Nov 16 12:03:16 2024 -0800) on "windows_x64"
Running
dart fix --apply
on this code will apply the fixes inb.dart
multiple times:The fix adds
const
3 times inb.dart
:Output of
dart fix --apply
:It's not limited to these lints. For example the fix for
require_trailing_commas
would add multiple commas.