feat!: disable golangci-lint

This commit is contained in:
2025-04-12 18:08:34 +02:00
parent ac641ea8d3
commit 4a9e2dcc7b
+2 -31
View File
@@ -3,7 +3,7 @@ local utils = require("utils")
---@type ServerConfig ---@type ServerConfig
return { return {
enable = true, enable = true,
mason = { "gopls", dependencies = { "golines", "golangci-lint" } }, mason = { "gopls", dependencies = { "golines" } },
keymaps = { keymaps = {
{ {
mode = "n", mode = "n",
@@ -17,32 +17,6 @@ return {
end, end,
}, },
}, },
linters = {
{
cmd = {
"golangci-lint",
"run",
"--output.json.path=stdout",
"--show-stats=false",
"%file%",
},
stdin = true,
stdout = true,
json = {
diagnostics_root = "Issues",
source = "FromLinter",
message = "Text",
lnum = "Pos.Line",
col = "Pos.Column",
callback = function(diag)
if not diag.severity or diag.severity == "" then
diag.severity = vim.diagnostic.severity.WARN
end
utils.debug(vim.inspect(diag))
end,
},
},
},
lspconfig = { lspconfig = {
filetypes = { filetypes = {
"go", "go",
@@ -54,11 +28,8 @@ return {
single_file_support = true, single_file_support = true,
settings = { settings = {
gopls = { gopls = {
analyses = {
unusedparams = true,
},
staticcheck = true, staticcheck = true,
gofumpt = false, semanticTokens = true,
}, },
}, },
}, },