Files
sdk/pkg/analyzer_cli/analysis_options.yaml
T
Sam Rawlins 0d2ec720b7 analyzer_cli: switch to use strict-casts
Bug: https://github.com/dart-lang/sdk/issues/41651
Change-Id: I622210b0029325e52be2d8ef7dada1ceca961b6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222382
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-08 04:22:39 +00:00

20 lines
476 B
YAML

include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
exclude:
- test/data/**
linter:
rules:
avoid_unused_constructor_parameters: true
depend_on_referenced_packages: true
directives_ordering: true
# We import heavily from package:analyzer/src.
implementation_imports: false
# This rule does not work well with package:test_reflective_loader.
non_constant_identifier_names: false