-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
53 lines (48 loc) · 1.33 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# Identify invalid files
# git checks
- id: check-json
- id: trailing-whitespace
exclude: public|\*/_index\.md
- id: end-of-file-fixer
- id: check-yaml
exclude: \.drone\.yml
- id: check-merge-conflict
- id: check-added-large-files
args: ['--maxkb=500']
- id: mixed-line-ending
args: ['--fix=lf']
- id: detect-private-key
- id: check-case-conflict
- id: pretty-format-json
args:
- --autofix
- id: detect-private-key
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint
exclude: binary|\.bin$|public|themes
- repo: https://github.com/jameswoolfenden/pre-commit-shell
rev: v1.0.6
hooks:
- id: shell-lint
exclude: template|\.template$
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: forbid-tabs
exclude_types: [python, javascript, dtd, markdown, makefile, xml]
exclude: binary|\.bin$|public
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.1
hooks:
- id: gitleaks
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v0.20.0
hooks:
- id: stylua