forked from omissis/goarkitect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goarkitect.violations.yaml
48 lines (48 loc) · 1.17 KB
/
.goarkitect.violations.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
# Each rule in this file contains a config that will trigger a warning
---
rules:
- name: mandatory files should exist
kind: file
matcher:
kind: "set"
filePaths:
- wrong.json
- .envrc.dist
- .goarkitect.yaml
- .tool-versions.dist
- go.mod
- go.sum
- main.go
- README.md
shoulds:
- kind: exist
because: "they are mandatory for the project to work"
- name: all files in "cmd/" folder are js files
kind: file
matcher:
kind: all
thats:
- kind: are_in_folder
folder: ./cmd
recursive: false
excepts:
- kind: this
filePath: .DS_Store
shoulds:
- kind: end_with
suffix: .js
because: "only go files are allowed by the project layout"
- name: some dev files and folders are not git ignored
kind: file
matcher:
kind: set
filePaths:
- .envrc
- .idea
- .tool-versions
- .vscode
shoulds:
- kind: be_gitignored
options:
- kind: negated
because: "every developer should be able to choose what behaviors and configurations run on their machine"