refactor(*): 代码质量 - 优化前后端实现并完善协议与画布验证

This commit is contained in:
ddcat666
2026-10-08 19:38:57 +08:00
parent d74f783912
commit 295374650a
724 changed files with 3046 additions and 3885 deletions

View File

@@ -62,7 +62,14 @@ jobs:
sudo apt-get install -y -qq redis-server
sudo systemctl stop redis-server || true
- name: Check formatting
run: test -z "$(gofmt -l .)"
shell: bash
run: |
unformatted="$(gofmt -l .)"
if [ -n "$unformatted" ]; then
printf '%s\n' "$unformatted"
echo "::error::Go files require gofmt. Run gofmt -w on the files listed above."
exit 1
fi
- name: Run Go tests
shell: bash
run: |