-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add severity levels for violations
- Loading branch information
Showing
49 changed files
with
674 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
musts: | ||
- 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.