3 ms·
These hooks must be really high quality — fast and reliable. Otherwise they will get in the way, slowing down development or even breaking git. List of problem
by pornel 4y ago
These hooks must be really high quality — fast and reliable. Otherwise they will get in the way, slowing down development or even breaking git.
List of problems include:
• the hook runs tools directly on the working directory, and not on the stage/index, so it lints against a mixed version of the code, and not what is actually being committed.
• the hook tries to fix the problem above, but doesn't understand submodules and screws them up
• a new version of a linter adds a new warning that fires on existing code, and now nobody can commit anything without disabling the hook.
• hook expects the tools to be in PATH that isn't set as expected when git is used via IDE or some other GUI tool
and so on.