File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -42,11 +42,9 @@ func getDefaultIssueExcludeHelp() string {
4242func 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
You can’t perform that action at this time.
0 commit comments