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:
parent
e4877f3129
commit
9e52d7ffdd
@ -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>
|
||||
|
14
config.go
14
config.go
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user