forked from dartoos-dev/well_formed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
24 lines (24 loc) · 910 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
include: package:lint/analysis_options_package.yaml
analyzer:
strong-mode:
# A value of false ensures that the type inference engine never implicitly casts
# from dynamic to a more specific type.
implicit-casts: false
# A value of false ensures that the type inference engine never chooses the
# dynamic type when it can’t determine a static type.
implicit-dynamic: false
linter:
rules:
# Always await.
unawaited_futures: true
# Make constructors the first thing in every class
sort_constructors_first: true
# Good packages document everything
public_member_api_docs: true
# It's a good practice to expose the ability to provide a key when creating public widgets.
use_key_in_widget_constructors: true
always_declare_return_types: true
cancel_subscriptions: true
close_sinks: true
only_throw_errors: true
package_api_docs: true