Files
sdk/pkg/dev_compiler/analysis_options.yaml
T
Sam Rawlins 976cffc4c2 Use strict-casts in js and dev_complier
strict-casts is mostly a drop-in replacement for the deprecated
`implicit-casts: false` option. One big difference, seen in this CL, is that
strict-casts will report a non-Iterable (or non-Stream) in a for-each loop.

Change-Id: Ibc463ae9c870b6a795483c5dea0d2b856e7fd883
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221546
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-11-29 23:22:44 +00:00

30 lines
694 B
YAML

include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
errors:
todo: ignore
avoid_function_literals_in_foreach_calls: ignore
avoid_renaming_method_parameters: ignore
constant_identifier_names: ignore
implementation_imports: ignore
prefer_void_to_null: ignore
exclude:
- doc/api/**
- gen/**
- node_modules/**
- test/codegen/**
- test/samples/**
- test/transformer/hello_app/**
linter:
rules:
# Not enforced by lints at any version.
- always_declare_return_types
- directives_ordering
- omit_local_variable_types
- prefer_single_quotes
- prefer_relative_imports
- unawaited_futures