Skip to content

Commit ffe6871

Browse files
chore(deps): update golangci-lint & enable renovate (#779)
Signed-off-by: Nathanael Liechti <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathanael Liechti <[email protected]>
1 parent 5d2a5b1 commit ffe6871

File tree

3 files changed

+88
-77
lines changed

3 files changed

+88
-77
lines changed

.github/renovate.json

Lines changed: 85 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,86 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended",
5-
"schedule:weekly"
6-
],
7-
"ignoreDeps": [
8-
"k8s.io/api",
9-
"k8s.io/apiextensions-apiserver",
10-
"k8s.io/apimachinery",
11-
"k8s.io/apiserver",
12-
"k8s.io/cli-runtime",
13-
"k8s.io/client-go",
14-
"k8s.io/cloud-provider",
15-
"k8s.io/cluster-bootstrap",
16-
"k8s.io/code-generator",
17-
"k8s.io/component-base",
18-
"k8s.io/component-helpers",
19-
"k8s.io/controller-manager",
20-
"k8s.io/cri-api",
21-
"k8s.io/cri-client",
22-
"k8s.io/csi-translation-lib",
23-
"k8s.io/dynamic-resource-allocation",
24-
"k8s.io/endpointslice",
25-
"k8s.io/externaljwt",
26-
"k8s.io/kms",
27-
"k8s.io/kube-aggregator",
28-
"k8s.io/kube-controller-manager",
29-
"k8s.io/kube-proxy",
30-
"k8s.io/kube-scheduler",
31-
"k8s.io/kubectl",
32-
"k8s.io/kubelet",
33-
"k8s.io/legacy-cloud-providers",
34-
"k8s.io/metrics",
35-
"k8s.io/mount-utils",
36-
"k8s.io/pod-security-admission",
37-
"k8s.io/sample-apiserver",
38-
"k8s.io/sample-cli-plugin",
39-
"k8s.io/sample-controller"
40-
],
41-
"postUpdateOptions": [
42-
"gomodTidy"
43-
],
44-
"labels": [
45-
"dependencies"
46-
],
47-
"packageRules": [
48-
{
49-
"matchPackageNames": [
50-
"/terraform-plugin-framework/",
51-
"/terraform-plugin-mux/",
52-
"/terraform-plugin-go/",
53-
"/terraform-plugin-testing/",
54-
"/terraform-plugin-sdk/"
55-
],
56-
"groupName": "terraform-plugin-framework"
57-
},
58-
{
59-
"matchPackageNames": [
60-
"/go/"
61-
],
62-
"addLabels": [
63-
"go"
64-
]
65-
},
66-
{
67-
"matchDepTypes": [
68-
"/github/"
69-
],
70-
"addLabels": [
71-
"github_actions"
72-
]
73-
}
74-
]
75-
}
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
"schedule:weekly"
6+
],
7+
"ignoreDeps": [
8+
"k8s.io/api",
9+
"k8s.io/apiextensions-apiserver",
10+
"k8s.io/apimachinery",
11+
"k8s.io/apiserver",
12+
"k8s.io/cli-runtime",
13+
"k8s.io/client-go",
14+
"k8s.io/cloud-provider",
15+
"k8s.io/cluster-bootstrap",
16+
"k8s.io/code-generator",
17+
"k8s.io/component-base",
18+
"k8s.io/component-helpers",
19+
"k8s.io/controller-manager",
20+
"k8s.io/cri-api",
21+
"k8s.io/cri-client",
22+
"k8s.io/csi-translation-lib",
23+
"k8s.io/dynamic-resource-allocation",
24+
"k8s.io/endpointslice",
25+
"k8s.io/externaljwt",
26+
"k8s.io/kms",
27+
"k8s.io/kube-aggregator",
28+
"k8s.io/kube-controller-manager",
29+
"k8s.io/kube-proxy",
30+
"k8s.io/kube-scheduler",
31+
"k8s.io/kubectl",
32+
"k8s.io/kubelet",
33+
"k8s.io/legacy-cloud-providers",
34+
"k8s.io/metrics",
35+
"k8s.io/mount-utils",
36+
"k8s.io/pod-security-admission",
37+
"k8s.io/sample-apiserver",
38+
"k8s.io/sample-cli-plugin",
39+
"k8s.io/sample-controller"
40+
],
41+
"postUpdateOptions": [
42+
"gomodTidy"
43+
],
44+
"labels": [
45+
"dependencies"
46+
],
47+
"packageRules": [
48+
{
49+
"matchPackageNames": [
50+
"/terraform-plugin-framework/",
51+
"/terraform-plugin-mux/",
52+
"/terraform-plugin-go/",
53+
"/terraform-plugin-testing/",
54+
"/terraform-plugin-sdk/"
55+
],
56+
"groupName": "terraform-plugin-framework"
57+
},
58+
{
59+
"matchPackageNames": [
60+
"/go/"
61+
],
62+
"addLabels": [
63+
"go"
64+
]
65+
},
66+
{
67+
"matchDepTypes": [
68+
"/github/"
69+
],
70+
"addLabels": [
71+
"github_actions"
72+
]
73+
}
74+
],
75+
"customManagers": [
76+
{
77+
"customType": "regex",
78+
"fileMatch": [
79+
"(^|\\/).*\\.ya?ml$"
80+
],
81+
"matchStrings": [
82+
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+[vV]ersion: (?<currentValue>.*)"
83+
]
84+
}
85+
]
86+
}

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ jobs:
3030
- name: Build provider
3131
run: make build
3232
- name: Run linters
33-
uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9.0.0
33+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
3434
with:
35+
# renovate: datasource=github-tags depName=golangci/golangci-lint
3536
version: v2.6.2
3637

3738
generate:

.golangci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ linters:
3232
- unused
3333
- usetesting
3434
- whitespace
35-
- wsl
3635
settings:
3736
depguard:
3837
rules:
@@ -132,7 +131,7 @@ linters:
132131
- staticcheck
133132
text: "ST1003:"
134133
- linters:
135-
- staticcheck
134+
- staticcheck
136135
text: "SA1019:"
137136
path: internal/types/pgp_public_key.go
138137
paths:

0 commit comments

Comments
 (0)