Skip to content

Configuration for Newest Version of golangci-lint #56

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
harrisoncramer opened this issue Apr 13, 2025 · 2 comments
Closed

Configuration for Newest Version of golangci-lint #56

harrisoncramer opened this issue Apr 13, 2025 · 2 comments

Comments

@harrisoncramer
Copy link

This language server does not work with newer versions of golangci-lint. Here's my version:

$ golangci-lint version
golangci-lint has version 2.1.1 built with go1.24.2 from 93dabf9 on 2025-04-12T18:12:29Z

Here's my (previously functional) configuration. I'm using Neovim's new built-in LSP:

--- @class vim.lsp.Config
return {
	cmd = {
		"golangci-lint-langserver",
	},
	filetypes = { "go", "gomod" },
	init_options = {
		command = {
			"golangci-lint",
			"run",
			"--out-format=json",
			"--show-stats=false",
		},
	},
	root_markers = {
		".golangci.yml",
		".golangci.yaml",
		".golangci.toml",
		".golangci.json",
		"go.work",
		"go.mod",
		".git",
	},
}

The issue is that --out-format is not a valid flag anymore. Do we have a functional configuration for the newer version of golangci-lint?

@x1a2h1
Copy link

x1a2h1 commented Apr 16, 2025

@nametake
Copy link
Owner

#58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants