Added the updated vendor
This commit is contained in:
parent
9fd3138fd5
commit
70abc4a01c
0
vendor/github.com/uudashr/gocognit/go.sum
generated
vendored
Normal file
0
vendor/github.com/uudashr/gocognit/go.sum
generated
vendored
Normal file
27
vendor/github.com/uudashr/gocognit/gocognit.go
generated
vendored
27
vendor/github.com/uudashr/gocognit/gocognit.go
generated
vendored
@ -133,6 +133,8 @@ func (v *complexityVisitor) Visit(n ast.Node) ast.Visitor {
|
|||||||
return v.visitSelectStmt(n)
|
return v.visitSelectStmt(n)
|
||||||
case *ast.ForStmt:
|
case *ast.ForStmt:
|
||||||
return v.visitForStmt(n)
|
return v.visitForStmt(n)
|
||||||
|
case *ast.RangeStmt:
|
||||||
|
return v.visitRangeStmt(n)
|
||||||
case *ast.FuncLit:
|
case *ast.FuncLit:
|
||||||
return v.visitFuncLit(n)
|
return v.visitFuncLit(n)
|
||||||
case *ast.BranchStmt:
|
case *ast.BranchStmt:
|
||||||
@ -218,6 +220,25 @@ func (v *complexityVisitor) visitForStmt(n *ast.ForStmt) ast.Visitor {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (v *complexityVisitor) visitRangeStmt(n *ast.RangeStmt) ast.Visitor {
|
||||||
|
v.nestIncComplexity()
|
||||||
|
|
||||||
|
if n.Key != nil {
|
||||||
|
ast.Walk(v, n.Key)
|
||||||
|
}
|
||||||
|
|
||||||
|
if n.Value != nil {
|
||||||
|
ast.Walk(v, n.Value)
|
||||||
|
}
|
||||||
|
|
||||||
|
ast.Walk(v, n.X)
|
||||||
|
|
||||||
|
v.incNesting()
|
||||||
|
ast.Walk(v, n.Body)
|
||||||
|
v.decNesting()
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func (v *complexityVisitor) visitFuncLit(n *ast.FuncLit) ast.Visitor {
|
func (v *complexityVisitor) visitFuncLit(n *ast.FuncLit) ast.Visitor {
|
||||||
ast.Walk(v, n.Type)
|
ast.Walk(v, n.Type)
|
||||||
|
|
||||||
@ -290,9 +311,3 @@ func mergeBinaryOps(x []token.Token, op token.Token, y []token.Token) []token.To
|
|||||||
}
|
}
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
func walkExprList(v ast.Visitor, list []ast.Expr) {
|
|
||||||
for _, x := range list {
|
|
||||||
ast.Walk(v, x)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@ -170,14 +170,14 @@ github.com/stretchr/testify/mock
|
|||||||
github.com/stretchr/testify/require
|
github.com/stretchr/testify/require
|
||||||
# github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e
|
# github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e
|
||||||
github.com/timakin/bodyclose/passes/bodyclose
|
github.com/timakin/bodyclose/passes/bodyclose
|
||||||
# github.com/tommy-muehle/go-mnd v0.0.0-20190903201840-c93e405da530
|
# github.com/tommy-muehle/go-mnd v1.1.1
|
||||||
github.com/tommy-muehle/go-mnd
|
github.com/tommy-muehle/go-mnd
|
||||||
github.com/tommy-muehle/go-mnd/checks
|
github.com/tommy-muehle/go-mnd/checks
|
||||||
# github.com/ultraware/funlen v0.0.2
|
# github.com/ultraware/funlen v0.0.2
|
||||||
github.com/ultraware/funlen
|
github.com/ultraware/funlen
|
||||||
# github.com/ultraware/whitespace v0.0.4
|
# github.com/ultraware/whitespace v0.0.4
|
||||||
github.com/ultraware/whitespace
|
github.com/ultraware/whitespace
|
||||||
# github.com/uudashr/gocognit v0.0.0-20190926065955-1655d0de0517
|
# github.com/uudashr/gocognit v1.0.1
|
||||||
github.com/uudashr/gocognit
|
github.com/uudashr/gocognit
|
||||||
# github.com/valyala/bytebufferpool v1.0.0
|
# github.com/valyala/bytebufferpool v1.0.0
|
||||||
github.com/valyala/bytebufferpool
|
github.com/valyala/bytebufferpool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user