3 ms·
So you need to remember doing the linting and formatting or the PR will fail? I'd argue that's the point of pre-commit. Doing it for you locally before submitt
by Gooblebrai 3y ago
So you need to remember doing the linting and formatting or the PR will fail?
I'd argue that's the point of pre-commit. Doing it for you locally before submitting the PR so you don't have to be mindful about it.
- foobarbaz33 3y agoMight depend on your workflow. Let's say you are in a private feature branch. You do many commits, 1 per minute to create save points as you work on some mind bending logic. You need those saves to go through no matter what, even when things are broken. You plan to squash all the feature commits when you are done so you don't care about the formatting quite as strongly for commits that will disappear soon anyway.