-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
70 lines (64 loc) · 1.71 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
hooks:
- id: gitleaks
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.23
hooks:
- id: terraform-fmt
- id: terraform-validate
- id: tflint
- id: shellcheck
- repo: https://github.com/mxab/pre-commit-trivy.git
rev: v0.12.0
hooks:
- id: trivyfs-docker
args: ["."]
- id: trivyconfig-docker
args: ["."]
# - repo: https://github.com/terraform-docs/terraform-docs
# rev: v0.16.0
# hooks:
# - id: terraform-docs-system
# args:
# [
# "markdown",
# "--output-file",
# "README.md",
# "--hide-empty",
# "--indent",
# "3",
# ".",
# ]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
exclude_types:
- markdown
- id: prettier
name: prettier markdown
types:
- markdown
args: ["--prose-wrap", "always"]
- repo: https://github.com/golangci/golangci-lint
rev: v1.60.1
hooks:
- id: golangci-lint-full
entry: bash -c 'cd test && golangci-lint run --fix'
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint-fix-docker
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-json
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs