dev: regenerate README.md after #630
Also, output help for the new option in a more compact way.
This commit is contained in:
parent
f312a0fc4e
commit
bad04bb737
@ -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
|
||||
|
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user