Skip to content

Commit d2563c7

Browse files
author
sapcc-bot
committed
Run go-makefile-maker
1 parent 0567e45 commit d2563c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.golangci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,22 @@ linters-settings:
3737
exclude-functions:
3838
- (*github.com/spf13/cobra.Command).Help
3939
forbidigo:
40+
analyze-types: true # required for pkg:
4041
forbid:
4142
# ioutil package has been deprecated: https://github.com/golang/go/issues/42026
4243
- ^ioutil\..*$
4344
# Using http.DefaultServeMux is discouraged because it's a global variable that some packages silently and magically add handlers to (esp. net/http/pprof).
4445
# Applications wishing to use http.ServeMux should obtain local instances through http.NewServeMux() instead of using the global default instance.
4546
- ^http\.DefaultServeMux$
4647
- ^http\.Handle(?:Func)?$
48+
# Forbid usage of old and archived square/go-jose
49+
- pkg: ^gopkg\.in/square/go-jose\.v2$
50+
msg: "gopk.in/square/go-jose is arcived and has CVEs. Replace it with gopkg.in/go-jose/go-jose.v2"
51+
- pkg: ^github.com/coreos/go-oidc$
52+
msg: "github.com/coreos/go-oidc depends on gopkg.in/square/go-jose which has CVEs. Replace it with github.com/coreos/go-oidc/v3"
53+
54+
- pkg: ^github.com/howeyc/gopass$
55+
msg: "github.com/howeyc/gopass is archived, use golang.org/x/term instead"
4756
goconst:
4857
ignore-tests: true
4958
min-occurrences: 5

0 commit comments

Comments
 (0)