-
Notifications
You must be signed in to change notification settings - Fork 8
/
analysis_options.yaml
39 lines (32 loc) · 1.31 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
include: all_lint_rules.yaml
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: false
errors:
# Otherwise cause the import of all_lint_rules to warn because of some rules conflicts.
# We explicitly enabled even conflicting rules and are fixing the conflict
# in this file
included_file_warning: ignore
linter:
rules:
# Conflicts with `prefer_single_quotes`
# Single quotes are easier to type and don't compromise on readability.
prefer_double_quotes: false
# Conflicts with `avoid_final_parameters`
prefer_final_parameters: false
# Conflicts with `omit_local_variable_types` and other rules.
# As per Dart guidelines, we want to avoid unnecessary types to make the code
# more readable.
# See https://dart.dev/guides/language/effective-dart/design#avoid-type-annotating-initialized-local-variables
always_specify_types: false
# Incompatible with `prefer_final_locals`
# Having immutable local variables makes larger functions more predictable
# so we will use `prefer_final_locals` instead.
unnecessary_final: false
# It's kind of annoying
lines_longer_than_80_chars: false
# Don't make code more readable
cascade_invocations: false
# conflicts with `prefer_relative_imports`
always_use_package_imports: false