-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathanalysis_options.yaml
55 lines (46 loc) · 1.67 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
include: package:mews_pedantic/analysis_options.yaml
linter:
rules:
- prefer_relative_imports
analyzer:
exclude:
- "**/*.mocks.dart"
- "**/*.gr.dart"
- "test/generated/**"
- "lib/gen/**"
- "lib/l10n/gen/**"
- "lib/di.config.dart"
errors:
always_use_package_imports: ignore
avoid_relative_lib_imports: ignore
deprecated_member_use_from_same_package: ignore
dart_code_metrics:
rules:
avoid-passing-self-as-argument: false
prefer-overriding-parent-equality: false # too many false positives, temporarily disabled
avoid-unnecessary-collections: false # too many false positives, temporarily disabled
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"
- paths: [".*/utils/.+\\.dart"]
deny: [".*/(features|ui)/.*"]
message: "Do not import features|ui from utils"
avoid-nullable-interpolation:
exclude:
- test/**
prefer-correct-handler-name: false
rules-exclude:
- "**/*.gr.dart"
- "**/generated_plugin_registrant.dart"