News for hackers. Stuff that matters.
Re:Difftastic: Syntax-aware structured diff tool by NateEag on Thursday July 08, 2021 @11:27AM (#27773204)
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

There are no comments on this comment yet.