-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathanalysis_options.yaml
41 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
38
39
40
41
include: package:lint/strict.yaml
analyzer:
errors:
invalid_annotation_target: ignore
curly_braces_in_flow_control_structures: ignore
plugins:
- custom_lint
exclude:
- '**/*.g.dart'
- '**/*.freezed.dart'
custom_lint:
rules:
- avoid_public_notifier_properties: false
# If necessary, use (ignore: lint) and (ignore_for_file: lint)
linter:
rules:
# todo: migrate it
# In build method don't correct
no_leading_underscores_for_local_identifiers: false
# conflicts with `prefer_relative_imports`
always_use_package_imports: false
# Personal preference.
prefer_if_elements_to_conditional_expressions: false
# Personal preference.
sort_pub_dependencies: false
# Sometimes the api of packages can change along with the default value.
# It can be hard to keep track of.
avoid_redundant_argument_values: false
# ====================true
# I prefer to explicitly specify which asynchronous functions not to expect
# (use unawaited from dart:async)
unawaited_futures: true