mirror of
https://github.com/securego/gosec.git
synced 2025-03-19 21:08:30 +02:00
Remove debug print messages
This commit is contained in:
parent
ca42de24ba
commit
39b18a1539
@ -15,7 +15,6 @@
|
||||
package rules
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"go/ast"
|
||||
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
@ -29,16 +28,6 @@ type WeakRand struct {
|
||||
|
||||
func (w *WeakRand) Match(n ast.Node, c *gas.Context) (*gas.Issue, error) {
|
||||
if _, matched := gas.MatchCallByPackage(n, c, w.packagePath, w.funcName); matched {
|
||||
fmt.Println("Imported:")
|
||||
for k, v := range c.Imports.Imported {
|
||||
fmt.Printf("%s => %s\n", k, v)
|
||||
}
|
||||
fmt.Println("Aliased:")
|
||||
for k, v := range c.Imports.Aliased {
|
||||
fmt.Printf("%s => %s\n", k, v)
|
||||
}
|
||||
fmt.Println("----------------------------------------")
|
||||
|
||||
return gas.NewIssue(c, n, w.What, w.Severity, w.Confidence), nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user