-
-
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
Support gocritic tags #324
Comments
hi! I agree it may be a useful feature. But I'm not sure it will be common-used: I didn't see users using the same concept of tags in golangci-lint itself. |
jirfag
added a commit
that referenced
this issue
Jan 8, 2019
Fix #324, relates #314 1. Update gocritic to the latest version 2. Use proper gocritic checkers repo, old repo was archived 3. Get enabled by default gocritic checks in sync with go-critic: don't enable performance, experimental and opinionated checks by default 4. Support of `enabled-tags` options for gocritic 5. Enable almost all gocritic checks for the project 6. Make rich debugging for gocritic 7. Meticulously validate gocritic checks config
Merged
I've supported gocritic tags in the linked pull request. |
jirfag
added a commit
that referenced
this issue
Jan 9, 2019
Fix #324, relates #314 1. Update gocritic to the latest version 2. Use proper gocritic checkers repo, old repo was archived 3. Get enabled by default gocritic checks in sync with go-critic: don't enable performance, experimental and opinionated checks by default 4. Support of `enabled-tags` options for gocritic 5. Enable almost all gocritic checks for the project 6. Make rich debugging for gocritic 7. Meticulously validate gocritic checks config
jirfag
added a commit
that referenced
this issue
Jan 9, 2019
Fix #324, relates #314 1. Update gocritic to the latest version 2. Use proper gocritic checkers repo, old repo was archived 3. Get enabled by default gocritic checks in sync with go-critic: don't enable performance, experimental and opinionated checks by default 4. Support of `enabled-tags` options for gocritic 5. Enable almost all gocritic checks for the project 6. Make rich debugging for gocritic 7. Meticulously validate gocritic checks config
jirfag
added a commit
that referenced
this issue
Jan 9, 2019
Fix #324, relates #314 1. Update gocritic to the latest version 2. Use proper gocritic checkers repo, old repo was archived 3. Get enabled by default gocritic checks in sync with go-critic: don't enable performance, experimental and opinionated checks by default 4. Support of `enabled-tags` options for gocritic 5. Enable almost all gocritic checks for the project 6. Make rich debugging for gocritic 7. Meticulously validate gocritic checks config
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of having to add each specific enabled check inside gocritic (which could be painful for newcomers), isn't a way to add groups of checks (called tags) like #performance, #style...?
If this isn't implemented yet I think it would be very interesting.
Reference:
https://github.com/go-critic/go-critic#usage -> section "Tags"
The text was updated successfully, but these errors were encountered: