-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
54 lines (51 loc) · 1.37 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
54 lines (51 loc) · 1.37 KB
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
# .pre-commit-config.yaml
ci:
autofix_prs: false
autoupdate_schedule: quarterly
default_install_hook_types:
- pre-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
args: ['--markdown-linebreak-ext=md']
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-added-large-files
args: ['--maxkb=1024']
- id: detect-private-key
- id: check-yaml
args: ['--allow-multiple-documents']
exclude: ^deploy/[h]elm/[^/]+/templates/
- id: check-json
- id: check-toml
- id: check-xml
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-symlinks
- id: destroyed-symlinks
- id: mixed-line-ending
args: ['--fix=lf']
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: no-commit-to-branch
args:
- --branch
- main
- --branch
- master
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
- repo: https://github.com/semgrep/semgrep
rev: v1.170.0
hooks:
- id: semgrep
args:
- --config=.semgrep.yml
- --error
- --disable-version-check
- --metrics=off
- --skip-unknown-extensions