Skip to content

Commit

Permalink
dev: regenerate README.md after #630
Browse files Browse the repository at this point in the history
Also, output help for the new option in a more compact way.
  • Loading branch information
jirfag committed Sep 10, 2019
1 parent f312a0f commit bad04bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions pkg/commands/run.go
Expand Up @@ -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")
}

Expand Down

0 comments on commit bad04bb

Please sign in to comment.