Skip to content

Commit 7b6d818

Browse files
committed
Add markdownlint, shellcheck, and reuse hooks
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
1 parent 6a10e1a commit 7b6d818

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

common.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,26 @@ repos:
3131
- id: trailing-whitespace
3232
args:
3333
- --markdown-linebreak-ext=md
34+
35+
# Check Markdown documents with Markdownlint(Node.js variant)
36+
# https://github.com/DavidAnson/markdownlint
37+
- repo: https://github.com/igorshubovych/markdownlint-cli
38+
rev: v0.23.2
39+
hooks:
40+
- id: markdownlint
41+
42+
# Check shell scripts with ShellCheck
43+
# NOTE: ShellCheck must be available in the command search PATHs
44+
# https://www.shellcheck.net/
45+
# https://github.com/jumanjihouse/pre-commit-hooks#shellcheck
46+
- repo: https://github.com/jumanjihouse/pre-commit-hooks
47+
rev: 2.1.5
48+
hooks:
49+
- id: shellcheck
50+
51+
# Check REUSE compliance
52+
# https://reuse.software/
53+
- repo: https://github.com/fsfe/reuse-tool
54+
rev: v0.12.1
55+
hooks:
56+
- id: reuse

0 commit comments

Comments
 (0)