2024-02-19 01:53:00 +01:00
|
|
|
# golangci-lint
|
|
|
|
|
|
|
|
> Parallelized, smart and fast Go linters runner that integrates with all major IDEs and supports YAML configuration.
|
2024-05-22 21:51:44 +02:00
|
|
|
> More information: <https://golangci-lint.run/welcome/quick-start/>.
|
2024-02-19 01:53:00 +01:00
|
|
|
|
|
|
|
- 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`
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Enable a specific linter for this run:
|
2024-02-19 01:53:00 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`golangci-lint run {{[-E|--enable]}} {{linter}}`
|