-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
33 lines (29 loc) · 979 Bytes
/
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
include: package:lint/analysis_options.yaml
# https://github.com/passsy/dart-lint/blob/master/lib/analysis_options.yaml
analyzer:
strong-mode:
# Will become the default once non-nullable types land
# https://github.com/dart-lang/sdk/issues/31410#issuecomment-510683629
implicit-casts: false
implicit-dynamic: false
linter:
rules:
# turn on
prefer_single_quotes: true
always_put_control_body_on_new_line: true
avoid_renaming_method_parameters: true
avoid_slow_async_io: true
prefer_foreach: true
sort_constructors_first: true
unawaited_futures: true
# turn off
avoid_print: false
avoid_classes_with_only_static_members: false
avoid_setters_without_getters: false
file_names: false
join_return_with_assignment: false
avoid_function_literals_in_foreach_calls: false
sort_pub_dependencies: false
# turn off if annoying
# prefer_final_locals: false
# prefer_const_constructors: false