Skip to content

False positive "should have a package comment" from golint #1556

Closed
@ernado

Description

@ernado

Having following config:

linters-settings:
  golint:
    min-confidence: 0
issues:
  exclude-use-default: false

I'm getting an error for each file in package (expect one with actual documentation):

bin/bytes.go:1:1: should have a package comment, unless it's in another file for this package (golint)
package bin

Looks like golint is not package-aware?

Related: #456 #464

Update:
If min-confidence: 0 is removed, those issues are not reported 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfalse positiveAn error is reported when one does not existstaleNo recent correspondence or work activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions