proposal: remove_library_names
#59023
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
linter-lint-proposal
linter-set-recommended
linter-status-pending
remove_library_names
Description
This is a corollary to unnecessary_library_directive. If you need a library directive, it almost certainly shouldn't have a name. The names really don't offer anything.
Kind
Style, mostly.
Bad Examples
Good Examples
Discussion
See https://dart-lang.github.io/linter/lints/unnecessary_library_directive.html
And https://dart-lang.github.io/linter/lints/library_annotations.html
And https://dart-lang.github.io/linter/lints/dangling_library_doc_comments.html
Aligns with https://dart.dev/guides/language/effective-dart/style#dont-explicitly-name-libraries
The text was updated successfully, but these errors were encountered: