-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlefthook.yml
More file actions
31 lines (28 loc) · 831 Bytes
/
lefthook.yml
File metadata and controls
31 lines (28 loc) · 831 Bytes
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
min_version: 1.12.2
output:
- summary
- failure
- execution_out
pre-commit:
commands:
lint:
run: ./vendor/bin/pint --test
agents-symlinks:
run: |
status=0
for claude in $(find . -name CLAUDE.md -not -path './.git/*' -not -path '*/vendor/*' -not -path '*/nativephp/*' -not -path '*/node_modules/*'); do
dir=$(dirname "$claude")
agents="$dir/AGENTS.md"
if [ ! -L "$agents" ]; then
echo "Missing AGENTS.md symlink for $claude"
status=1
elif [ "$(readlink "$agents")" != "CLAUDE.md" ]; then
echo "AGENTS.md in $dir is not a symlink to CLAUDE.md"
status=1
fi
done
exit $status
pre-push:
commands:
types:
run: php -d memory_limit=512M ./vendor/bin/phpstan analyse