File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -460,6 +460,14 @@ Flags:
460
460
-c, --config PATH Read config from file path PATH
461
461
--no-config Don' t read config
462
462
--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)
463
471
--skip-files strings Regexps of files to skip
464
472
-E, --enable strings Enable specific linter
465
473
-D, --disable strings Disable specific linter
Original file line number Diff line number Diff line change @@ -42,11 +42,9 @@ func getDefaultIssueExcludeHelp() string {
42
42
func getDefaultDirectoryExcludeHelp () string {
43
43
parts := []string {"Use or not use default excluded directories:" }
44
44
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 )))
49
46
}
47
+ parts = append (parts , "" )
50
48
return strings .Join (parts , "\n " )
51
49
}
52
50
You can’t perform that action at this time.
0 commit comments