Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Update GolangCI-lint to v1.58.1 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 authored May 9, 2024
1 parent b7233fb commit bf65231
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.56
version: v1.58
args: --timeout 10m0s

- name: Checkmake
Expand Down
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ linters-settings:
min-complexity: 20
goimports:
local-prefixes: github.com/golangci/golangci-lint
gomnd:
mnd:
settings:
mnd:
# do not include the "operation" and "assign"
Expand Down Expand Up @@ -63,7 +63,7 @@ linters:
- gocyclo
- gofmt
- goimports
- gomnd
- mnd
- goprintffuncname
- gosec
- gosimple
Expand Down Expand Up @@ -106,7 +106,7 @@ issues:
# Ignore magic numbers, inline strings and function length in tests.
- path: _test\.go
linters:
- gomnd
- mnd
- goconst
- funlen
# Ignore line length for string assignments (do not try and wrap regex definitions)
Expand Down
1 change: 0 additions & 1 deletion packages/patches/patches.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func (m *ManifestPatcher) Validate() error {
func setPatchDefaults(
apiVersion, kind, name, namespace string, patch map[string]interface{},
) error {
//nolint:goconst
errTemplate := `failed to retrieve the "%s" field from the manifest of name "` + name +
`"` + ` and kind "` + kind + `": %v`
setErrTemplate := `failed to set the "%s" field on the patch from the manifest of name "` +
Expand Down

0 comments on commit bf65231

Please sign in to comment.