Phil Quitslund
Phil Quitslund
This particularly bad example was fixed w/ #3294.
[`noop_primitive_operations`](https://dart-lang.github.io/linter/lints/noop_primitive_operations.html) might fit this bill already?
/fyi @a14n
Thanks for opening this! @goderbauer: would you be a good person to give feedback on the proposed additions?
FWIW, an even smaller repro: ```dart class A { const A(this.p); factory A.f() => A([]); // prefer_const_constructors false positive here final List p; } ```
I'm inclined to agree with this change but since it's a recommended lint, I'd like to get a gut check from a few other folks. (Mainly to test the waters...
I think the rules value transcends `dart doc` (though the motivation does center it). That said, the current `dart doc` implementation does introduce a wrinkle... In its current incarnation, it...