Files
sdk/pkg/dev_compiler/analysis_options.yaml
T
Nicholas Shahan 7d00c54b23 [ddc] Enforce unnecessary_breaks lint
Ignore violations in the js_ast sub-directory to avoid unnecessary diffs
with the original package.

Change-Id: Iac8c942e5e2446b8433e2073b546c28e42a8f5cf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/392700
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2024-10-30 21:10:38 +00:00

31 lines
719 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
- unnecessary_breaks