4 ms·
I'd forgotten about this, but years ago I was working in a huge PHP nightmare codebase. So, I hacked together a pre-commit hook that blocked the commit only if
by NateEag 5y ago
I'd forgotten about this, but years ago I was working in a huge PHP nightmare codebase.
So, I hacked together a pre-commit hook that blocked the commit only if the configured style checker registered errors on lines being added by the diff.
It never got very polished, but I wound up using it in two codebases over the years.
https://github.com/NateEag/diff-check https://github.com/NateEag/diff-check