Deslop
Clean only the current branch diff before review. Preserve behavior absolutely.
Checklist
- Scope the pass to
git diffagainstorigin/main, or the branch merge base when it differs. Never run a repo-wide cleanup. - Inspect every changed hunk for:
- comments a human maintainer would not write, including narration, syntax explanation, and prose that merely restates the code;
- defensive checks or
try/catchblocks that are abnormal for the surrounding module or protect only imagined states; - casts that launder types, especially
as any,as unknown as T, and widen-then-assert flows. Oxlint already rejects the latter two patterns in governed code; - redundant intermediate variables or one-use helpers that do not add domain meaning, reduce duplication, or simplify control flow;
- compatibility shims, aliases, retries, and fallback branches without a named shipped contract and removal plan;
- naming, control flow, imports, formatting, and other style that conflicts with the surrounding file.
- Make no functional edits. If cleanup could change behavior, leave it alone and report it instead.
- Fix a finding inline only when the cleanup is trivial and behavior-neutral. Otherwise note it for the author.
- Report the result in 1–3 sentences, including whether anything changed and any non-trivial item left for review.
Run $deslop before $autoreview, never instead of it. Autoreview remains the required correctness and safety review gate.