-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (34 loc) · 1.09 KB
/
.pre-commit-config.yaml
File metadata and controls
38 lines (34 loc) · 1.09 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
repos:
# 1. Secret Scanning
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
# 2. Standard YAML and whitespace linting
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: gams-engine/resources/.*
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
exclude: gams-engine/templates/ # Helm templates use Go templating which breaks standard YAML parsers
# 3. Helm Documentation Generation
- repo: https://github.com/norwoodj/helm-docs
rev: v1.14.2
hooks:
- id: helm-docs
args:
- --template-files=./README.md.gotmpl
# 4. Helm Specific Linting (Built-in)
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.30
hooks:
- id: helmlint
# 5. Security & Best Practices (Kube-linter)
- repo: https://github.com/stackrox/kube-linter
rev: v0.8.2
hooks:
- id: kube-linter