Skip to content
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

deadcode: vars used in test are flagged as unused #2

Closed
tylerstillwater opened this issue Feb 15, 2015 · 1 comment · May be fixed by #3
Closed

deadcode: vars used in test are flagged as unused #2

tylerstillwater opened this issue Feb 15, 2015 · 1 comment · May be fixed by #3

Comments

@tylerstillwater
Copy link

See https://github.com/tylerb/structcheck-proof for an example of code that will generate this false positive.

remyoudompheng pushed a commit that referenced this issue Jan 4, 2017
This avoids reporting unused unexported variables that
are actually dedicated to test code.

Fixes issue #2
Fixes issue #8
@remyoudompheng
Copy link
Owner

Hello,
I have fixed this issue in a different way : after refactoring to use the go/loader package, the fix is very much simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants