Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

slopsieve: a diff linter for the AI slop era

说明与用途

slopsieve 是一个 CLI 工具,基于 12 条代码卫生信号对差异和 PR 进行评分,帮助发现隐藏问题并改进评审流程。

问题

Maintainers struggle with code quality in pull requests, as code may appear fine until reviewed, leading to wasted time and potential bugs.

结果

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.

工作流

  • 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 --json to feed the output into other tooling.

证据

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(".

来源

  • 记录日期: 2026-10-15T13:56:06.162Z