-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
64 lines (60 loc) · 1.55 KB
/
.pre-commit-config.yaml
File metadata and controls
64 lines (60 loc) · 1.55 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: &exclude_from_whitespace |
(?x)^(
infra/modules/cloudfront/html/assets/.*$|
support/pipeline-visualiser/public/.*$
)$
- id: end-of-file-fixer
exclude: *exclude_from_whitespace
- id: check-added-large-files
- id: mixed-line-ending
args: ["--fix=lf"]
- id: check-executables-have-shebangs
- id: check-symlinks
- id: destroyed-symlinks
- repo: local
hooks:
- id: terraform-fmt
name: terraform fmt
entry: ./pre-commit-tf-fmt.sh
language: system
files: ^infra/
pass_filenames: true
types_or:
- terraform
- id: tflint
name: tflint
require_serial: true
types_or:
- hcl
- terraform
language: system
files: ^infra/
pass_filenames: true
entry: ./pre-commit-tflint.sh
- id: checkov
name: checkov
entry: ./pre-commit-checkov.sh
language: python
additional_dependencies:
- checkov==3.2.470
require_serial: true
types_or:
- hcl
- terraform
pass_filenames: true
- id: rubocop
name: lint ruby
require_serial: true
types:
- ruby
language: system
entry: make lint_ruby
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint