Skip to content

Commit

Permalink
Merge pull request #4592 from twz123/backport-linter-to-release-1.29
Browse files Browse the repository at this point in the history
[Backport release-1.29] Bump golangci-lint to v1.57.1
  • Loading branch information
twz123 authored Jun 11, 2024
2 parents bef4f2a + 01054cf commit 7f15261
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 8 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ run:

build-tags:
- hack
skip-dirs-use-default: false
skip-dirs:
- build
- docs
- embedded-bins
- examples
skip-files:
- "zz_*"
tests: true
modules-download-mode: readonly
allow-parallel-runners: true
Expand Down Expand Up @@ -43,8 +35,6 @@ linters-settings:
Usages of the k8s cloud provider are only allowed from within the
k0s cloud provider package. This is to ensure that it's not
leaking global flags into k0s.
golint:
min-confidence: 0
goheader:
template-path: .go-header.txt
values:
Expand All @@ -60,6 +50,14 @@ linters-settings:
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-dirs-use-default: false
exclude-dirs:
- build
- docs
- embedded-bins
- examples
exclude-files:
- "zz_*"
exclude-rules:
# https://github.com/denis-tingaikin/go-header/issues/18
# This means that the header checks are ineffective for all files with build tags.
Expand Down
2 changes: 1 addition & 1 deletion hack/tools/Makefile.variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
controller-gen_version = 0.14.0
go-bindata_version = 3.23.0+incompatible
golangci-lint_version = 1.55.2
golangci-lint_version = 1.57.1

0 comments on commit 7f15261

Please sign in to comment.