-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
51 lines (51 loc) · 1.58 KB
/
.pre-commit-config.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
49
50
51
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# args: ['--maxkb=2048']
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.0
hooks:
- id: go-fmt
# - id: go-imports
- id: no-go-testing
- id: golangci-lint
- id: go-unit-tests
- repo: local
hooks:
- id: go-test-coverage
name: Go Test Coverage
description: Checks for go tests coverage
entry: bash -c 'echo >/dev/tty; go test ./... -cover &>/dev/tty; echo >/dev/tty;'
language: system
always_run: true
pass_filenames: false
- id: osv-scanner
name: osv-scanner
description: Vulnerability scanner written in Go which uses the data provided by https://osv.dev
entry: bash -c 'echo >/dev/tty;$GOPATH/bin/osv-scanner scan ./* &>/dev/tty; echo >/dev/tty;'
always_run: true
pass_filenames: false
language: golang
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v8.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.38.0
hooks:
- id: eslint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck