api-diff icon indicating copy to clipboard operation
api-diff copied to clipboard

Linter for avoiding inflicting breakage

Open vemv opened this issue 2 years ago • 0 comments

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

vemv avatar Nov 03 '21 11:11 vemv