1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-21 17:16:40 +02:00

Same behavior as golint with no arguments

This commit is contained in:
mgechev 2018-05-30 18:31:38 -07:00
parent 0218565672
commit 21ff630a2b
No known key found for this signature in database
GPG Key ID: 3C44F5A2A289C6BB
2 changed files with 2 additions and 3 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -158,8 +158,7 @@ func normalizeSplit(strs []string) []string {
func getFiles() []string {
globs := normalizeSplit(flag.Args())
if len(globs) == 0 {
flag.Usage()
return nil
globs = append(globs, ".")
}
files, err := dots.Resolve(globs, normalizeSplit(excludePaths))