Skip to content

Why this config doesn't exclude these files? #2284

Closed Answered by ldez
frederikhors asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

the path is a regex field, not a glob field.
so * cannot be used alone.

The right configuration:

linters:
  disable-all: true
  enable:
    - wrapcheck

issues:
  exclude-rules:
    - path: internal/custom/dir/(.*).custom.go
      linters:
        - wrapcheck

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2283 on October 08, 2021 11:45.