mirror of
https://github.com/mgechev/revive.git
synced 2025-03-21 21:17:06 +02:00
Use similar path names to golint
This commit is contained in:
parent
e5083a384e
commit
b59982cd81
@ -148,9 +148,13 @@ func getFiles() []string {
|
|||||||
fail("files not specified")
|
fail("files not specified")
|
||||||
}
|
}
|
||||||
|
|
||||||
files, err := dots.Resolve(globs, strings.Split(excludePaths, " "))
|
files, errs := dots.Resolve(globs, strings.Split(excludePaths, " "))
|
||||||
if err != nil {
|
if errs != nil && len(errs) > 0 {
|
||||||
fail(err.Error())
|
err := ""
|
||||||
|
for _, e := range errs {
|
||||||
|
err += e.Error() + "\n"
|
||||||
|
}
|
||||||
|
fail(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return files
|
return files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user