dev: regenerate README.md after #630

Also, output help for the new option in a more compact way.
This commit is contained in:
Denis Isaev 2019-09-10 11:17:18 +03:00
parent f312a0fc4e
commit bad04bb737
No known key found for this signature in database
GPG Key ID: A36A0EC8E27A1A01
2 changed files with 10 additions and 4 deletions

View File

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

View File

@ -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")
}