-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.pre-commit-config.yaml
70 lines (66 loc) · 2.31 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: no-commit-to-branch
- id: check-merge-conflict
- id: check-yaml
exclude: ^rook/helmfile.d/upstream/|^rook/helmfile.d/charts/.*/templates/|^rook/helmfile.d/helmfile.yaml$
args:
- --allow-multiple-documents
- id: check-json
exclude: ^rook/helmfile.d/upstream/
- id: detect-private-key
exclude: ^rook/helmfile.d/upstream/
- id: end-of-file-fixer
exclude: ^rook/helmfile.d/upstream/
- id: trailing-whitespace
exclude: ^rook/helmfile.d/upstream/
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
name: lint markdown
args:
- --disable
- MD013 # Line length
- MD024 # Multiple headings with the same content
- MD026 # Trailing punctuation in heading
- MD028 # Blank line inside blockquote
- MD029 # Ordered list item prefix
- MD033 # Inline HTML
- MD034 # Bare URL used
- MD036 # Emphasis used instead of a heading
- MD040 # Fenced code blocks should have a language specified
- MD041 # First line in a file should be a top-level heading
- MD042 # No empty links
- MD051 # Link fragments should be valid
- --
exclude: ^rook/helmfile.d/upstream/|^changelog/
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.3
hooks:
- id: editorconfig-checker
name: check indentation
exclude: ^.gitmodules$|^LICENSE$|^rook/helmfile.d/upstream/|^migration/v2.24/upgrade-cluster.md$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
name: check spelling
exclude: ^rook/helmfile.d/upstream/|^rook/helmfile.d/charts/rook-ceph-crds/templates/cephclusters.yaml$
args:
- -L
- fpr
- -I
- .codespellignore
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
name: check scripts
exclude: ^rook/helmfile.d/upstream/
require_serial: true
args:
- --color=always
- --external-sources