Skip to content

Commit

Permalink
Bump github.com/ashanbrown/forbidigo from 1.2.0 to 1.3.0 (golangci#2487)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanbrown authored and SeigeC committed Apr 4, 2023
1 parent e93d073 commit 5742d95
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -10,7 +10,7 @@ require (
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24
github.com/OpenPeeDeeP/depguard v1.1.0
github.com/alexkohler/prealloc v1.0.0
github.com/ashanbrown/forbidigo v1.2.0
github.com/ashanbrown/forbidigo v1.3.0
github.com/ashanbrown/makezero v0.0.0-20210520155254-b6261585ddde
github.com/bkielbasa/cyclop v1.2.0
github.com/blizzy78/varnamelen v0.5.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/testdata/configs/forbidigo.yml
Expand Up @@ -2,3 +2,4 @@ linters-settings:
forbidigo:
forbid:
- fmt\.Print.*
- time.Sleep(# no sleeping!)?
8 changes: 6 additions & 2 deletions test/testdata/forbidigo_example.go
Expand Up @@ -2,8 +2,12 @@
//config_path: testdata/configs/forbidigo.yml
package testdata

import "fmt"
import (
"fmt"
"time"
)

func Forbidigo() {
fmt.Printf("too noisy!!!") // ERROR "use of `fmt\\.Printf` forbidden by pattern `fmt\\\\.Print\\.\\*`"
fmt.Printf("too noisy!!!") // ERROR "use of `fmt\\.Printf` forbidden by pattern `fmt\\\\.Print\\.\\*`"
time.Sleep(time.Nanosecond) // ERROR "no sleeping!"
}

0 comments on commit 5742d95

Please sign in to comment.