-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
37 lines (32 loc) · 1.04 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
include: package:lint/analysis_options.yaml
# https://github.com/passsy/dart-lint/blob/master/lib/analysis_options.yaml
analyzer:
exclude:
- lib/generated/*.dart
- lib/generated_plugin_registrant.dart
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