WordPoints / dev-lib

Developer tools for WordPoints projects
MIT License
4 stars 0 forks source link

autoloaders: Only run against staged files during git pre-commit #205

Closed JDGrimes closed 7 years ago

JDGrimes commented 7 years ago

See #20. I just didn't have time to think about how best to handle this at the time.

JDGrimes commented 7 years ago

I think really that this is pretty simple. When any class file is updated/added/deleted, we need to check all of the autoloaders. So all we need to do is check for /classses/ in the list of staged paths, and run all of the checks as usual if it is present.