Skip to content

Commit b1000e7

Browse files
committed
update linter settings
1 parent 512b840 commit b1000e7

File tree

7 files changed

+201
-146
lines changed

7 files changed

+201
-146
lines changed

.golangci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,21 @@ linters-settings:
1818
nolintlint:
1919
require-explanation: true
2020
require-specific: true
21+
revive:
22+
rules:
23+
- name: dot-imports
24+
arguments:
25+
- allowedPackages:
26+
- github.com/onsi/ginkgo/v2
27+
- github.com/onsi/gomega
28+
gosec:
29+
excludes:
30+
- G115
2131

2232
linters:
2333
disable-all: true
2434
enable:
2535
- bodyclose
26-
- depguard
2736
- dogsled
2837
- dupl
2938
- errcheck
@@ -55,5 +64,6 @@ linters:
5564

5665
run:
5766
issues-exit-code: 1
58-
skip-dirs:
67+
issues:
68+
exclude-dirs:
5969
- test

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ $(ENVTEST): $(LOCALBIN)
218218

219219
.PHONY: lint
220220
lint:
221-
docker run --rm -v $$(pwd):/app -w /app golangci/golangci-lint:v1.50.1 golangci-lint run -v --timeout 10m
221+
golangci-lint run -v --timeout 10m
222222

223223
##@ Helm-docs
224224
.PHONY: helm-docs

charts/bifrost-gateway-controller/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [UNRELEASED]
44

5+
- Re-generated crds using new tooling versions (cause reformatting of `description` fields).
56
- Example text, add your PR info according to example below below this line. Do not bump chart version in Chart.yaml unless a chart release will be made following your PR.
67

78
## [0.1.9]

charts/bifrost-gateway-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: bifrost-gateway-controller-helm
33
description: Gateway API driven management of network infrastructure across Kubernetes and cloud infrastructure
44
type: application
5-
version: 0.1.9
5+
version: 0.1.10
66
appVersion: "0.0.21"

charts/bifrost-gateway-controller/crds/crds.yaml

Lines changed: 137 additions & 142 deletions
Large diffs are not rendered by default.

devbox.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"packages": [
44
"gnumake@4.4.1",
55
"go@1.23.4",
6+
"golangci-lint@1.62.2",
67
"goreleaser@2.5.0",
78
"kind@0.24.0",
89
"kubebuilder@4.3.1",

devbox.lock

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,54 @@
141141
}
142142
}
143143
},
144+
"golangci-lint@1.62.2": {
145+
"last_modified": "2024-12-23T21:10:33Z",
146+
"resolved": "github:NixOS/nixpkgs/de1864217bfa9b5845f465e771e0ecb48b30e02d#golangci-lint",
147+
"source": "devbox-search",
148+
"version": "1.62.2",
149+
"systems": {
150+
"aarch64-darwin": {
151+
"outputs": [
152+
{
153+
"name": "out",
154+
"path": "/nix/store/5liapbkl2xs5kww2wvs2yv8grhcaswwl-golangci-lint-1.62.2",
155+
"default": true
156+
}
157+
],
158+
"store_path": "/nix/store/5liapbkl2xs5kww2wvs2yv8grhcaswwl-golangci-lint-1.62.2"
159+
},
160+
"aarch64-linux": {
161+
"outputs": [
162+
{
163+
"name": "out",
164+
"path": "/nix/store/87ihwdp39vxi97q0bfv8isw2p1pyz257-golangci-lint-1.62.2",
165+
"default": true
166+
}
167+
],
168+
"store_path": "/nix/store/87ihwdp39vxi97q0bfv8isw2p1pyz257-golangci-lint-1.62.2"
169+
},
170+
"x86_64-darwin": {
171+
"outputs": [
172+
{
173+
"name": "out",
174+
"path": "/nix/store/73jfn21by312v2jawvmb9rkjhls28ry7-golangci-lint-1.62.2",
175+
"default": true
176+
}
177+
],
178+
"store_path": "/nix/store/73jfn21by312v2jawvmb9rkjhls28ry7-golangci-lint-1.62.2"
179+
},
180+
"x86_64-linux": {
181+
"outputs": [
182+
{
183+
"name": "out",
184+
"path": "/nix/store/rzvlg3gzv8cgr4qpvsxx1q8pmgdl9j95-golangci-lint-1.62.2",
185+
"default": true
186+
}
187+
],
188+
"store_path": "/nix/store/rzvlg3gzv8cgr4qpvsxx1q8pmgdl9j95-golangci-lint-1.62.2"
189+
}
190+
}
191+
},
144192
"goreleaser@2.5.0": {
145193
"last_modified": "2024-12-23T21:10:33Z",
146194
"resolved": "github:NixOS/nixpkgs/de1864217bfa9b5845f465e771e0ecb48b30e02d#goreleaser",

0 commit comments

Comments
 (0)