go_lint
Lint Go code using golangci-lint with options for configuration, automatic fixes, and various output formats.
Instructions
Lint Go code using golangci-lint with comprehensive configuration options
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | Fix issues automatically where possible | |
| paths | No | Specific paths or packages to lint (defaults to ./...) | |
| config | No | Path to golangci-lint config file (.golangci.yml) | |
| format | No | Output format (colored-line-number, line-number, json, tab, checkstyle, code-climate, html, junitxml, github-actions) | |
| timeout | No | Timeout for linting in seconds | |
| verbose | No | Enable verbose output | |
| directory | No | Working directory | |
| concurrency | No | Number of CPUs to use for linting | |
| enabledLinters | No | Specific linters to enable (e.g., golint, gofmt, ineffassign) | |
| disabledLinters | No | Specific linters to disable |