-
-
Notifications
You must be signed in to change notification settings - Fork 220
/
analysis_options.yaml
31 lines (29 loc) · 1.09 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
include: package:flutter_lints/flutter.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
# treat missing required parameters as a warning (not a hint)
missing_required_param: error
# treat missing returns as a warning (not a hint)
missing_return: error
# allow having TODOs in the code
todo: ignore
# allow self-reference to deprecated members (we do this because otherwise we have
# to annotate every member in every test, assert, etc, when we deprecate something)
deprecated_member_use_from_same_package: warning
# ignore sentry/path on pubspec as we change it on deployment
invalid_dependency: ignore
linter:
rules:
prefer_relative_imports: true
unnecessary_brace_in_string_interps: true
implementation_imports: true
prefer_const_literals_to_create_immutables: false
prefer_const_constructors: false
library_private_types_in_public_api: false
no_leading_underscores_for_local_identifiers: false
prefer_function_declarations_over_variables: false
unawaited_futures: true