How to ignore files in .gitignore? #5842
Answered
by
ldez
fredrikaverpil
asked this question in
Q&A
-
Has anyone figured out a way to make golangci-lint ignore files in a project's .gitignore? |
Beta Was this translation helpful? Give feedback.
Answered by
ldez
May 30, 2025
Replies: 1 comment
-
Hello, golangci-lint uses the Go tooling, and currently, the Go tooling doesn't allow that. The Go team doesn't want to support But, in go1.25, the new directives ( |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ldez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, golangci-lint uses the Go tooling, and currently, the Go tooling doesn't allow that.
The Go team doesn't want to support
.gitignore
file.But, in go1.25, the new directives (
ignore
) will be added to thego.mod
file.