mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00:00
Fix typos
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
parent
3e069e7756
commit
17df5b3702
1 changed files with 4 additions and 4 deletions
|
@ -57,7 +57,7 @@ func (c CallList) Contains(selector, ident string) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainsPointer returns true if a pointer to the selector type or the type
|
// ContainsPointer returns true if a pointer to the selector type or the type
|
||||||
// itslef is a members of this call list.
|
// itself is a members of this call list.
|
||||||
func (c CallList) ContainsPointer(selector, indent string) bool {
|
func (c CallList) ContainsPointer(selector, indent string) bool {
|
||||||
if strings.HasPrefix(selector, "*") {
|
if strings.HasPrefix(selector, "*") {
|
||||||
if c.Contains(selector, indent) {
|
if c.Contains(selector, indent) {
|
||||||
|
@ -70,7 +70,7 @@ func (c CallList) ContainsPointer(selector, indent string) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainsPkgCallExpr resolves the call expression name and type, and then further looks
|
// ContainsPkgCallExpr resolves the call expression name and type, and then further looks
|
||||||
// up the package path for that type. Finally, it determines if the call exists within the CallList
|
// up the package path for that type. Finally, it determines if the call exists within the call list
|
||||||
func (c CallList) ContainsPkgCallExpr(n ast.Node, ctx *Context, stripVendor bool) *ast.CallExpr {
|
func (c CallList) ContainsPkgCallExpr(n ast.Node, ctx *Context, stripVendor bool) *ast.CallExpr {
|
||||||
selector, ident, err := GetCallInfo(n, ctx)
|
selector, ident, err := GetCallInfo(n, ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -94,8 +94,8 @@ func (c CallList) ContainsPkgCallExpr(n ast.Node, ctx *Context, stripVendor bool
|
||||||
return n.(*ast.CallExpr)
|
return n.(*ast.CallExpr)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainsCallExpr resolves the call experssion name and type, and then determines
|
// ContainsCallExpr resolves the call expression name and type, and then determines
|
||||||
// if the call existis with the call list
|
// if the call exists with the call list
|
||||||
func (c CallList) ContainsCallExpr(n ast.Node, ctx *Context) *ast.CallExpr {
|
func (c CallList) ContainsCallExpr(n ast.Node, ctx *Context) *ast.CallExpr {
|
||||||
selector, ident, err := GetCallInfo(n, ctx)
|
selector, ident, err := GetCallInfo(n, ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue