HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

golangci-lint — Parallelized, smart, and fast Go linters runner that integrates with all major IDEs and supports YAM

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandgolangci-lintandparallelizedclismartfastlinters

Problem

How to use the golangci-lint command: 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/>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: common/golangci-lint

Revisions (0)

No revisions yet.