mirror of
https://github.com/securego/gosec.git
synced 2025-03-01 04:33:29 +00:00
Merge pull request #63 from GoASTScanner/travis_ci
Add go vet to travis-ci
This commit is contained in:
commit
853b097922
2 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
language: go
|
language: go
|
||||||
|
before_script:
|
||||||
|
- go vet ./...
|
||||||
go:
|
go:
|
||||||
- 1.5
|
- 1.5
|
||||||
- tip
|
- tip
|
||||||
|
|
|
@ -30,10 +30,12 @@ type SqlStrConcat struct {
|
||||||
SqlStatement
|
SqlStatement
|
||||||
}
|
}
|
||||||
|
|
||||||
// see if we can figgure out what it is
|
// see if we can figure out what it is
|
||||||
func (s *SqlStrConcat) checkObject(n *ast.Ident) bool {
|
func (s *SqlStrConcat) checkObject(n *ast.Ident) bool {
|
||||||
if n.Obj != nil {
|
if n.Obj != nil {
|
||||||
return (n.Obj.Kind != ast.Var || n.Obj.Kind != ast.Fun)
|
// TODO(gm): Revisit logic used here.
|
||||||
|
//return (n.Obj.Kind != ast.Var || n.Obj.Kind != ast.Fun)
|
||||||
|
return n.Obj.Kind != ast.Var && n.Obj.Kind != ast.Fun
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue