Golangci-lint: False positives coming from deadcode

Created on 17 Jun 2018  路  2Comments  路  Source: golangci/golangci-lint

deadcode has a serious bug: It incorrectly flags any test in package main as unused. It's causing golangci-lint to report a bunch of false positives in my codebase at work. gometalinter.v2 doesn't have this problem and I'm unsure why.

This fix was submitted in December 2017, but it hasn't been reviewed or merged, which tells me that @remyoudompheng isn't really maintaining it.

Until the bug is fixed upstream, it would be nice if golangci-lint either 1) suppressed the false positive internally, 2) provided guidance about how to suppress the false positive in the README, or 3) forked and fixed deadcode.

false positive

Most helpful comment

Fixed it

All 2 comments

thank you for reporting

Fixed it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anuaimi picture anuaimi  路  4Comments

cyriltovena picture cyriltovena  路  5Comments

jirfag picture jirfag  路  3Comments

nektro picture nektro  路  3Comments

bacongobbler picture bacongobbler  路  4Comments