Skip to content

Commit d9dda48

Browse files
chore(deps): update golangci/golangci-lint-action action to v6.5.0 (#576)
* chore(deps): update golangci/golangci-lint-action action to v6.5.0 * chore: Address golangci findings with new version Signed-off-by: Marco Maurer <[email protected]> --------- Signed-off-by: Marco Maurer <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Marco Maurer <[email protected]>
1 parent 0679b62 commit d9dda48

File tree

7 files changed

+4
-17
lines changed

7 files changed

+4
-17
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
- name: Build provider
2828
run: make build
2929
- name: Run linters
30-
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
30+
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
3131
with:
32-
version: v1.59.1
32+
version: v1.64.6
3333

3434
generate:
3535
runs-on: ubuntu-24.04

.golangci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ issues:
1212
- path: _test\.go
1313
linters:
1414
- contextcheck
15-
max-per-linter: 0
1615
max-same-issues: 0
1716

1817
linters:
@@ -22,12 +21,12 @@ linters:
2221
- asciicheck
2322
- containedctx
2423
- contextcheck
24+
- copyloopvar
2525
- dogsled
2626
- durationcheck
2727
- errcheck
2828
- errname
2929
- errorlint
30-
- exportloopref
3130
- goconst
3231
- gocritic
3332
- gofmt
@@ -44,12 +43,12 @@ linters:
4443
- predeclared
4544
- staticcheck
4645
- stylecheck
47-
- tenv
4846
- tparallel
4947
- typecheck
5048
- unconvert
5149
- unparam
5250
- unused
51+
- usetesting
5352
- whitespace
5453
- wsl
5554

@@ -99,7 +98,6 @@ linters-settings:
9998
- strings.SplitN
10099
nolintlint:
101100
allow-unused: false
102-
allow-leading-space: false
103101
require-explanation: true
104102
require-specific: true
105103
allow-no-explanation:

argocd/schema_application_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,6 @@ func TestUpgradeSchemaApplication_V3V4(t *testing.T) {
547547
}
548548

549549
for _, tc := range cases {
550-
tc := tc
551-
552550
t.Run(tc.name, func(t *testing.T) {
553551
t.Parallel()
554552

argocd/schema_project_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ func TestResourceArgoCDProjectStateUpgradeV0(t *testing.T) {
128128
}
129129

130130
for _, tc := range cases {
131-
tc := tc
132-
133131
t.Run(tc.name, func(t *testing.T) {
134132
t.Parallel()
135133

argocd/structure_metadata_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ func TestMetadataIsInternalKey(t *testing.T) {
2121
{"notified.notifications.argoproj.io", true},
2222
}
2323
for i, tc := range testCases {
24-
i := i
25-
tc := tc
26-
2724
t.Run(fmt.Sprintf("%d", i), func(t *testing.T) {
2825
t.Parallel()
2926

argocd/validators_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ func Test_validateSSHPrivateKey(t *testing.T) {
3030
}
3131

3232
for _, tt := range tests {
33-
tt := tt
34-
3533
t.Run(tt.name, func(t *testing.T) {
3634
t.Parallel()
3735

internal/provider/server_interface_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ func TestServerInterface_isFeatureSupported(t *testing.T) {
8585
}
8686

8787
for _, tt := range tests {
88-
tt := tt
89-
9088
t.Run(tt.name, func(t *testing.T) {
9189
t.Parallel()
9290

0 commit comments

Comments
 (0)