From bad04bb7378fee391e85ed6eadd2cf01d9ee281c Mon Sep 17 00:00:00 2001 From: Denis Isaev Date: Tue, 10 Sep 2019 11:17:18 +0300 Subject: [PATCH] dev: regenerate README.md after #630 Also, output help for the new option in a more compact way. --- README.md | 8 ++++++++ pkg/commands/run.go | 6 ++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index acf83b09..0a650e12 100644 --- a/README.md +++ b/README.md @@ -460,6 +460,14 @@ Flags: -c, --config PATH Read config from file path PATH --no-config Don't read config --skip-dirs strings Regexps of directories to skip + --skip-dirs-use-default Use or not use default excluded directories: + - (^|/)vendor($|/) + - (^|/)third_party($|/) + - (^|/)testdata($|/) + - (^|/)examples($|/) + - (^|/)Godeps($|/) + - (^|/)builtin($|/) + (default true) --skip-files strings Regexps of files to skip -E, --enable strings Enable specific linter -D, --disable strings Disable specific linter diff --git a/pkg/commands/run.go b/pkg/commands/run.go index 26ac12ba..565169eb 100644 --- a/pkg/commands/run.go +++ b/pkg/commands/run.go @@ -42,11 +42,9 @@ func getDefaultIssueExcludeHelp() string { func getDefaultDirectoryExcludeHelp() string { parts := []string{"Use or not use default excluded directories:"} for _, dir := range packages.StdExcludeDirRegexps { - parts = append(parts, - fmt.Sprintf(" - %s", color.YellowString(dir)), - "", - ) + parts = append(parts, fmt.Sprintf(" - %s", color.YellowString(dir))) } + parts = append(parts, "") return strings.Join(parts, "\n") }