Files
sdk/pkg/analysis_server/analysis_options.yaml
T
Brian Wilkerson f60536c194 Enable slash_for_doc_comments in analysis_server
Change-Id: Id2734d4c9ce591c5746bb9aa55810c78183db38f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135940
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-02-14 17:17:17 +00:00

40 lines
1.2 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
# 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
- 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