Skip to content

Commit 62271d8

Browse files
authored
Merge pull request #4030 from camilamacedo86/upgrade-lint
✨ Upgrade golangci-lint from v1.57.2 to v1.59.1
2 parents bf84a88 + bf42d50 commit 62271d8

File tree

41 files changed

+67
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+67
-64
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Run linter
2222
uses: golangci/golangci-lint-action@v6
2323
with:
24-
version: v1.57
24+
version: v1.59
2525

2626
yamllint:
2727
runs-on: ubuntu-latest

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
104104
golangci-lint:
105105
@[ -f $(GOLANGCI_LINT) ] || { \
106106
set -e ;\
107-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.57.2 ;\
107+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.59.1 ;\
108108
}
109109

110110
.PHONY: apidiff

docs/book/src/cronjob-tutorial/testdata/project/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ GOLANGCI_LINT = $(LOCALBIN)/golangci-lint
161161
KUSTOMIZE_VERSION ?= v5.4.2
162162
CONTROLLER_TOOLS_VERSION ?= v0.15.0
163163
ENVTEST_VERSION ?= release-0.18
164-
GOLANGCI_LINT_VERSION ?= v1.57.2
164+
GOLANGCI_LINT_VERSION ?= v1.59.1
165165

166166
.PHONY: kustomize
167167
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

docs/book/src/cronjob-tutorial/testdata/project/test/e2e/e2e_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ import (
2727
// Run e2e tests using the Ginkgo runner.
2828
func TestE2E(t *testing.T) {
2929
RegisterFailHandler(Fail)
30-
fmt.Fprintf(GinkgoWriter, "Starting project suite\n")
30+
_, _ = fmt.Fprintf(GinkgoWriter, "Starting project suite\n")
3131
RunSpecs(t, "e2e suite")
3232
}

docs/book/src/cronjob-tutorial/testdata/project/test/utils/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
)
3636

3737
func warnError(err error) {
38-
fmt.Fprintf(GinkgoWriter, "warning: %v\n", err)
38+
_, _ = fmt.Fprintf(GinkgoWriter, "warning: %v\n", err)
3939
}
4040

4141
// InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.
@@ -52,12 +52,12 @@ func Run(cmd *exec.Cmd) ([]byte, error) {
5252
cmd.Dir = dir
5353

5454
if err := os.Chdir(cmd.Dir); err != nil {
55-
fmt.Fprintf(GinkgoWriter, "chdir dir: %s\n", err)
55+
_, _ = fmt.Fprintf(GinkgoWriter, "chdir dir: %s\n", err)
5656
}
5757

5858
cmd.Env = append(os.Environ(), "GO111MODULE=on")
5959
command := strings.Join(cmd.Args, " ")
60-
fmt.Fprintf(GinkgoWriter, "running: %s\n", command)
60+
_, _ = fmt.Fprintf(GinkgoWriter, "running: %s\n", command)
6161
output, err := cmd.CombinedOutput()
6262
if err != nil {
6363
return output, fmt.Errorf("%s failed with error: (%v) %s", command, err, string(output))

docs/book/src/getting-started/testdata/project/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ GOLANGCI_LINT = $(LOCALBIN)/golangci-lint
161161
KUSTOMIZE_VERSION ?= v5.4.2
162162
CONTROLLER_TOOLS_VERSION ?= v0.15.0
163163
ENVTEST_VERSION ?= release-0.18
164-
GOLANGCI_LINT_VERSION ?= v1.57.2
164+
GOLANGCI_LINT_VERSION ?= v1.59.1
165165

166166
.PHONY: kustomize
167167
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

docs/book/src/getting-started/testdata/project/test/e2e/e2e_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ import (
2727
// Run e2e tests using the Ginkgo runner.
2828
func TestE2E(t *testing.T) {
2929
RegisterFailHandler(Fail)
30-
fmt.Fprintf(GinkgoWriter, "Starting project suite\n")
30+
_, _ = fmt.Fprintf(GinkgoWriter, "Starting project suite\n")
3131
RunSpecs(t, "e2e suite")
3232
}

docs/book/src/getting-started/testdata/project/test/utils/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
)
3636

3737
func warnError(err error) {
38-
fmt.Fprintf(GinkgoWriter, "warning: %v\n", err)
38+
_, _ = fmt.Fprintf(GinkgoWriter, "warning: %v\n", err)
3939
}
4040

4141
// InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.
@@ -52,12 +52,12 @@ func Run(cmd *exec.Cmd) ([]byte, error) {
5252
cmd.Dir = dir
5353

5454
if err := os.Chdir(cmd.Dir); err != nil {
55-
fmt.Fprintf(GinkgoWriter, "chdir dir: %s\n", err)
55+
_, _ = fmt.Fprintf(GinkgoWriter, "chdir dir: %s\n", err)
5656
}
5757

5858
cmd.Env = append(os.Environ(), "GO111MODULE=on")
5959
command := strings.Join(cmd.Args, " ")
60-
fmt.Fprintf(GinkgoWriter, "running: %s\n", command)
60+
_, _ = fmt.Fprintf(GinkgoWriter, "running: %s\n", command)
6161
output, err := cmd.CombinedOutput()
6262
if err != nil {
6363
return output, fmt.Errorf("%s failed with error: (%v) %s", command, err, string(output))

docs/book/src/multiversion-tutorial/testdata/project/test/e2e/e2e_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ import (
2727
// Run e2e tests using the Ginkgo runner.
2828
func TestE2E(t *testing.T) {
2929
RegisterFailHandler(Fail)
30-
fmt.Fprintf(GinkgoWriter, "Starting project suite\n")
30+
_, _ = fmt.Fprintf(GinkgoWriter, "Starting project suite\n")
3131
RunSpecs(t, "e2e suite")
3232
}

docs/book/src/multiversion-tutorial/testdata/project/test/utils/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
)
3636

3737
func warnError(err error) {
38-
fmt.Fprintf(GinkgoWriter, "warning: %v\n", err)
38+
_, _ = fmt.Fprintf(GinkgoWriter, "warning: %v\n", err)
3939
}
4040

4141
// InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.
@@ -52,12 +52,12 @@ func Run(cmd *exec.Cmd) ([]byte, error) {
5252
cmd.Dir = dir
5353

5454
if err := os.Chdir(cmd.Dir); err != nil {
55-
fmt.Fprintf(GinkgoWriter, "chdir dir: %s\n", err)
55+
_, _ = fmt.Fprintf(GinkgoWriter, "chdir dir: %s\n", err)
5656
}
5757

5858
cmd.Env = append(os.Environ(), "GO111MODULE=on")
5959
command := strings.Join(cmd.Args, " ")
60-
fmt.Fprintf(GinkgoWriter, "running: %s\n", command)
60+
_, _ = fmt.Fprintf(GinkgoWriter, "running: %s\n", command)
6161
output, err := cmd.CombinedOutput()
6262
if err != nil {
6363
return output, fmt.Errorf("%s failed with error: (%v) %s", command, err, string(output))

0 commit comments

Comments
 (0)