4 ms·
I know people hate them but lint as a pre-commit hook is nice.
by criley2 3y ago
I know people hate them but lint as a pre-commit hook is nice.
- mooooooooooooo 3y agoYou can always bypass the hook. Better to enforce standards and make exceptions when necessary.
- lelandfe 3y agoI turn them off. I commit early and often, and hooks just get in the way.
- smcleod 3y agoLocal hooks should be fast. I do that too if they take more than 5-10 seconds and it's not mission critical software.
- 12345hn6789 3y agoEarly and often doesn't change code standards.
- lelandfe 3y agoIt 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.