Files
cheatsheet-tldr/tldr/golangci-lint
2025-03-29 00:18:23 +00:00

22 lines
590 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# golangci-lint
> Parallelized, smart and fast Go linters runner that integrates with all major IDEs and supports YAML configuration.
> More information: <https://golangci-lint.run/welcome/quick-start/>.
- Run linters in the current folder:
`golangci-lint run`
- List enabled and disabled linters (Note: disabled linters are shown last, do not mistake them for enabled ones):
`golangci-lint linters`
- Enable a specific linter for this run:
`golangci-lint run {{[-E|--enable]}} {{linter}}`