-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
72 lines (66 loc) · 1.58 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
include: package:flutterando_analysis/flutter.yaml
analyzer:
plugins:
- architecture_linter
architecture_linter:
excludes:
- "**.g.dart"
lint_severity: error
layers:
- &infra
name: "Infrastructure"
path: "(infra)"
- &domain
name: "Domain"
path: "(domain)"
- &presentation
name: "Presentation"
path: "(presentation)"
- &utils
name: "Utils"
path: "(?<!flutter_)utils"
layers_config:
- layer: *domain
severity: error
- layer: *infra
severity: error
- layer: *presentation
severity: error
- layer: *utils
severity: error
banned_imports:
# Only import the module itself.
- layer: *domain
banned:
- *presentation
- *infra
- *domain
- *utils
# Only import the module itself.
# We allow infra imports for doc comments.
- layer: *infra
banned:
- *presentation
- *domain
- *utils
# Only import the module itself.
- layer: *presentation
banned:
- *presentation
- *infra
- *domain
- *utils
linter:
rules:
package_api_docs: true
public_member_api_docs: true
package_prefixed_library_names: true
library_private_types_in_public_api: true
package_names: true
lines_longer_than_80_chars: false
sort_pub_dependencies: true
join_return_with_assignment: true
prefer_for_elements_to_map_fromIterable: true
null_check_on_nullable_type_parameter: true
enable_null_safety: true
# yet to be released: document_ignores: true