I thought most of a pull request was noise. I measured 1,000 of them. I was wrong.
Описание и применение
Инструмент ReviewRaccoon анализирует PR‑ы, выделяя изменения, которые не влияют на поведение кода, и позволяет ревьюерам быстро одобрять чисто рефакторинговые изменения.
Задача
Reviewers spent time on refactor-only changes that do not alter code behavior.
Результат
Only 3% of changed lines were refactor-only across 1,000 PRs; 97% altered code behavior.
Рабочий процесс
- 1. Install ReviewRaccoon GitHub Action via workflow file.
- 2. Action runs on each PR, generating a syntax tree for changed files.
- 3. It strips formatting, comments, and local variable names.
- 4. Compares old and new trees to flag refactor-only changes.
- 5. Outputs two sections: functions with behavioral changes and proof of refactor-only changes.
- 6. Reviewers can approve refactor-only changes quickly.
- 7. Optionally run the scanner locally with "node scripts/scan.js" to measure own repo.
Доказательства
ReviewRaccoon is a free GitHub Action. It turns the old and new version of every changed JavaScript and TypeScript file into a syntax tree, strips out everything that can't change behavior (formatting, comments, local variable names), and compares the two trees piece by piece.
Only 3% of the changed lines were refactor-only. The other 97% changed what the code does.
I ran ReviewRaccoon over the last 100 merged pull requests of 10 well-known projects: React, Next.js, VS Code, TypeScript, Vite, Svelte, Angular, Prettier, ESLint and Node.js.
- Дата записи: 2026-11-03T05:28:55.378Z