mirror of
https://github.com/mgechev/revive.git
synced 2025-03-17 20:57:58 +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")
|
||||
}
|
||||
|
||||
files, err := dots.Resolve(globs, strings.Split(excludePaths, " "))
|
||||
if err != nil {
|
||||
fail(err.Error())
|
||||
files, errs := dots.Resolve(globs, strings.Split(excludePaths, " "))
|
||||
if errs != nil && len(errs) > 0 {
|
||||
err := ""
|
||||
for _, e := range errs {
|
||||
err += e.Error() + "\n"
|
||||
}
|
||||
fail(err)
|
||||
}
|
||||
|
||||
return files
|
||||
|
Loading…
x
Reference in New Issue
Block a user