-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.lefthook.yaml
More file actions
30 lines (30 loc) · 1.72 KB
/
Copy path.lefthook.yaml
File metadata and controls
30 lines (30 loc) · 1.72 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
---
assert_lefthook_installed: true
commit-msg:
commands:
checkcommitmsg:
run: 'pnpx commitlint --edit "$1"'
pre-commit:
commands:
build-and-test:
run: './bake build && ./bake test'
check-spelling:
run: cspell-cli lint .
check-formatting:
run: ./node_modules/.bin/prettier --ignore-path <(printf '%s\n' './vendor') --check .
check-linting:
run: ./node_modules/.bin/eslint .
check-shellscript-format:
run: find . \( -name vendor -prune \) -o \( -name .git -prune \) -o \( -name .data -prune \) -o \( -name shell.d -prune \) -o -name '*.sh' -exec shfmt --write --language-dialect bash --binary-next-line {} +
check-shellscript-lint:
run: find . \( -name vendor -prune \) -o \( -name .git -prune \) -o \( -name .data -prune \) -o \( -name shell.d -prune \) -o -name '*.sh' -exec shellcheck --format gcc {} + | grep -v '\(g_disable\|_shell_original_path\|_private\).*SC2154'
check-yaml-format:
run: find . \( -name vendor -prune \) -o \( -name .git -prune \) -o \( -name .data -prune \) -o \( -name shell.d -prune \) -o -name '*.yaml' -o -name '*.yml' -exec yamlfmt -lint {} +
check-yaml-lint:
run: find . \( -name vendor -prune \) -o \( -name .git -prune \) -o \( -name .data -prune \) -o \( -name shell.d -prune \) -o -name '*.yaml' -o -name '*.yml' -exec yamllint --strict {} +
check-github-actions-lint:
run: 'zizmor --strict-collection --min-confidence=low --min-severity=informational --persona=pedantic --config <(printf "rules:\n anonymous-definition:\n disable: true\n undocumented-permissions:\n disable: true\n") .github'
check-toml-format:
run: 'tombi format --check'
check-toml-lint:
run: 'tombi lint --error-on-warnings'