-
Notifications
You must be signed in to change notification settings - Fork 123
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.45 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
52
53
---
repos:
# - repo: local
# hooks:
# - id: yor
# name: yor
# entry: yor tag -d
# args: ["tests/terraform/mixed/"]
# language: golang
# types: [terraform]
# pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: detect-aws-credentials
- id: detect-private-key
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
hooks:
- id: forbid-tabs
exclude_types: [ python, javascript, dtd, markdown, makefile, xml ]
exclude: binary|\.bin$|rego|\.rego$|go|\.go$
- repo: https://github.com/jameswoolfenden/pre-commit-shell
rev: 0.0.2
hooks:
- id: shell-lint
- repo: https://github.com/bridgecrewio/checkov
rev: 2.2.239
hooks:
- id: checkov
verbose: true
entry: checkov -d . --framework dockerfile github_actions json yaml sca_package sca_image secrets
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.17
hooks:
- id: gofmt
- id: goimports
- id: golint
- repo: https://github.com/golangci/golangci-lint
rev: v1.50.1
hooks:
- id: golangci-lint
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.17
hooks:
- id: go-test
args: [ "./src/..." ]
- id: go-mod-tidy
- id: go-generate