-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
42 lines (37 loc) · 1.13 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-symlinks
- id: end-of-file-fixer
- id: check-yaml
exclude: ^(project-operator|user-tools-operator|hack/scripts/helmfile/helmfile.yaml)/
- repo: https://github.com/zricethezav/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: golangci-lint
args: ['--config', '.github/.golangci.yml', 'app/api/...', 'repo-cloner/...']
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.24
hooks:
- id: helmlint
files: ^(project-operator|user-tools-operator)/
- repo: https://github.com/norwoodj/helm-docs
rev: v1.14.2
hooks:
- id: helm-docs
files: ^(project-operator|user-tools-operator)/.*(README\.md\.gotmpl|(Chart|requirements|values)\.yaml)$
- repo: local
hooks:
- id: go-tidy-all-modules
name: go-tidy-all-modules
entry: hack/scripts/go_tidy_all_modules.sh
language: script
pass_filenames: false