-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
42 lines (40 loc) · 937 Bytes
/
Copy pathanalysis_options.yaml
File metadata and controls
42 lines (40 loc) · 937 Bytes
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
42
include: package:lints/recommended.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
missing_return: error
unused_import: warning
dead_code: warning
invalid_annotation_target: ignore
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
linter:
rules:
# Style
- camel_case_types
- file_names
- non_constant_identifier_names
- prefer_final_locals
- prefer_const_constructors
- prefer_const_declarations
- prefer_single_quotes
- unnecessary_const
- unnecessary_new
# Docs
- public_member_api_docs
- comment_references
# Error prevention
- avoid_dynamic_calls
- avoid_print
- avoid_returning_null_for_future
- cancel_subscriptions
- close_sinks
- throw_in_finally
# Performance
- prefer_collection_literals
- prefer_spread_collections
- avoid_slow_async_io