Skip to content

Commit

Permalink
update golangci-lint to 1.55.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhur97 authored and sbueringer committed Dec 6, 2023
1 parent de24106 commit ff718da
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # tag=v3.7.0
with:
version: v1.54.1
version: v1.55.2
args: --out-format=colored-line-number
14 changes: 13 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ linters-settings:

ginkgolinter:
forbid-focus-container: true
goconst:
ignore-tests: true

issues:
max-same-issues: 0
Expand Down Expand Up @@ -211,7 +213,17 @@ issues:
- linters:
- revive
- stylecheck
path: test/.*.go
path: _test\.go
text: should not use dot imports
- linters:
- revive
- stylecheck
path: test/e2e/.*.go
text: should not use dot imports
- linters:
- revive
- stylecheck
path: test/helpers/vmware/.*.go
text: should not use dot imports
# Append should be able to assign to a different var/slice.
- linters:
Expand Down
2 changes: 1 addition & 1 deletion pkg/identity/identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var _ = Describe("GetCredentials", func() {
if labels == nil {
labels = map[string]string{}
}
labels["identity-authorized"] = "true" //nolint: goconst
labels["identity-authorized"] = "true"
ns.Labels = labels
Expect(k8sclient.Update(ctx, ns)).To(Succeed())

Expand Down
3 changes: 2 additions & 1 deletion pkg/services/govmomi/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ func Test_ShouldRetryTask(t *testing.T) {
{baseTask(types.TaskInfoStateRunning, ""), false},
{baseTask(types.TaskInfoStateSuccess, ""), true},
}
for _, tt := range tests {
for i := range tests {
tt := tests[i]
t.Run(fmt.Sprintf("state: %s", tt.task.Info.State), func(t *testing.T) {
g = NewWithT(t)
reconciled, err := checkAndRetryTask(vmCtx, &tt.task)
Expand Down

0 comments on commit ff718da

Please sign in to comment.