-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
37 lines (34 loc) · 971 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: check-yaml
name: check-yaml
args: [ --allow-multiple-documents ]
exclude: ^helm-chart\/templates\/.*$
- id: check-json
- id: check-case-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
args: [ --fix=lf ]
- id: trailing-whitespace
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint
name: lint dockerfiles
description: lint Dockerfiles
- repo: local
hooks:
- id: helm-lint
name: helm lint
description: lint helm chart
entry: helm lint helm-chart
language: system
pass_filenames: false
always_run: true
- id: spotless-apply
name: apply spotless (java code formatter)
entry: ./gradlew spotlessApply
language: system
pass_filenames: false