New ๐ŸŒŠ wave for @helm

Commit 5fcfb789

5fcfb78943faMerged

Dmitrii Zhiliaev <[email protected]> ยท 1 year ago ยท 3 files ยท ~3 modified

Description

fix: linters

Details

Commit
5fcfb78943fa
Parent
06432c376a1d

.golangci.ymlmodifiedView file

@@ -13,6 +13,7 @@
1313 disable:
1414 - perfsprint
1515 - paralleltest
16+ - recvcheck
1617 - gochecknoglobals # we use globals
1718 - musttag # we don't need tags always
1819 - depguard # we know what we do. We can check extra deps via PRs changes.
@@ -108,6 +109,7 @@
108109 - ^print.*$
109110 - 'fmt\.Print.*'
110111
112+
111113 funlen:
112114 lines: 69
113115 statements: 75
@@ -226,9 +228,6 @@
226228 - all
227229
228230 govet:
229- # report about shadowed variables
230- check-shadowing: false
231-
232231 # settings per analyzer
233232 settings:
234233 printf: # analyzer name, run `go tool vet help` to see all analyzers
@@ -268,8 +267,8 @@
268267 allow-unused: false
269268 # Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
270269 require-specific: true
271- allow-leading-space: true
272270
271+
273272 prealloc:
274273 # XXX: we don't recommend using this linter before doing performance profiling.
275274 # For most programs usage of prealloc will be a premature optimization.
@@ -472,13 +471,6 @@
472471 - name: indent-error-flow
473472 severity: warning
474473 disabled: false
475- # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#imports-blacklist
476- - name: imports-blacklist
477- severity: warning
478- disabled: true
479- arguments:
480- - "crypto/md5"
481- - "crypto/sha1"
482474 # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#import-shadowing
483475 - name: import-shadowing
484476 severity: warning
@@ -791,6 +783,13 @@
791783 - lll
792784 - revive
793785 - wrapcheck
786+ - dupword
787+
788+ - path: cmd/
789+ linters:
790+ - forbidigo
791+ - dupword
792+
794793
795794 # Independently from option `exclude` we use default exclude patterns,
796795 # it can be disabled by this option. To list all