Hacker News new | ask | show | jobs
by criley2 1130 days ago
I know people hate them but lint as a pre-commit hook is nice.
2 comments

I turn them off. I commit early and often, and hooks just get in the way.
Local hooks should be fast. I do that too if they take more than 5-10 seconds and it's not mission critical software.
Early and often doesn't change code standards.
It sure does. The repository's standards don't matter one whit until I'm ready to submit my code.

I squash, amend, and delete history with aplomb as I develop. I simply do not need to be informed of adherence to code standards during that.

You can always bypass the hook. Better to enforce standards and make exceptions when necessary.