fix(ci): remove maintainability baseline gate blocking releases

The maintainability gate (process.exit count + sync FS API count) was
a raw grep counter that provided no actionable signal for a CLI tool.
It blocked the v7.53.0 stable release because new features naturally
increased the counts beyond the baseline.

Removed:
- scripts/maintainability-baseline.js
- scripts/maintainability-check.js
- docs/metrics/maintainability-baseline.json
- All maintainability:* npm scripts
- Gate references from release, dev-release, and CI workflows

Quality gates retained: typecheck, eslint, prettier, full test suite.
This commit is contained in:
Tam Nhu Tran committed 2026-03-11 10:51:05 +07:00
1 parent 447033cb03
commit 03a0fb27ca
7 files changed
+4 -491

No files matched your search

+1 -5
View File
@@ -65,13 +65,9 @@
"lint:fix": "eslint src/ --fix",
"format": "prettier --write src/",
"format:check": "prettier --check src/",
"validate": "bun run typecheck && bun run lint:fix && bun run format:check && bun run maintainability:check && bun run test:all",
"validate": "bun run typecheck && bun run lint:fix && bun run format:check && bun run test:all",
"validate:ci-parity": "bash scripts/ci-parity-gate.sh",
"verify:bundle": "node scripts/verify-bundle.js",
"maintainability:baseline": "node scripts/maintainability-baseline.js --out docs/metrics/maintainability-baseline.json",
"maintainability:check": "node scripts/maintainability-check.js",
"maintainability:check:strict": "node scripts/maintainability-check.js --strict",
"maintainability:check:warn": "node scripts/maintainability-check.js --warn",
"test": "bun run build && bun run test:all",
"test:ci": "bun run test:all",
"test:all": "bun test tests/unit tests/integration tests/npm",