1
0
mirror of https://github.com/mgechev/revive.git synced 2025-04-17 11:46:37 +02:00

Use new dots

This commit is contained in:
mgechev 2018-05-30 17:03:27 -07:00
parent e4877f3129
commit 9e52d7ffdd
No known key found for this signature in database
GPG Key ID: 3C44F5A2A289C6BB
2 changed files with 3 additions and 13 deletions

View File

@ -22,8 +22,6 @@ Here's how `revive` is different from `golint`:
- `Revive` provides more rules compared to `golint`.
- Faster. It runs the rules over each file in a separate goroutine.
_Keep in mind that in some cases the glob matching may have slightly different behavir compared to [golint](https://github.com/golang/go/issues/8768)_.
<p align="center">
<img src="./assets/demo.svg" alt="" width="700">
</p>

View File

@ -162,17 +162,9 @@ func getFiles() []string {
return nil
}
files, errs := dots.Resolve(globs, normalizeSplit(excludePaths))
if errs != nil && len(errs) > 0 {
err := ""
for i, e := range errs {
suffix := "\n"
if i == len(errs)-1 {
suffix = ""
}
err += e.Error() + suffix
}
fail(err)
files, err := dots.Resolve(globs, normalizeSplit(excludePaths))
if err != nil {
fail(err.Error())
}
return files