forked from dart-lang/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
40 lines (37 loc) · 1.1 KB
/
analysis_options.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# https://dart.dev/guides/language/analysis-options
include: package:dart_flutter_team_lints/analysis_options.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
exclude:
- test_fixes/**
errors:
# 43 instances in generated code.
camel_case_types: ignore
# 420 instances in the MDN docs.
comment_references: ignore
# 14 instances in the MDN docs.
lines_longer_than_80_chars: ignore
# 1,333 instances in generated code.
non_constant_identifier_names: ignore
# Consider removing from dart_flutter_team_lints.
unreachable_from_main: ignore
linter:
rules:
- avoid_bool_literals_in_conditional_expressions
- avoid_private_typedef_functions
- avoid_redundant_argument_values
- avoid_returning_this
- avoid_unused_constructor_parameters
- cancel_subscriptions
- join_return_with_assignment
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- no_runtimeType_toString
- package_api_docs
- prefer_const_declarations
- prefer_final_locals
- unnecessary_await_in_return
- use_string_buffers