golangci-lint
Summary
Section titled “Summary”Installs golangci-lint, a fast Go linter runner, from a GitHub release binary and generates its Zsh completion file on clone.
Syntax / Usage
Section titled “Syntax / Usage”zinit for \ atclone'golangci-lint completion zsh > _golangci-lint' \ from'gh-r' \ sbin'golangci-lint' \ @golangci/golangci-lintDetails
Section titled “Details”from'gh-r'— downloads the release archive from GitHub Releases.atclone'golangci-lint completion zsh > _golangci-lint'— generates the_golangci-lintZsh completion file after initial download; note thatatpull'%atclone'is not used here, so completions are not automatically regenerated on update.sbin'golangci-lint'— creates a shim namedgolangci-lintfor the binary (requireszinit-annex-bin-gem-node).
The annex zdharma-continuum/zinit-annex-bin-gem-node must be loaded before this recipe.
Examples
Section titled “Examples”# prerequisite — load once at the top of .zshrczinit light-mode for zdharma-continuum/zinit-annex-bin-gem-node
zinit for \ atclone'golangci-lint completion zsh > _golangci-lint' \ from'gh-r' \ sbin'golangci-lint' \ @golangci/golangci-lintCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”- The recipe does not include
atpull'%atclone', so the completion file is generated only once at clone time. Addatpull'%atclone'to keep completions up to date afterzinit update.