Files
sdk/pkg/analyzer_plugin/analysis_options.yaml
T
pq f962700302 + flutter_style_todos
Enabled `flutter_style_todos` in analyzer packages:

* `analyzer_cli`
* `analyzer_plugin`
* `analyzer_utilities`
* `meta`


Change-Id: I5fcd76bfa5a3bdeb14d6a81b8193129c6d83d0e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/335405
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2023-11-13 00:14:09 +00:00

32 lines
899 B
YAML

include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
linter:
rules:
# In addition to lints/recommended:
always_declare_return_types: true
collection_methods_unrelated_type: true
# Enable when we require Dart 2.19.0.
#dangling_library_doc_comments: true
depend_on_referenced_packages: true
enable_null_safety: true
flutter_style_todos: true
implicit_call_tearoffs: true
library_annotations: true
omit_local_variable_types: true
prefer_single_quotes: true
unawaited_futures: true
unnecessary_library_directive: true
unnecessary_parenthesis: true
unreachable_from_main: true
# Remove from lints/recommended:
constant_identifier_names: false
implementation_imports: false
non_constant_identifier_names: false
# Existing violations (3)
library_private_types_in_public_api: false