github.com/safedep/dry@v0.0.0-20241016050132-a15651f0548b/lefthook.yml (about) 1 pre-push: 2 parallel: true 3 comands: 4 test: 5 run: go test -v ./... 6 7 pre-commit: 8 parallel: true 9 commands: 10 lint: 11 run: golangci-lint run -n 12 secrets-scanning: 13 files: git diff --name-only --diff-filter=d --staged 14 # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lefthook.yml 15 run: 'if command -v gitleaks > /dev/null 2>&1; then gitleaks protect --no-banner --staged --redact --verbose; else echo "WARNING: gitleaks is not installed. Please install it. See https://github.com/gitleaks/gitleaks#installing"; fi' 16 17