golangci-lint is a linter for Go. You can enable the golangci-lint linter with:Documentation Index
Fetch the complete documentation index at: https://trunk-4cab4936-sam-gutentag-flaky-tests-new-monitors.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Auto Enabling
golangci-lint will be auto-enabled if any Go files are present.Settings
golangci-lint supports the following config files:.golangci.json.golangci.toml.golangci.yaml.golangci.yml
.trunk/configs and trunk check will still find them. See Moving Linters for more info.
Usage Notes
Make sure your go version ingo.mod matches Trunk’s go runtime version. At the time of this writing, Trunk’s default go runtime version is 1.21.0. You can find out what it is via trunk print-config, and look for the runtime section, and you can override the default version in your trunk.yaml via:
Links
- golangci-lint site
- golangci-lint Trunk Code Quality integration source
- Trunk Code Quality’s open source plugins repo