Enforce local and CI quality gates
This commit is contained in:
parent
03072e0ea7
commit
8f035abb3a
|
|
@ -53,7 +53,7 @@ jobs:
|
|||
node-version: 22
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run knip
|
||||
- run: npm run lint:dead
|
||||
|
||||
duplicates:
|
||||
name: Duplicate Code (jscpd)
|
||||
|
|
@ -89,7 +89,7 @@ jobs:
|
|||
node-version: 22
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm test -- --reporter=verbose --reporter=junit --outputFile.junit=test-results.xml
|
||||
- run: npm run test:coverage -- --reporter=verbose --reporter=junit --outputFile.junit=test-results.xml
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
npx oxlint --fix
|
||||
npx lint-staged
|
||||
npm run typecheck
|
||||
|
|
|
|||
|
|
@ -22,6 +22,18 @@ npm run verify:package
|
|||
npm pack --dry-run
|
||||
```
|
||||
|
||||
`npm install` prepares the Husky pre-commit hook. Commits format and lint staged
|
||||
files with lint-staged, then typecheck the complete project. The normal test and
|
||||
CI coverage runs enforce the thresholds in `vitest.config.ts`; `npm run
|
||||
lint:dead` rejects unused files, exports, and dependencies.
|
||||
|
||||
Set `REA_LOG_LEVEL` to `trace`, `debug`, `info`, `warn`, `error`, `fatal`, or
|
||||
`silent` to control structured JSON diagnostics. MCP mode defaults to `info` and
|
||||
always writes logs to stderr so the stdio protocol remains intact. One-shot CLI
|
||||
logging is opt-in and writes to stdout when a level is configured, preserving
|
||||
machine-readable command output by default. Request arguments, bridge
|
||||
authentication tokens, and environment data are redacted.
|
||||
|
||||
Changes that claim real Hopper behavior must also be tested against two distinct binaries:
|
||||
|
||||
```bash
|
||||
|
|
|
|||
16
knip.json
16
knip.json
|
|
@ -15,15 +15,15 @@
|
|||
"ignore": ["dist/**", "docs/**", ".codex/**", ".devin/**"],
|
||||
"ignoreDependencies": [],
|
||||
"rules": {
|
||||
"files": "warn",
|
||||
"dependencies": "warn",
|
||||
"devDependencies": "warn",
|
||||
"files": "error",
|
||||
"dependencies": "error",
|
||||
"devDependencies": "error",
|
||||
"unlisted": "error",
|
||||
"exports": "warn",
|
||||
"nsExports": "warn",
|
||||
"types": "warn",
|
||||
"nsTypes": "warn",
|
||||
"enumMembers": "warn",
|
||||
"exports": "error",
|
||||
"nsExports": "error",
|
||||
"types": "error",
|
||||
"nsTypes": "error",
|
||||
"enumMembers": "error",
|
||||
"duplicates": "error"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue