[dartdev/analyzer/linter] Consider adding a command to add a linter rule #52394
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
analyzer-ux
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
dart-cli-analyze
Issues related to the 'dart analyze' tool
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
I've seen this mentioned a few times before but I couldn't find a dedicated issue for it here. As we work to improve the linter rule documentation in the future (related dart-lang/site-www#4498), it would be nice if we could just give users a command they can copy with a button and run to add or remove a linter rule.
dart pub add
has been an extremely useful command in documentation with a similar goal.The command could be part of a new
dart linter
ordart analyzer
tool, or just added as a subcommand todart analyze
. It would probably be fine as a hidden command from--help
unless other functionality is added, as I imagine most use cases will be from documentation and blog posts.The text was updated successfully, but these errors were encountered: