Skip to content

revive: forward Exclude rule config #4364

Closed
@sapphire-janrain

Description

@sapphire-janrain

Your feature request related to a problem? Please describe.

Right now I'm using issues.exclude-rules to achieve what I want to do, but it would be nice if there was a way to just provide the exclusion to revive directly via the Exclude config option

Describe the solution you'd like.

linters-settings:
  revive:
    rules:
      - name: unused-parameter
        exclude: ["TEST"]
        # TEST is a magic word in revive to filter out test files,
        # no special handling needed in golangci-lint

Describe alternatives you've considered.

issues.exclude-rules

Additional context.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesRelates to an upstream dependencyenhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions