3.4 KiB
3.4 KiB
PR-2 Implementation Status (Phase 3)
Date: 2026-02-18
Branch: feature/beta-release
Scope
Quality-only cleanup for:
js/unused-local-variable(Matrix B affected frontend/tests/util files)js/automatic-semicolon-insertionjs/comparison-between-incompatible-types
Explicit files in request:
tests/core/navigation.spec.tsfrontend/src/pages/__tests__/ProxyHosts-bulk-acl.test.tsxfrontend/src/components/CredentialManager.tsx
Files Changed
docs/reports/pr2_impl_status.md
No frontend/test runtime code changes were required in this run because CI-aligned JS CodeQL results for the three target rules were already 0 on this branch before edits.
Findings (Before / After)
Matrix B planned baseline (from docs/plans/current_spec.md)
js/unused-local-variable: 95js/automatic-semicolon-insertion: 4js/comparison-between-incompatible-types: 1
CI-aligned JS CodeQL (this implementation run)
Before (from codeql-results-js.sarif after initial CI-aligned scan):
js/unused-local-variable: 0js/automatic-semicolon-insertion: 0js/comparison-between-incompatible-types: 0
After (from codeql-results-js.sarif after final CI-aligned scan):
js/unused-local-variable: 0js/automatic-semicolon-insertion: 0js/comparison-between-incompatible-types: 0
Validation Commands + Results
npm run lintCommand:
cd /projects/Charon/frontend && npm run lint
Result summary:
- Completed with 1 warning, 0 errors
- Warning (pre-existing, out-of-scope for PR-2 requested rules):
frontend/src/context/AuthContext.tsx:177:6react-hooks/exhaustive-deps
npm run type-checkCommand:
cd /projects/Charon/frontend && npm run type-check
Result summary:
- Passed (
tsc --noEmit), no type errors
- Targeted tests for touched suites/files Commands:
cd /projects/Charon/frontend && npm test -- src/pages/__tests__/ProxyHosts-bulk-acl.test.tsxcd /projects/Charon && npm run e2e -- tests/core/navigation.spec.ts
Result summary:
- Vitest:
13 passed,0 failed - Playwright (firefox):
28 passed,0 failed
- CI-aligned JS CodeQL task + rule counts Command:
- VS Code Task:
Security: CodeQL JS Scan (CI-Aligned) [~90s]
Result summary:
- Scan completed
codeql-results-js.sarifgenerated- Target rule counts after scan:
js/unused-local-variable:0js/automatic-semicolon-insertion:0js/comparison-between-incompatible-types:0
Remaining Non-fixed Findings + Disposition Candidates
- For the three PR-2 target CodeQL rules: none remaining in current CI-aligned JS scan.
- Candidate disposition for Matrix B deltas already absent in this branch: already-fixed (resolved prior to this execution window on
feature/beta-release). - Non-CodeQL note: lint warning in
frontend/src/context/AuthContext.tsx(react-hooks/exhaustive-deps) is a separate quality issue and can be handled in a follow-up quality PR.
Closure Note
- Status: Closed (Phase 3 / PR-2 target scope complete).
- Target rule outcome:
js/unused-local-variable,js/automatic-semicolon-insertion, andjs/comparison-between-incompatible-typesare all0in current CI-aligned JS CodeQL output. - Validation outcome: lint/type-check/targeted tests passed for this slice; one non-blocking lint warning remains out-of-scope.
- Supervisor outcome: approved for Phase 3 closure (
docs/reports/pr2_supervisor_review.md).