sirbrillig / phpcs-changed

🐘 Run phpcs on files and only report new warnings/errors compared to the previous version.
MIT License
31 stars 11 forks source link

Experiment: extract and generalize lint diffing system #47

Closed sirbrillig closed 2 years ago

sirbrillig commented 3 years ago

It occurs to me that the core of phpcs-changed, the system to take two lint results and a diff and to return the lint results that are new, could be easily used for other linters than just phpcs.

This PR extracts the core of this system, untangling it from phpcs-specific concepts, into its own set of classes so it could be used more easily elsewhere.