Add OpenCode config with golangci-lint LSP
This commit is contained in:
23
.opencode/opencode.jsonc
Normal file
23
.opencode/opencode.jsonc
Normal 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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user