chore(lint): enable no-zero-fractions#81045
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 28, 2026, 12:53 AM ET / 04:53 UTC. Summary PR surface: Source 0, Tests +1, Other +1. Total +2 across 22 files. Reproducibility: not applicable. as a cleanup PR rather than a runtime bug. The PR body does provide a high-signal before lint probe and after terminal output for the lint wrapper, config test, and changed checks. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused lint cleanup after preserving the broader tracker and resolving current-main conflicts. Do we have a high-confidence way to reproduce the issue? Not applicable as a cleanup PR rather than a runtime bug. The PR body does provide a high-signal before lint probe and after terminal output for the lint wrapper, config test, and changed checks. Is this the best way to solve the issue? Yes for the code direction: enabling the rule, applying mechanical numeric-literal fixes, and extending the config coverage test is the narrow maintainable path. The merge path still needs PR metadata cleanup and a rebase before it is safe to land. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against f7c32fc8befd. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source 0, Tests +1, Other +1. Total +2 across 22 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@vincentkoc could you please review my PR and give me feedback? Thanks. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper PR egg: ✨ hatched 🥚 common Mossy Crabkin. Rarity: 🥚 common. Trait: purrs at green checks. DetailsShare on X: post this hatch
About:
|
Summary
unicorn/no-zero-fractionsstill had 52 hits on currentmain.unicorn/no-zero-fractions, applied its mechanical fixes, and added it to the oxlint config coverage test.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
unicorn/no-zero-fractionsis now enforced and the previous 52 zero-fraction literals are cleaned up.fix/80504-no-zero-fractions, based on upstreammainfce4f10e96.node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.json src ui packages extensions scriptspnpm test test/scripts/oxlint-config.test.ts -- --reporter=verbosepnpm check:changedunicorn/no-zero-fractionsenabled in.oxlintrc.json, and the config test locks the rule as enabled.Root Cause (if applicable)
N/A
unicorn/no-zero-fractionswas intentionally left out of the previous zero-drift batch because its cleanup needed a separate pass.Regression Test Plan (if applicable)
N/A
test/scripts/oxlint-config.test.tsunicorn/no-zero-fractionsremains enabled in.oxlintrc.json.test/scripts/oxlint-config.test.tsUser-visible / Behavior Changes
None.
Diagram (if applicable)
N/A
Security Impact (required)
No)No)No)No)No)Yes, explain risk + mitigation: N/ARepro + Verification
Environment
.oxlintrc.jsonSteps
unicorn/no-zero-fractionson currentmain.pnpm check:changed.Expected
unicorn/no-zero-fractionslint findings..oxlintrc.jsonand covered by the config test.Actual
Evidence
Human Verification (required)
.oxlintrc.json.Review Conversations
Compatibility / Migration
Yes)No)No)Risks and Mitigations