From 8243c51d2098ad538c9e4c41e3688aa783445c39 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Mon, 19 Feb 2024 01:53:00 +0100 Subject: [PATCH] golangci-lint: add page (#12292) Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/golangci-lint.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/golangci-lint.md diff --git a/pages/common/golangci-lint.md b/pages/common/golangci-lint.md new file mode 100644 index 000000000..e4c08eb29 --- /dev/null +++ b/pages/common/golangci-lint.md @@ -0,0 +1,16 @@ +# golangci-lint + +> Parallelized, smart and fast Go linters runner that integrates with all major IDEs and supports YAML configuration. +> More information: . + +- 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` + +- [E]nable a specific linter for this run: + +`golangci-lint run --enable {{linter}}`