slopsieve: a diff linter for the AI slop era
Description and use
slopsieve is a CLI tool that scores diffs and PRs on 12 code hygiene signals, helping to surface hidden issues and improve the review process.
Problem
Maintainers struggle with code quality in pull requests, as code may appear fine until reviewed, leading to wasted time and potential bugs.
Outcome
slopsieve provides a quick, zero-dependency way to surface common PR hygiene issues, reducing manual review effort and catching problems that might otherwise slip through.
Workflow
- 1. Run
npx slopsieve <diff_or_pr>to analyze the diff. - 2. Review the printed score and flagged lines.
- 3. Optionally use
--fail-at <threshold>to fail CI if score is below the threshold. - 4. Use
--jsonto feed the output into other tooling.
Evidence
so i built slopsieve, a zero-dep node CLI that scores a diff or PR for the 12 signals a tired reviewer checks at 1am
what it does: parses the unified diff, runs 12 weighted checks (it.skip, assertions removed, console.log/debugger, catch-all deps, exports nothing references, "this function..." comments), prints file and line for every flag.
--fail-at makes it a CI gate, --json feeds tooling.
the bug that embarrassed me: my debug-leftovers regex dd\s*\( matched isQuantityOdd( because the string "dd(" hides inside "Odd(".
- Record date: 2026-10-15T13:56:06.162Z