Skip to content

Commit b26f5cf

Browse files
authored
Merge pull request #90 from GoASTScanner/experimental
Remove debug print messages
2 parents 5b3192b + 39b18a1 commit b26f5cf

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

rules/rand.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package rules
1616

1717
import (
18-
"fmt"
1918
"go/ast"
2019

2120
gas "github.com/GoASTScanner/gas/core"
@@ -29,16 +28,6 @@ type WeakRand struct {
2928

3029
func (w *WeakRand) Match(n ast.Node, c *gas.Context) (*gas.Issue, error) {
3130
if _, matched := gas.MatchCallByPackage(n, c, w.packagePath, w.funcName); matched {
32-
fmt.Println("Imported:")
33-
for k, v := range c.Imports.Imported {
34-
fmt.Printf("%s => %s\n", k, v)
35-
}
36-
fmt.Println("Aliased:")
37-
for k, v := range c.Imports.Aliased {
38-
fmt.Printf("%s => %s\n", k, v)
39-
}
40-
fmt.Println("----------------------------------------")
41-
4231
return gas.NewIssue(c, n, w.What, w.Severity, w.Confidence), nil
4332
}
4433

0 commit comments

Comments
 (0)