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
- perfsprint1515
- paralleltest16+
- recvcheck1617
- gochecknoglobals # we use globals1718
- musttag # we don't need tags always1819
- 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: 69113115
statements: 75@@ -226,9 +228,6 @@
226228
- all227229
228230
govet:229-
# report about shadowed variables230-
check-shadowing: false231-
232231
# settings per analyzer233232
settings:234233
printf: # analyzer name, run `go tool vet help` to see all analyzers@@ -268,8 +267,8 @@
268267
allow-unused: false269268
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false.270269
require-specific: true271-
allow-leading-space: true272270
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-flow473472
severity: warning474473
disabled: false475-
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#imports-blacklist476-
- name: imports-blacklist477-
severity: warning478-
disabled: true479-
arguments:480-
- "crypto/md5"481-
- "crypto/sha1"482474
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#import-shadowing483475
- name: import-shadowing484476
severity: warning@@ -791,6 +783,13 @@
791783
- lll792784
- revive793785
- wrapcheck786+
- dupword787+
788+
- path: cmd/789+
linters:790+
- forbidigo791+
- dupword792+
794793
795794
# Independently from option `exclude` we use default exclude patterns,796795
# it can be disabled by this option. To list allcmd/helmwave/commands.gomodifiedView file
Loading diffโฆ
cmd/helmwave/main.gomodifiedView file
Loading diffโฆ