Files
sdk/pkg/analysis_server/analysis_options.yaml
T
Brian Wilkerson 85083ca5ab Enable avoid_return_types_on_setters in analysis_server
Change-Id: Idc4a05c30ce153d59d3b9e96b3803b18dc8c6edb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133437
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-01-28 16:25:18 +00:00

49 lines
1.7 KiB
YAML

include: package:pedantic/analysis_options.1.8.0.yaml
analyzer:
# This currently finds ~1,200 implicit-casts issues when enabled.
# strong-mode:
# implicit-casts: false
exclude:
- test/mock_packages/**
errors:
# Increase the severity of the unused_import hint.
unused_import: warning
# Ignoring "style" lint rules from pedantic for now. There are pre-existing
# violations that need to be cleaned up. Each one can be cleaned up and
# enabled according to the value provided.
empty_catches: ignore
prefer_contains: ignore
# TODO(srawlins): At the time of writing, 2400 violations in lib/. The fix
# is mechanical, via `dartfmt --fix-doc-comments`, but not worth the churn
# today.
slash_for_doc_comments: ignore
# TODO(srawlins): At the time of writing, 20 violations in lib/. The fix
# is not mechanical; each violation probably needs to be scrutinized.
unawaited_futures: ignore
linter:
rules:
- empty_statements
- unnecessary_brace_in_string_interps
#
# Delta from pedantic 1.8.0 to 1.9.0
#
#- always_declare_return_types # 5645
- always_require_non_null_named_parameters
- annotate_overrides
- avoid_null_checks_in_equality_operators
- camel_case_extensions
#- omit_local_variable_types # 8650
- prefer_adjacent_string_concatenation
- prefer_collection_literals
- prefer_conditional_assignment
- prefer_final_fields
- prefer_for_elements_to_map_fromIterable
- prefer_generic_function_type_aliases
- prefer_if_null_operators
- prefer_single_quotes
- prefer_spread_collections
- unnecessary_this
- use_function_type_syntax_for_parameters