Fork of zed-extensions/golangci-lint
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
This PR updates the CI workflow files from the main Zed repository based on the commit zed-industries/zed@3183c04515 The update includes a new version of the extension CLI which adds validation for semantic token rules for languages Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com> |
||
| .github/workflows | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| extension.toml | ||
| README.md | ||
Zed golangci-lint
A Zed extension for running golangci-lint on your Go code.
Requirements
Configuration
For newer version of golangci-lint (v2)
{
"lsp": {
"golangci-lint": {
"initialization_options": {
"command": [
"golangci-lint",
"run",
"--output.json.path",
"stdout",
"--show-stats=false",
"--output.text.path="
]
}
}
},
"languages": {
"Go": {
"language_servers": ["gopls", "golangci-lint"]
}
}
}
Or for older version of golangci-lint (v1)
{
"lsp": {
"golangci-lint": {
"initialization_options": {
"command": ["golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"]
}
}
},
"languages": {
"Go": {
"language_servers": ["gopls", "golangci-lint"]
}
}
}