Skip to content

Commit

Permalink
Bump linter version (#2888)
Browse files Browse the repository at this point in the history
* Bump linter version

* Fix lint error

* Use new config for exclude-dirs
  • Loading branch information
ReToCode authored Sep 24, 2024
1 parent c8d8f95 commit de5836e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
- name: Go Lint - knative-operator
uses: golangci/golangci-lint-action@v6
with:
version: v1.55.2
version: v1.61.0
args: --timeout=10m0s --verbose
working-directory: ./src/github.com/${{ github.repository }}

Expand Down
6 changes: 3 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ run:
build-tags:
- upgrade

skip-dirs:
- pkg/client

linters:
enable:
- asciicheck
Expand Down Expand Up @@ -49,6 +46,9 @@ linters-settings:
alias: $1$2

issues:
exclude-dirs:
- pkg/client

exclude-rules:
- path: test # Excludes /test, *_test.go etc.
linters:
Expand Down
3 changes: 1 addition & 2 deletions test/installplan.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ func WaitForInstallPlan(ctx *Context, namespace string, csvName, olmSource strin
}

func installsCSVFromSource(installPlan operatorsv1alpha1.InstallPlan, csvName, olmSource string) bool {
if installPlan.Status.BundleLookups == nil ||
len(installPlan.Status.BundleLookups) == 0 ||
if len(installPlan.Status.BundleLookups) == 0 ||
installPlan.Status.BundleLookups[0].CatalogSourceRef == nil ||
installPlan.Status.BundleLookups[0].CatalogSourceRef.Name != olmSource {
return false
Expand Down

0 comments on commit de5836e

Please sign in to comment.