forked from signalfx/splunk-otel-collector-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (29 loc) · 992 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
29 lines (29 loc) · 992 Bytes
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: render
name: Create the rendered Kubernetes manifest resources for the project examples
entry: make render
language: system
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
exclude: "^examples|^test"
- id: end-of-file-fixer
exclude: "^examples|^test"
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
- id: check-json
- id: check-yaml
# Can't check source yaml since it has go templates in it.
# Can't check operator-webhook.yaml due to redacted TLS certificate information causing yaml format issues.
exclude: "^helm-charts|operator-webhook.yaml"
args: [ --allow-multiple-documents ]
- id: check-added-large-files
args: [ --maxkb=5000 ]