Skip to content

files were modified by this hook #3848

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

Closed
louisliu2048 opened this issue May 25, 2023 · 2 comments
Closed

files were modified by this hook #3848

louisliu2048 opened this issue May 25, 2023 · 2 comments
Labels
question Further information is requested

Comments

@louisliu2048
Copy link

Your feature request related to a problem? Please describe.

#13 0.173 pre-commit run -a
#13 0.573 check yaml...............................................................Passed
#13 0.711 fix end of files.........................................................Passed
#13 1.544 trim trailing whitespace.................................................Passed
#13 1.685 go fmt...................................................................Passed
#13 2.238 go-mod-tidy..............................................................Passed
#13 2.729 go-build.................................................................Passed
#13 34.43 golangci-lint............................................................Failed
#13 135.3 - hook id: golangci-lint
#13 135.3 - files were modified by this hook
#13 135.4 make: *** [Makefile:328: test] Error 1

Describe the solution you'd like.

files were modified by this hook
give the files that has been modified!

Describe alternatives you've considered.

give the files that has been modified!

Additional context.

No response

@louisliu2048 louisliu2048 added the enhancement New feature or improvement label May 25, 2023
@boring-cyborg
Copy link

boring-cyborg bot commented May 25, 2023

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@bombsimon
Copy link
Member

bombsimon commented May 25, 2023

This message comes from pre-commit, not golangci-lint. I would suggest checking the docs or asking in that repo on how to show files.

You removed the issue template and are running golangci-lint through another tool so I don't know what command you ran but I know thatgolangci-lint only modifies files when the --fix flag is used.

@bombsimon bombsimon added question Further information is requested and removed enhancement New feature or improvement labels May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants