Add OpenCode config with golangci-lint LSP

This commit is contained in:
2025-12-18 08:29:55 +01:00
parent 40452e100e
commit 52d6bbaf84

23
.opencode/opencode.jsonc Normal file
View File

@ -0,0 +1,23 @@
{
"lsp": {
"golangci-lint": {
"command": [
"golangci-lint-langserver"
],
"extensions": [
".go"
],
"initialization": {
"command": [
"golangci-lint",
"run",
"--output.json.path",
"stdout",
"--show-stats=false",
"--issues-exit-code=1"
]
}
}
},
"$schema": "https://opencode.ai/config.json"
}