-
Notifications
You must be signed in to change notification settings - Fork 4
/
analysis_options.yaml
40 lines (37 loc) · 1.16 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
# recommended lint rules by google
# see https://dart.dev/guides/language/analysis-options#default-google-rules-pedantic
include: package:lints/recommended.yaml
# custom lint rules
linter:
rules:
prefer_const_constructors : true
prefer_const_constructors_in_immutables : true
prefer_const_declarations : true
prefer_const_literals_to_create_immutables : true
unnecessary_lambdas : true
recursive_getters: true
prefer_final_locals: true
prefer_single_quotes: false
prefer_void_to_null: true
void_checks: true
await_only_futures : true
use_full_hex_values_for_flutter_colors: true
unnecessary_this: false
omit_local_variable_types: false
# make the type system stronger!
# see https://dart.dev/guides/language/analysis-options
analyzer:
exclude: [build/**]
language:
strict-inference: true
strict-raw-types: true
errors:
missing_required_param: error
# treat missing returns as a warning (not a hint)
missing_return: warning
# allow having TODOs in the code
todo: warning
unused_import: warning
uri_has_not_been_generated: warning
dead_code: warning
avoid_dynamic_calls: error