Files
sdk/pkg/linter/example
Brian Wilkerson 463b751717 Add new unnecessary_type_name_in_constructor lint
This adds a new lint to recommend removing the type name from secondary
constructors.

It also adds a new fix that can automate the removal.

Change-Id: Ib6bc46b4455c360732553eadea3451d7dfb874a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/497120
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2026-04-21 15:12:35 -07:00
..

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.