Add Python dead code linter (vulture
) to Travis.
Rationale for allowing dead code only after explicit opt-in (via --ignore-names
):
- Less is more :-)
- Unused code is by definition “untested”
- Unused code can be an indication of bugs/logical errors. By making the contributor aware of newly introduced unused code it gives him/her an opportunity to investigate if the unused code they introduce is malignant or benign :-)
- Unused code is hard to spot for humans and is thus often missed during manual review
- YAGNI
Based on #14312 to make linter job pass.