-
Notifications
You must be signed in to change notification settings - Fork 5
/
analysis_options.yaml
35 lines (28 loc) · 1006 Bytes
/
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
include: package:mews_pedantic/analysis_options.yaml
linter:
rules:
- prefer_relative_imports
analyzer:
errors:
always_use_package_imports: ignore
avoid_relative_lib_imports: ignore
exclude:
- "**/di.config.dart"
- "**/*.gr.dart"
dart_code_metrics:
rules:
avoid-banned-imports:
severity: error
entries:
- paths: [".*/models/.+\\.dart"]
deny: [".*/(data|services|widgets|screens|ui|l10n)/.*"]
message: "Do not import data|services|widgets|screens|ui|l10n from models"
- paths: [".*/data/.+\\.dart"]
deny: [".*/(services|widgets|screens|ui)/.*"]
message: "Do not import services|widgets|screens|ui from data"
- paths: [".*/services/.+\\.dart"]
deny: [".*/(widgets|screens|ui|l10n)/.*"]
message: "Do not import widgets|screens|ui|l10n from services"
- paths: [".*/ui/.+\\.dart"]
deny: [".*/features/.*"]
message: "Do not import features from ui"