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 (
1010 github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24
1111 github.com/OpenPeeDeeP/depguard v1.1.0
1212 github.com/alexkohler/prealloc v1.0.0
13- github.com/ashanbrown/forbidigo v1.2 .0
13+ github.com/ashanbrown/forbidigo v1.3 .0
1414 github.com/ashanbrown/makezero v0.0.0-20210520155254-b6261585ddde
1515 github.com/bkielbasa/cyclop v1.2.0
1616 github.com/blizzy78/varnamelen v0.5.0
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ linters-settings:
22 forbidigo :
33 forbid :
44 - fmt\.Print.*
5+ - time.Sleep(# no sleeping!)?
Original file line number Diff line number Diff line change 22//config_path: testdata/configs/forbidigo.yml
33package testdata
44
5- import "fmt"
5+ import (
6+ "fmt"
7+ "time"
8+ )
69
710func 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!"
913}
You can’t perform that action at this time.
0 commit comments