api-diff
api-diff copied to clipboard
Linter for avoiding inflicting breakage
Context
It is a common desire/need to avoid inflicting breakage to one's downstream consumers.
It can be hard to consistently avoid this in authoring / code review phases.
Idea
Create a linter that inspects git diffs and determines whether any new breakages have popped up, failing builds accordingly.
...Perhaps parsing diffs would be unnecessary - one can instead compare trees using api-diff's usual API. The only interesting part of the diffs would be their contained file names.
WDYT?
Cheers - V