-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathanalysis_options.yaml
40 lines (32 loc) · 954 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
34
35
36
37
38
39
include: package:lints/recommended.yaml
analyzer:
exclude:
- example/**
#- test/**
language:
strict-casts: true
strict-raw-types: true
strict-inference: true
errors:
unawaited_futures: error
unrelated_type_equality_checks: error
tighten_type_of_initializing_formals: error
discarded_futures: error # Don't invoke asynchronous functions in non-async blocks.
linter:
rules:
unnecessary_this: false
constant_identifier_names: false
avoid_print: false
unawaited_futures: true
unnecessary_await_in_return: true
prefer_const_declarations: true
prefer_final_locals: true
prefer_final_fields: true
prefer_final_parameters: true
prefer_final_in_for_each: true
always_declare_return_types: true
unrelated_type_equality_checks: true
tighten_type_of_initializing_formals: true
unnecessary_lambdas: true
use_decorated_box: true
use_colored_box: true