Go Lint Setup

Scaffold, adopt, or debug the golangci-lint v2 config in a Go repo. This skill should be used when the user runs `/go-lint-setup`, asks to "set up", "scaffold", "add" or "bootstrap" golangci-lint or a `.golangci.yml`, or asks why golangci-lint v2 rejects a config, how to migrate a v1 config, which linters the default set enables, how to adopt modernize/errorlint in an existing repo, what `golangci-lint fmt` does, how to write a `linters.exclusions` rule, or how to suppress a finding with `//nolint`. Writes the reference v2 config (modernize + stack linters); never overwrites an existing one unprompted. Go only.

Cadasto 1d4d9cd 7.4 KB Updated

File contents

Cadasto/go-coding-plugin/tree/main/skills/go-lint-setup commit 1d4d9cd1e1

Frequently asked questions

npx skillmds@latest add cadasto/go-lint-setup