386a147b58
This new lint fires when a formal parameter is declared with `var` and no type annotation. We're adding this lint to ease the migration for when primary constructors is enabled. Adding a quick-fix for this lint will come in a follow-up CL. Tests: - Class methods, extension methods, extension type methods, mixin methods, constructors, setters, functions - Initializing formals - Super parameters - Function typed parameters - Named parameters, positional parameters, optional parameters, required parameters, Bug: https://github.com/dart-lang/sdk/issues/61591 Change-Id: Ib09c87e234cde4be024af0b9d8a1e3e0a371e777 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/481620 Commit-Queue: Kallen Tu <kallentu@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.