Re:Pre-commit hooks are fundamentally broken
by normie3000 on Saturday December 27, 2025 @04:24AM
(#46400438)
> with git, you can even make anything that happens on the dev machines mandatory
s/can/can't?
Re:Pre-commit hooks are fundamentally broken
by eru on Saturday December 27, 2025 @01:25PM
(#46403948)
Yes, indeed.
Re:Pre-commit hooks are fundamentally broken
by mycall on Sunday December 28, 2025 @11:19AM
(#46412118)
You can an an enterprise environment when following SOPs are mandatory due to cybersecurity and infrastructure requirements.
And with git, you can even make anything that happens on the dev machines mandatory.
Anything you want to be mandatory needs to go into your CI. Pre-commit and pre-push hooks are just there to lower CI churn, not to guarantee anything.
(With the exception of people accidentally pushing secrets. The CI is too late for that, and a pre-push hook is a good idea.)