-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update README * bump golangci-lint version * add gitlab-ci lint to pre-commit config
- Loading branch information
FalcoSuessgott
authored
Aug 10, 2021
1 parent
533c028
commit bf5e638
Showing
8 changed files
with
58 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
repos: | ||
- repo: git://github.com/dnephin/pre-commit-golang | ||
rev: master | ||
hooks: | ||
- id: go-fmt | ||
- id: go-vet | ||
- id: go-lint | ||
- id: go-imports | ||
- id: go-cyclo | ||
args: [-over=15] | ||
- id: no-go-testing | ||
- id: golangci-lint | ||
- id: go-critic | ||
- id: go-unit-tests | ||
- id: go-build | ||
- id: go-mod-tidy | ||
# golang pre commits | ||
- repo: git://github.com/dnephin/pre-commit-golang | ||
rev: master | ||
hooks: | ||
- id: go-fmt | ||
- id: go-vet | ||
- id: go-lint | ||
- id: go-imports | ||
- id: go-cyclo | ||
args: [-over=15] | ||
- id: no-go-testing | ||
- id: golangci-lint | ||
args: ["--skip-dirs=vendor -c .golang-ci.yml ."] | ||
- id: go-critic | ||
- id: go-unit-tests | ||
- id: go-build | ||
- id: go-mod-tidy | ||
|
||
# gitlab ci lint | ||
- repo: https://github.com/FalcoSuessgott/lint-gitlab-ci | ||
rev: v0.0.4 | ||
hooks: | ||
- id: gitlab-ci |
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