Skip to content

Commit efb3599

Browse files
authored
Bump github.com/ashanbrown/forbidigo from 1.2.0 to 1.3.0 (#2487)
1 parent b5d8e69 commit efb3599

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

go.sum

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/testdata/configs/forbidigo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ linters-settings:
22
forbidigo:
33
forbid:
44
- fmt\.Print.*
5+
- time.Sleep(# no sleeping!)?

test/testdata/forbidigo_example.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
//config_path: testdata/configs/forbidigo.yml
33
package testdata
44

5-
import "fmt"
5+
import (
6+
"fmt"
7+
"time"
8+
)
69

710
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!"
913
}

0 commit comments

Comments
 (0)