63a77416b7
this is under consideration for core lint inclusion: https://github.com/dart-lang/lints/issues/42 (also undoubtably nice to get the early warning.) Change-Id: I3ea204444f48d3b4bde3ff65b4ce85a2cf2a7b11 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202301 Commit-Queue: Phil Quitslund <pquitslund@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
include: package:pedantic/analysis_options.1.9.0.yaml
|
|
|
|
analyzer:
|
|
errors:
|
|
# Increase the severity of the unused_import hint.
|
|
unused_import: warning
|
|
# There are currently 10k violations in test/ and tool/.
|
|
always_declare_return_types: ignore
|
|
# There are currently 5000 violations in lib/. This just does not fit well
|
|
# with the analyzer team's style.
|
|
omit_local_variable_types: ignore
|
|
# There are currently 3360 violations in lib/.
|
|
prefer_single_quotes: ignore
|
|
|
|
# "strict-inference" is enabled, but "unused" parameters named '_' are
|
|
# still reported. Re-evaluate after
|
|
# https://github.com/dart-lang/language/pull/599 and a functional fix land.
|
|
inference_failure_on_untyped_parameter: ignore
|
|
# There are about 10k violations in test/ due to missing return types on
|
|
# test methods. It would be nice to mark this code as
|
|
# "ignored for test/**/*.dart".
|
|
inference_failure_on_function_return_type: ignore
|
|
|
|
language:
|
|
strict-inference: true
|
|
|
|
linter:
|
|
rules:
|
|
- always_use_package_imports
|
|
- avoid_dynamic_calls
|
|
- avoid_unused_constructor_parameters
|
|
- await_only_futures
|
|
- depend_on_referenced_packages
|
|
- empty_statements
|
|
- iterable_contains_unrelated_type
|
|
- list_remove_unrelated_type
|
|
- prefer_typing_uninitialized_variables
|
|
- unnecessary_brace_in_string_interps
|
|
- unnecessary_overrides
|
|
- unnecessary_parenthesis
|