-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
unparam does not support build tags #22
Comments
Good point - this needs to be added. Ideally, there would be a way to check all tag combinations without having to multiply the amount of work. I have no idea how to do that, though. |
Checking all tag combinations is probably impossible without knowing what they mean - in my example case, for example, If lint-unparam:
unparam -tags a .
unparam -tags b . |
In case this is helpful, see https://github.com/mdempsky/unconvert/pull/27/files for an example of how this can be implemented. |
@shurcooL thanks, that just saved me a good ten minutes of furious head-scratching. |
Also, jesus, the help output is bad:
I've filed golang/go#23464 about this. |
FYI, according to https://speakerdeck.com/campoy/the-state-of-go-1-dot-10?slide=23, there have been some improvements to the Also, friendly ping on resolving this issue. I would've liked to use it today:
|
Thanks for the ping - I got sidetracked on this. |
unparam
currently doesn't support build tags, which means packages which require a non-implicit build tag can't be linted, e.g.:main.go
sub/sub_a.go
sub/sub_b.go
sub/sub.go
The text was updated successfully, but these errors were encountered: