8000 The paths-except in the exclusions in Linters configuration are not effective · Issue #5797 · golangci/golangci-lint · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
6 of 7 tasks
0daoge0 opened this issue May 13, 2025 · 3 comments · Fixed by #5798
Closed
6 of 7 tasks

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

0daoge0 opened this issue May 13, 2025 · 3 comments · Fixed by #5798
Labels
area: exclusions bug Something isn't working

Comments

@0daoge0
Copy link
0daoge0 commented May 13, 2025

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

@0daoge0 0daoge0 added the bug Something isn't working label May 13, 2025
Copy link
boring-cyborg bot commented May 13, 2025

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@ldez ldez added question Further information is requested and removed bug Something isn't working labels May 13, 2025
@ldez
Copy link
Member
ldez commented May 13, 2025

There is nothing to reproduce; the description is not understandable, so I close.

@ldez ldez closed this as completed May 13, 2025
@ldez
Copy link
Member
ldez commented May 13, 2025

I think I understand the issue now.

However, there is no valid reason for not providing a configuration and a minimal reproducible example.

This is time-consuming for me to try to understand meaningless sentences and find a reproducible example without knowing what I'm looking for.

I recommend following the issue template:

  • not trying to invoke an invalid reason like "security"
  • a clear explanation. If you are not able to write English sentences, we can understand, but a minimal reproducible example MUST be provided.

@ldez ldez added bug Something isn't working area: exclusions and removed question Further information is requested labels May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: exclusions bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0