Skip to content

False positives coming from deadcode #116

Closed
@ryboe

Description

@ryboe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    false positiveAn error is reported when one does not exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions