CI: enforce 500-line file limit

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:37:22 -04:00
1 parent a27727bc71
commit a1ae2e77c2
1 file changed
+5
+5
View File
@@ -33,6 +33,11 @@ jobs:
- name: Format
if: runner.os == 'Linux'
run: test -z "$(gofmt -l .)" || { gofmt -l .; exit 1; }
- name: File size limit
if: runner.os == 'Linux'
run: |
big=$(git ls-files '*.go' '*.html' | xargs wc -l | awk '$2!="total" && $1>500')
test -z "$big" || { echo "$big"; exit 1; }
- name: Build and vet every platform
if: runner.os == 'Linux'
run: |