Skip to main content

Rework Metric

Definition. The Rework Metric is the percentage of code in a PR that is rewritten after feedback. Why is This Metric Useful? High rework percentages can signal issues with initial code quality or unc…

Steven Silverstone
Updated by Steven Silverstone
Definition

The Rework Metric is the percentage of code in a PR that is rewritten after feedback.

Why is This Metric Useful?
  • High rework percentages can signal issues with initial code quality or unclear requirements.
How to Use it?
  • Improve upfront code quality and communication during the development process.
Examples for Context
  • Reducing rework decreased overall Cycle Time.
Data Sources
  • Repository history, PR review comments.
Calculation
  • (Lines modified after review / Total lines changed) × 100.
Tunable Configurations
  • Definition of "rework" (e.g., based on review comments).
Benchmarking Guidance
  • Rework should not exceed 10-15% of changes.
Error Margins and Limitations
  • Hard to quantify intent behind rework without qualitative analysis.
Stakeholder Use Cases
  • Reviewers: Provide actionable and specific feedback.
  • Developers: Minimize corrections by ensuring high-quality initial submissions.

How did we do?

Reviews Metric

Time to Approve Metric

Contact