From 8cc2b8e9c860d685b3cc62931a6b6f28118764a9 Mon Sep 17 00:00:00 2001 From: Renato Suero Date: Tue, 11 Dec 2018 13:55:40 +0100 Subject: [PATCH 1/2] Fix command to show linters --- README.tmpl.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.tmpl.md b/README.tmpl.md index d079e6afe299..f7146c23af04 100644 --- a/README.tmpl.md +++ b/README.tmpl.md @@ -162,14 +162,14 @@ Directories are NOT analyzed recursively. To analyze them recursively append `/. GolangCI-Lint can be used with zero configuration. By default the following linters are enabled: ```bash -$ golangci-lint help linters +$ golangci-lint linters help {{.LintersCommandOutputEnabledOnly}} ``` and the following linters are disabled by default: ```bash -$ golangci-lint help linters +$ golangci-lint linters help ... {{.LintersCommandOutputDisabledOnly}} ``` @@ -336,7 +336,7 @@ and you don't need to install them separately. To see a list of supported linters and which linters are enabled/disabled: ```bash -golangci-lint help linters +golangci-lint linters help ``` ### Enabled By Default Linters @@ -544,4 +544,4 @@ by [denis@golangci.com](mailto:denis@golangci.com). ## License Scan -[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgolangci%2Fgolangci-lint.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgolangci%2Fgolangci-lint?ref=badge_large) \ No newline at end of file +[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgolangci%2Fgolangci-lint.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgolangci%2Fgolangci-lint?ref=badge_large) From a5b5a62b7e3d4d7deaebe27b514a940f052b78a1 Mon Sep 17 00:00:00 2001 From: Renato Suero Date: Tue, 11 Dec 2018 14:06:03 +0100 Subject: [PATCH 2/2] Updated readme using the generator --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 243bfa9c2ae4..7253dca41691 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ Directories are NOT analyzed recursively. To analyze them recursively append `/. GolangCI-Lint can be used with zero configuration. By default the following linters are enabled: ```bash -$ golangci-lint help linters +$ golangci-lint linters help Enabled by default linters: govet: Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: true] errcheck: Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: true] @@ -179,7 +179,7 @@ typecheck: Like the front-end of a Go compiler, parses and type-checks Go code [ and the following linters are disabled by default: ```bash -$ golangci-lint help linters +$ golangci-lint linters help ... Disabled by default linters: golint: Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes [fast: true] @@ -367,7 +367,7 @@ and you don't need to install them separately. To see a list of supported linters and which linters are enabled/disabled: ```bash -golangci-lint help linters +golangci-lint linters help ``` ### Enabled By Default Linters @@ -492,6 +492,7 @@ Global Flags: --cpu-profile-path string Path to CPU profile output file --mem-profile-path string Path to memory profile output file -v, --verbose verbose output + --version Print version ``` @@ -920,4 +921,4 @@ by [denis@golangci.com](mailto:denis@golangci.com). ## License Scan -[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgolangci%2Fgolangci-lint.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgolangci%2Fgolangci-lint?ref=badge_large) \ No newline at end of file +[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgolangci%2Fgolangci-lint.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgolangci%2Fgolangci-lint?ref=badge_large)