ci: ignore tests in line gate and raise frontend limit

This commit is contained in:
CJACK.
2026-03-16 22:58:13 +08:00
parent 90610a52ce
commit d35e5eab25
3 changed files with 37 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
# Line gate targets for large-file decoupling refactor.
# Default limit: 300 lines
# Backend default limit: 300 lines
# Frontend (webui/) default limit: 500 lines
# Entry/facade limit: 120 lines (enforced in script)
# Test files are ignored by the gate script.
internal/config/config.go
internal/config/logger.go

View File

@@ -2,10 +2,11 @@
## Rules
1. Production file default upper bound: `<= 300` lines.
2. Entry/facade files upper bound: `<= 120` lines.
3. Scope is limited to target files in `plans/refactor-line-gate-targets.txt`.
4. Test files are out of scope for this gate.
1. Backend production files upper bound: `<= 300` lines.
2. Frontend (`webui/`) production files upper bound: `<= 500` lines.
3. Entry/facade files upper bound: `<= 120` lines.
4. Scope is limited to target files in `plans/refactor-line-gate-targets.txt`.
5. Test files are out of scope for this gate.
## Command