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
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -93,14 +93,17 @@ linters:
93
93
- pattern: ^http\.Handle(?:Func)?$
94
94
- pkg: ^gopkg\.in/square/go-jose\.v2
95
95
msg: gopk.in/square/go-jose is archived and has CVEs. Replace it with gopkg.in/go-jose/go-jose.v2
96
-
- pkg: ^github\.com/coreos/go-oidc
96
+
- pkg: ^github\.com/coreos/go-oidc$
97
97
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
98
98
- pkg: ^github\.com/howeyc/gopass
99
99
msg: github.com/howeyc/gopass is archived, use golang.org/x/term instead
100
100
- pkg: ^github\.com/containers/image/v5
101
101
msg: github.com/containers/image/v5 is deprecated and was replaced with go.podman.io/image/v5
102
102
goconst:
103
103
min-occurrences: 5
104
+
ignore-tests: true
105
+
ignore-string-values:
106
+
- '^[a-zA-Z_-]{1,16}$'# ignore short identifiers like "account" or "project_id"
104
107
gocritic:
105
108
enabled-checks:
106
109
- boolExprSimplify
@@ -132,10 +135,8 @@ linters:
132
135
- github.com/mdlayher/arp
133
136
# for github.com/sapcc/vpa_butler
134
137
- k8s.io/client-go
135
-
# for github.com/sapcc/keppel et al
136
-
- github.com/go-gorp/gorp/v3
137
138
toolchain-forbidden: true
138
-
go-version-pattern: 1\.\d+(\.\d+)?$
139
+
go-version-pattern: 1\.\d+(\.0)?$
139
140
gosec:
140
141
excludes:
141
142
# gosec wants us to set a short ReadHeaderTimeout to avoid Slowloris attacks, but doing so would expose us to Keep-Alive race conditions (see https://iximiuz.com/en/posts/reverse-proxy-http-keep-alive-and-502s/
Copy file name to clipboardExpand all lines: Makefile
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -68,10 +68,10 @@ install-setup-envtest: FORCE
68
68
# To add additional flags or values (before the default ones), specify the variable in the environment, e.g. `GO_BUILDFLAGS='-tags experimental' make`.
69
69
# To override the default flags or values, specify the variable on the command line, e.g. `make GO_BUILDFLAGS='-tags experimental'`.
70
70
GO_BUILDFLAGS +=
71
-
GO_LDFLAGS +=
72
-
GO_TESTFLAGS +=
73
-
GO_TESTENV +=
74
-
GO_BUILDENV +=
71
+
GO_LDFLAGS+=
72
+
GO_TESTFLAGS+=
73
+
GO_TESTENV+=
74
+
GO_BUILDENV+=
75
75
76
76
build-all: build/cloud-profile-sync
77
77
@@ -100,13 +100,14 @@ GO_COVERPKGS := $(shell go list ./...)
100
100
null :=
101
101
space := $(null)$(null)
102
102
comma := ,
103
+
YEAR ?= $(shell date +%Y)
103
104
104
105
check: FORCE static-check build/cover.html build-all
105
106
@printf "\e[1;32m>> All checks successful.\e[0m\n"
@@ -125,7 +126,7 @@ run-typos: FORCE install-typos
125
126
126
127
build/cover.out: FORCE generate install-setup-envtest | build
127
128
@printf "\e[1;36m>> Running tests\e[0m\n"
128
-
KUBEBUILDER_ASSETS=$$(setup-envtest use 1.34 -p path) go run github.com/onsi/ginkgo/v2/ginkgo run --randomize-all -output-dir=build $(GO_BUILDFLAGS) -ldflags '-s -w $(GO_LDFLAGS)' -covermode=count -coverpkg=$(subst$(space),$(comma),$(GO_COVERPKGS))$(GO_TESTFLAGS)$(GO_TESTPKGS)
129
+
KUBEBUILDER_ASSETS=$$(setup-envtest use 1.36 -p path) go run github.com/onsi/ginkgo/v2/ginkgo run --randomize-all -output-dir=build $(GO_BUILDFLAGS) -ldflags '-s -w $(GO_LDFLAGS)' -covermode=count -coverpkg=$(subst$(space),$(comma),$(GO_COVERPKGS))$(GO_TESTFLAGS)$(GO_TESTPKGS)
0 commit comments