Skip to content

Commit bad04bb

Browse files
committed
dev: regenerate README.md after #630
Also, output help for the new option in a more compact way.
1 parent f312a0f commit bad04bb

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,14 @@ Flags:
460460
-c, --config PATH Read config from file path PATH
461461
--no-config Don't read config
462462
--skip-dirs strings Regexps of directories to skip
463+
--skip-dirs-use-default Use or not use default excluded directories:
464+
- (^|/)vendor($|/)
465+
- (^|/)third_party($|/)
466+
- (^|/)testdata($|/)
467+
- (^|/)examples($|/)
468+
- (^|/)Godeps($|/)
469+
- (^|/)builtin($|/)
470+
(default true)
463471
--skip-files strings Regexps of files to skip
464472
-E, --enable strings Enable specific linter
465473
-D, --disable strings Disable specific linter

pkg/commands/run.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ func getDefaultIssueExcludeHelp() string {
4242
func getDefaultDirectoryExcludeHelp() string {
4343
parts := []string{"Use or not use default excluded directories:"}
4444
for _, dir := range packages.StdExcludeDirRegexps {
45-
parts = append(parts,
46-
fmt.Sprintf(" - %s", color.YellowString(dir)),
47-
"",
48-
)
45+
parts = append(parts, fmt.Sprintf(" - %s", color.YellowString(dir)))
4946
}
47+
parts = append(parts, "")
5048
return strings.Join(parts, "\n")
5149
}
5250

0 commit comments

Comments
 (0)