Calculate the maintenance burden of each file in a git repository
This tool defines the maintenance burden of a file to be:
For most files, this is the same as the total number of lines added minus the file's current number of lines. However, the two quantities can differ because of an incomplete git history, or git reporting that a file was renamed when it was not.
Rationale. Think of maintaining a vehicle. The parts that are still in the vehicle may provide value, but once a part is replaced, it is simply a cost. Preliminary experiments suggest this metaphor applies well to software.
Running maintenance-burden
on its own repository produces the following output:
0 .github/dependabot.yml
0 .gitignore
0 CHANGELOG.md
1 Cargo.toml
5 tests/dogfood.rs
13 Cargo.lock
21 README.md
33 src/main.rs