Skip to content

The paths-except in the exclusions in Linters configuration are not effective #5797

Closed
@0daoge0

Description

@0daoge0

Welcome

  • Yes, I'm using a binary release within 2 latest releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've read the typecheck section of the FAQ.
  • Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.).
  • I agree to follow this project's Code of Conduct

How did you install golangci-lint?

Other

Description of the problem

I just want to check one directory,the paths-except in the exclusions in Linters configuration are not effective.

Version of golangci-lint

$ golangci-lint --version
# Paste output here

2.1.6

Configuration

# paste configuration file or CLI flags here

Information security cannot be output

Go environment

$ go version && go env
# paste output here

go1.20.14 windows/amd64

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here

Information security cannot be output

A minimal reproducible example or link to a public repository

// add your code here

Information security cannot be output

Validation

  • Yes, I've included all information above (version, config, etc.).

Supporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions