-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathanalysis_options.yaml
41 lines (38 loc) · 1.04 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
41
include: package:flutter_lints/flutter.yaml
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
analyzer:
exclude:
- "lib/**/*.g.dart"
- "lib/**/*.gql.dart"
strong-mode:
implicit-casts: false
implicit-dynamic: false
errors:
# treat missing required parameters as a warning (not a hint)
missing_required_param: warning
# treat missing returns as a warning (not a hint)
missing_return: warning
# treat package imports as a warning
prefer_relative_imports: warning
# allow having TODOs in the code
todo: ignore
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
linter:
rules:
- prefer_relative_imports
- always_declare_return_types
- cancel_subscriptions
- await_only_futures
- eol_at_end_of_file
- close_sinks
- file_names
- comment_references
- one_member_abstracts
- only_throw_errors
- package_api_docs
- prefer_final_in_for_each
- prefer_single_quotes