Skip to content

Use path exclude rules on absolute paths instead of relative paths #1178

Closed
@xtonyjiang

Description

@xtonyjiang

Is your feature request related to a problem? Please describe.
Using path exclude rules is difficult because the issue path depends on which directory I run golangci-lint from.

Describe the solution you'd like
I'd like path exclude rules to be evaluated on the absolute path of the issue, not the relative path that is output.

Describe alternatives you've considered
Can't think of a great alternative here.

Additional context
Example: If I have an exclude rule on a file a/b/c.go, this rule will not apply if I run golangci-lint from directory a/b/.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions