-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Lint all files regardless of build tags #1646
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
In some of my Go projects, I'll use various build tags for tests like |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is your feature request related to a problem? Please describe.
On projects with many different build tags, it's often necessary to run golangci-lint multiple times to cover all
--build-tags
to get all files linted which leads to very long lint times primarily caused by the same files linted multiple times.Describe the solution you'd like
A option like
--all-tags
which would ignore any tags present in a file and lint it regardless. Maybe used in combination with a explicit list of files and folders given as an argument.Describe alternatives you've considered
Don't think there are any.
Additional context
Assuming golangci-lint does only static analysis, it should be possible to just ignore build tags and lint all files.
The text was updated successfully, but these errors were encountered: