-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
81 lines (71 loc) · 2.2 KB
/
.pre-commit-config.yaml
File metadata and controls
81 lines (71 loc) · 2.2 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
repos:
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: check-json
- id: detect-private-key
- id: end-of-file-fixer
- id: pretty-format-json
args: [--autofix]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: git-check
- id: git-dirty
- id: script-must-have-extension
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.23
hooks:
- id: shellcheck
- repo: https://github.com/mineiros-io/pre-commit-hooks
rev: v0.5.1
hooks:
- id: terraform-fmt
files: ^test/data/terraform/.+\.tf$
- id: terraform-validate
files: ^test/data/terraform/.+\.tf$
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
files: ^(pkg|cli|cmd)/(.*/)*.*\.go$
# - id: go-vet
# files: ^(pkg|cli|cmd)/(.*/)*.*\.go$
- id: go-build
files: ^(pkg|cli|cmd)/(.*/)*.*\.go$
- id: go-mod-tidy
files: ^(pkg|cli|cmd)/(.*/)*.*\.go$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.40.0
hooks:
- id: markdownlint
args: [--fix, .]
- repo: https://github.com/tcort/markdown-link-check
rev: v3.12.1
hooks:
- id: markdown-link-check
args:
- -q
- --config=.markdown-link-check.json
- repo: https://github.com/golangci/golangci-lint
rev: v1.58.1
hooks:
- id: golangci-lint
args: [--config, .golangci.yml]