-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
32 lines (30 loc) · 956 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
# see: https://github.com/passsy/dart-lint/blob/master/lib/strict.yaml
include: package:lint/strict.yaml
analyzer:
errors:
invalid_override_of_non_virtual_member: error
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
exclude:
- lib/api/api.graphql.dart
- lib/api/api.graphql.g.dart
- lib/amplifyconfiguration.dart
# all: https://dart-lang.github.io/linter/lints/index.html
linter:
rules:
always_put_control_body_on_new_line: true
avoid_classes_with_only_static_members: false
avoid_dynamic_calls: true
avoid_redundant_argument_values: false
combinators_ordering: true
literal_only_boolean_expressions: true
omit_local_variable_types: true
only_throw_errors: true
prefer_single_quotes: true
unawaited_futures: true
unnecessary_constructor_name: true
unnecessary_lambdas: true
unnecessary_late: true
use_key_in_widget_constructors: true