-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(pre-commit): require_serial & pass_filenames #3713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey, thank you for opening your first Pull Request ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Fernandez Ludovic <[email protected]>
@macnibblet I just tried to:
And yes, I did not find a config to make it work properly.
|
Hmm, I have never experienced that issue you are referring to. But can i set pass_filename as one of the args in my pre-commit config? |
Yes you can set |
@gnuletik so i tried setting the We have a mono repository that looks like this, so maybe we should update the documentation to explain the issue more clearly.
|
@macnibblet even if all your source files are in a However, the reproduction may depends on your golangci-lint config and the files you include in your git commit. See also #3200 |
In order to avoid the following error when running pre-commit
We need to force golangci-lint to run in sequence.
Fixes #3715