46cff10fc7
This CL adds support for a new lint, `avoid_futureor_void`, that reports on every occurrence of the type `FutureOr<void>` in a covariant or invariant position. More details can be found at https://github.com/dart-lang/linter/issues/4622. Change-Id: I1b86e04921d1fb0b3661be091ea1f4ad72089e8b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/382403 Commit-Queue: Erik Ernst <eernst@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Examples
Some example analysis options files.
- all.yaml - auto-generated options enabling all lints.
For more on lint rule sets see the analyzer docs on customizing static analysis.
Official Dart lint rules are maintained in
package:lints.
Flutter team rules are maintained in
package:flutter_lints.