Understanding Rework, New Work, and Maintenance
Key Scenarios Explained
Maintenance:
Maintenance Percentage =
(lines of code modified that were written prior to 30 days) / (total lines of code
added or modified)Rework:
Rework Percentage =
(lines of code modified that were written in the last 30 days) / (total lines of
code added or modified)New Work:
New Work Percentage =
(lines of code that were written in the specified duration) / (total lines of code
added or modified)Here are some scenarios to help you understand the differences between Rework, New Work, and Maintenance (for the examples we will consider "T" as today):
Scenario 1: 2 lines of code were removed and replaced by 5 lines
Scenario 2: 3 lines are added in before 1 line (the original 1 line is moved to last)
Scenario 3:
Scenario 4: A whitespace was added to one line, and the code was indented on another line
Scenario 5: I made some changes in .settings file, will those also be tracked in calculation?
Scenario 6: 1 word from 1 line was deleted
Scenario 7: 1 word from 1 line was deleted and replaced with another 1 word
Scenario 8: 2 words from 1 line were deleted and replaced by 1 word
Scenario 9: 3 words were added towards the end of 1 existing line of code
Last updated