File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ require (
10
10
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24
11
11
github.com/OpenPeeDeeP/depguard v1.1.0
12
12
github.com/alexkohler/prealloc v1.0.0
13
- github.com/ashanbrown/forbidigo v1.2 .0
13
+ github.com/ashanbrown/forbidigo v1.3 .0
14
14
github.com/ashanbrown/makezero v0.0.0-20210520155254-b6261585ddde
15
15
github.com/bkielbasa/cyclop v1.2.0
16
16
github.com/blizzy78/varnamelen v0.5.0
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ linters-settings:
2
2
forbidigo :
3
3
forbid :
4
4
- fmt\.Print.*
5
+ - time.Sleep(# no sleeping!)?
Original file line number Diff line number Diff line change 2
2
//config_path: testdata/configs/forbidigo.yml
3
3
package testdata
4
4
5
- import "fmt"
5
+ import (
6
+ "fmt"
7
+ "time"
8
+ )
6
9
7
10
func Forbidigo () {
8
- fmt .Printf ("too noisy!!!" ) // ERROR "use of `fmt\\.Printf` forbidden by pattern `fmt\\\\.Print\\.\\*`"
11
+ fmt .Printf ("too noisy!!!" ) // ERROR "use of `fmt\\.Printf` forbidden by pattern `fmt\\\\.Print\\.\\*`"
12
+ time .Sleep (time .Nanosecond ) // ERROR "no sleeping!"
9
13
}
You can’t perform that action at this time.
0 commit comments