-
Notifications
You must be signed in to change notification settings - Fork 246
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.3 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
---
repos:
# General hooks section
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
exclude: (helm/.*/templates)|(updatecli.d/.*-manifest.ya?ml)
- id: check-json
- id: check-merge-conflict
- id: fix-byte-order-marker
- id: mixed-line-ending
args: ["--fix=lf"]
- id: end-of-file-fixer
exclude: README.md
# Helm hooks section (excluded in pre-commit-compose workflow)
- repo: https://github.com/norwoodj/helm-docs
rev: v1.11.0
hooks:
- id: helm-docs
- repo: https://github.com/Alfresco/alfresco-build-tools
rev: v2.1.0
hooks:
- id: helm-deps-build
- id: helm-lint
- repo: https://github.com/bridgecrewio/checkov.git
rev: 2.3.288
hooks:
- id: checkov
files: \.yaml$
args:
- --quiet
- --compact
# Docker Compose hooks section (excluded in pre-commit-helm workflow)
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v2.1.1
hooks:
- id: docker-compose-check
exclude: override-docker-compose.yml
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.2
hooks:
- id: markdownlint
args: ["--ignore", "helm/**/README.md"]