chore: go mod tidy + add standalone linter step to lefthook
This commit is contained in:
+8
-2
@@ -44,8 +44,7 @@ pre-commit:
|
||||
stage_fixed: true
|
||||
golangci-lint:
|
||||
glob: '*.go'
|
||||
run: go tool golangci-lint run {staged_files}
|
||||
stage_fixed: true
|
||||
run: go tool golangci-lint run ./...
|
||||
go-test:
|
||||
glob: '*.go'
|
||||
run: go test ./... > /dev/null
|
||||
@@ -63,6 +62,13 @@ test:
|
||||
go:
|
||||
run: go test ./... > /dev/null
|
||||
|
||||
lint:
|
||||
parallel: true
|
||||
commands:
|
||||
golangci-lint:
|
||||
glob: '*.go'
|
||||
run: go tool golangci-lint run ./...
|
||||
|
||||
# Validate commit messages per https://www.conventionalcommits.org/en/v1.0.0/
|
||||
# Install commitlint into your global npm path if you want to use it.
|
||||
# npm install -g @commitlint/{config-conventional,cli}
|
||||
|
||||
Reference in New Issue
Block a user