forked from slimm609/checksec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 965 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
38
39
40
repos:
- repo: local
hooks:
- id: build_checksec
name: build checksec script
entry: bash ./hack/build.sh
language: system
pass_filenames: false
- id: enable_hooks
name: enable git hooks
entry: bash ./hack/enable-git-hooks.sh
language: system
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: debug-statements
- id: forbid-new-submodules
- id: mixed-line-ending
- repo: https://github.com/fauust/pre-commit-shell
rev: v1.1
hooks:
- id: shfmt
args: ["-sr", "-i", "2", "-ci", "-w"]
- id: shellcheck
files: ^checksec$
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.2.0
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: remove-tabs
- id: forbid-tabs
- repo: https://github.com/sirosen/fix-smartquotes
rev: 0.2.0
hooks:
- id: fix-smartquotes