-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
51 lines (47 loc) · 1.51 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
41
42
43
44
45
46
47
48
49
50
51
# See: https://dart-lang.github.io/linter/lints/
include: package:lint/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: true
errors:
# treat missing required parameters as a warning (not a hint)
missing_required_param: warning
# treat missing returns as a warning (not a hint)
missing_return: warning
todo: ignore
exclude:
- lib/**.g.dart
linter:
rules:
always_declare_return_types: true
always_put_required_named_parameters_first: true
always_specify_types: false
annotate_overrides: true
avoid_bool_literals_in_conditional_expressions: true
avoid_classes_with_only_static_members: false
avoid_print: true
avoid_unnecessary_containers: true
await_only_futures: true
curly_braces_in_flow_control_structures: true
directives_ordering: true
empty_catches: true
file_names: true
omit_local_variable_types: true
prefer_adjacent_string_concatenation: true
prefer_foreach: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_is_not_operator: true
prefer_spread_collections: true
sort_constructors_first: true
sort_pub_dependencies: true
type_annotate_public_apis: false
unawaited_futures: true
unnecessary_lambdas: true
unnecessary_null_in_if_null_operators: true
unnecessary_overrides: true
unnecessary_parenthesis: true
unnecessary_this: true
use_function_type_syntax_for_parameters: false
use_rethrow_when_possible: true
use_setters_to_change_properties: false