Risk
Every changed code file, riskiest first. Risk points (0–100, as in the merge risk score) combine its reach with what its diff coverage leaves and its findings. Reach: centrality of each changed file in the import graph: who uses it directly, how many files depend on it through any chain of imports, and how many of the 4 existing pages reach it. High: used by at least half of the pages (or 10+ pages). Medium: used by some page, or by 10+ files, or new code inside existing pages, or deleted. Low: additive, or not used by existing pages.
| File | Change | Reach (existing pages) | Diff coverage | Findings | Risk points | Why |
|---|---|---|---|---|---|---|
| format.ts | additive | low 0 / 4 | 67% | 1 lint | 6 | additive change: nothing that existed changed |
| discount.ts | added | low 0 / 4 | 0% | 2 | new code not used by existing pages |
Security
Static analysis of added lines
XSS sinks, dynamic code execution, hard-coded credentials, javascript: URLs, unsafe cross-window messaging, links without rel=noopener and plain-HTTP URLs on the lines this PR adds (tests and stories excluded).
None.
Vulnerabilities in added or changed dependencies
From the npm/pnpm audit report of the head: advisories on packages this PR added or changed (direct) or on packages they bring in (transitive).
Not verified no audit report given (--audit or signals.audit)
Dependencies
No dependency change in this PR.
Coverage
Diff coverage
Files present in the report only: 66.7% (4 / 6).
| File | Changed executable lines | Covered | Uncovered ranges |
|---|---|---|---|
| format.ts | 6 | 4 | 7, 14 |
| discount.ts missing from the report | 3 | 0 | 1–3 |
Lint on changed lines
1 error(s) and 1 warning(s) on changed lines; 1 error(s) and 1 warning(s) elsewhere in the files.
| Location | Severity | Rule | Message |
|---|---|---|---|
| format.ts:9 | error | no-magic-numbers | No magic number: 100. |
| format.ts:14 | warning | no-nested-ternary | Do not nest ternary expressions. |
Added suppressions
None.
Modified existing tests
None.
Routes
Pages with changes: 0 affected, 0 new
None.
New files no route reaches
Files
Source (2)
| File | Status | + | − | Additive rule |
|---|---|---|---|---|
| discount.ts | added | 3 | 0 | |
| format.ts | modified | 12 | 0 | additive |
Tests (1)
| File | Status | + | − | Additive rule |
|---|---|---|---|---|
| format.test.ts | added | 6 | 0 |
Details
All reasons (3)
| Reason | File | Detail |
|---|---|---|
only new declarations, comments or formattingdeclarations-additive | format.ts | only additions: new declarations src/lib/format.ts#formatCount, src/lib/format.ts#formatPercent |
new file no route reachesnew-file-disconnected | discount.ts | new file that no route reaches |
no existing code touchedno-existing-code-touched | the PR only adds new files, routes, exports or keys, or changes tests |
Diagnostics
Routes farol cannot read (0)
None.
Unresolved imports (0)
None.
Syntax errors (0)
None.
Time per stage (ms)
diff 0 · readTree 0 · program 0 · graph 0 · routes 0 · base 0 · classify 0 · signals 0 · diffs 0