2025-03-14 21:59:59 -06:00
|
|
|
# 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`
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
- List enabled and disabled linters (Note: Disabled linters are shown last, do not mistake them for enabled ones):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`golangci-lint linters`
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Enable a specific linter for this run:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`golangci-lint run {{[-E|--enable]}} {{linter}}`
|