Skip to content

Commit 5742d95

Browse files
ashanbrownSeigeC
authored andcommitted
Bump github.com/ashanbrown/forbidigo from 1.2.0 to 1.3.0 (golangci#2487)
1 parent e93d073 commit 5742d95

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

go.mod

+1-1
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

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/testdata/configs/forbidigo.yml

+1
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

+6-2
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)