Skip to content

Lint all files regardless of build tags #1646

@silverwind

Description

@silverwind

Is your feature request related to a problem? Please describe.
On projects with many different build tags, it's often necessary to run golangci-lint multiple times to cover all --build-tags to get all files linted which leads to very long lint times primarily caused by the same files linted multiple times.

Describe the solution you'd like
A option like --all-tags which would ignore any tags present in a file and lint it regardless. Maybe used in combination with a explicit list of files and folders given as an argument.

Describe alternatives you've considered
Don't think there are any.

Additional context
Assuming golangci-lint does only static analysis, it should be possible to just ignore build tags and lint all files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementstaleNo 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