-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
55 lines (49 loc) · 1.52 KB
/
.pre-commit-hooks.yaml
File metadata and controls
55 lines (49 loc) · 1.52 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
---
# This configuration file allows our pre-commit hooks to be used with
# pre-commit: http://pre-commit.com/
- id: terraform-fmt
name: Terraform fmt
description: Rewrites all Terraform configuration files to a canonical format
entry: hooks/terraform-fmt.sh
language: script
files: \.tf$
exclude: '(^|.*/)(\.terraform|examples)/'
require_serial: true
- id: terraform-validate
name: Terraform validate
description: Runs 'terraform validate'
entry: hooks/terraform-validate.sh
language: script
files: \.tf$
exclude: '(^|.*/)(\.terraform|examples)/'
require_serial: true
- id: pipeline-generator
name: pipeline-generator
description: Generate ci config automatically.
entry: hooks/pipeline-generator.sh
language: script
pass_filenames: false
- id: helm-lint
name: Helm lint
description: Runs 'helm lint' on Helm charts
entry: hooks/helm-lint.sh
language: script
files: (Chart\.yaml|values.*\.yaml|templates/.*\.yaml)$
exclude: '(^|.*/)(\.terraform|examples)/'
require_serial: true
- id: yamllint
name: YAML Lint
description: Validates YAML syntax and style
entry: hooks/yamllint.sh
language: script
files: \.(yaml|yml)$
exclude: '(^|.*/)(\.terraform|examples)/'
require_serial: false
- id: helm-template-check
name: Helm template check
description: Validates that Helm templates can render without errors
entry: hooks/helm-template-check.sh
language: script
files: (Chart\.yaml|values.*\.yaml|templates/.*\.yaml)$
exclude: '(^|.*/)(\.terraform|examples)/'
require_serial: true