-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
36 lines (34 loc) · 1.18 KB
/
Copy pathanalysis_options.yaml
File metadata and controls
36 lines (34 loc) · 1.18 KB
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
# Shared analysis rules. Every package points here so a lint cannot be enabled
# in one corner of the monorepo and not another.
include: package:flutter_lints/flutter.yaml
analyzer:
language:
strict-casts: true
strict-raw-types: true
errors:
# CI runs `flutter analyze --fatal-infos`, so anything that should block a
# merge is raised to a warning or error here rather than left as an info.
todo: ignore
# freezed models declare fields as constructor parameters, which is the
# only place @JsonKey can go. json_serializable forwards the annotation
# correctly; the analyzer just cannot see that. Silenced here rather than
# at each model, because every model LabFox adds would repeat it.
invalid_annotation_target: ignore
missing_required_param: error
missing_return: error
exclude:
- "**/*.freezed.dart"
- "**/*.g.dart"
linter:
rules:
- always_declare_return_types
- avoid_print
- directives_ordering
- prefer_const_constructors
- prefer_const_declarations
- prefer_final_locals
- prefer_single_quotes
- require_trailing_commas
- sort_pub_dependencies
- unawaited_futures
- use_super_parameters