dart-sdk/pkg/test_runner/analysis_options.yaml
Ahmed Ashour 6e03189e2b [analyzer] fix diagnostics for lints map
Fixes #49651

Change-Id: I87b14e407e699da8b9247eed93d957e2ba12e22d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/257520
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-09-20 17:11:35 +00:00

27 lines
690 B
YAML

include: package:lints/core.yaml
analyzer:
language:
strict-casts: true
linter:
rules:
avoid_bool_literals_in_conditional_expressions: true
avoid_returning_null: true
avoid_unused_constructor_parameters: true
cancel_subscriptions: true
comment_references: true
directives_ordering: true
omit_local_variable_types: true
package_api_docs: true
prefer_const_constructors: true
throw_in_finally: true
unnecessary_lambdas: true
unnecessary_parenthesis: true
unnecessary_statements: true
# Disabled due to existing violations.
non_constant_identifier_names: false
only_throw_errors: false
prefer_single_quotes: false