-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.25 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "^_site/.*$"
repos:
# All files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
args: [--maxkb=2048]
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
# Some exclusions
- id: trailing-whitespace
exclude: "^.*drawio$"
- id: end-of-file-fixer
exclude: "^.*drawio$"
- id: check-yaml
exclude: "^.*drawio$"
- id: check-json
exclude: "^.*drawio$"
- id: check-xml
exclude: "^.*drawio$"
- id: check-toml
exclude: "^.*drawio$"
- id: detect-private-key
exclude: "^.*drawio$"
- id: detect-aws-credentials
exclude: "^.*drawio$"
- id: check-ast
exclude: "^.*drawio$"
- id: check-shebang-scripts-are-executable
# - repo: https://github.com/streetsidesoftware/cspell-cli
# rev: v6.31.0
# hooks:
# - id: cspell
# docker run --rm -v $PWD:/app madewithlove/htaccess-cli -p _site https://orionrobots.co.uk/wiki/usb - verified htaccess on one file. But doesnt validate whole file syntax.