Closed
Description
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?
I don't know
Description of the problem
The golangci-lint run
lacks the print-issued-lines
option used by the gopls
to find issues. The gopls
is also used by the VS Code.
Version of golangci-lint
The gopls
debug output from the VS Code:
2025-03-25 08:00:51.541 [error] Error while running tool: ~/go/bin/golangci-lint run --print-issued-lines=false --out-format=colored-line-number --issues-exit-code=0
2025-03-25 08:00:51.541 [error] Error: unknown flag: --print-issued-lines
Failed executing command with error: unknown flag: --print-issued-lines
$ golangci-lint --version
golangci-lint has version v2.0.1 built with go1.24.1 from (unknown, modified: ?, mod sum: "h1:fNxppSstN0Rl5eDNRqMqdoH+/c2cr02zM8gEbhU12XQ=") on (unknown)
Configuration
# paste configuration file or CLI flags here
Go environment
$ go version && go env
go version go1.24.1 darwin/arm64
Verbose output of running
$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here
A minimal reproducible example or link to a public repository
// add your code here
Validation
- Yes, I've included all information above (version, config, etc.).
Supporter
- I am a sponsor/backer through GitHub or OpenCollective