You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .golangci.yaml
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,22 @@ linters-settings:
37
37
exclude-functions:
38
38
- (*github.com/spf13/cobra.Command).Help
39
39
forbidigo:
40
+
analyze-types: true # required for pkg:
40
41
forbid:
41
42
# ioutil package has been deprecated: https://github.com/golang/go/issues/42026
42
43
- ^ioutil\..*$
43
44
# Using http.DefaultServeMux is discouraged because it's a global variable that some packages silently and magically add handlers to (esp. net/http/pprof).
44
45
# Applications wishing to use http.ServeMux should obtain local instances through http.NewServeMux() instead of using the global default instance.
45
46
- ^http\.DefaultServeMux$
46
47
- ^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"
0 commit comments