Skip to content

Commit 489f6d2

Browse files
committed
update golangci-lint version and list of disabled linters form dapr/dapr
Signed-off-by: Anton Troshin <anton@diagrid.io>
1 parent 967f94b commit 489f6d2

File tree

2 files changed

+32
-23
lines changed

2 files changed

+32
-23
lines changed

.github/workflows/dapr_cli.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries
3030
runs-on: ${{ matrix.os }}
3131
env:
32-
GOLANG_CI_LINT_VER: v1.55.2
32+
GOLANG_CI_LINT_VER: v1.61.0
3333
GOOS: ${{ matrix.target_os }}
3434
GOARCH: ${{ matrix.target_arch }}
3535
GOPROXY: https://proxy.golang.org

.golangci.yml

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ linters:
222222
enable-all: true
223223
disable:
224224
# TODO Enforce the below linters later
225+
- musttag
225226
- dupl
226227
- errcheck
227228
- funlen
@@ -230,39 +231,47 @@ linters:
230231
- gocyclo
231232
- gocognit
232233
- godox
233-
- interfacer
234234
- lll
235-
- maligned
236-
- scopelint
237235
- unparam
238236
- wsl
239237
- gomnd
240238
- testpackage
241239
- nestif
242-
- goerr113
243240
- nlreturn
244241
- exhaustive
245-
- gci
246-
- noctx
247-
- exhaustivestruct
248242
- exhaustruct
249-
- gomoddirectives
250-
- paralleltest
243+
- noctx
244+
- gci
251245
- tparallel
252-
- wastedassign
253-
- cyclop
254-
- forbidigo
255-
- tagliatelle
256-
- thelper
246+
- paralleltest
257247
- wrapcheck
248+
- tagliatelle
249+
- ireturn
250+
- errchkjson
251+
- contextcheck
252+
- gomoddirectives
253+
- godot
254+
- cyclop
258255
- varnamelen
256+
- errorlint
259257
- forcetypeassert
260-
- ireturn
261-
- golint
262-
- nosnakecase
258+
- maintidx
259+
- nilnil
260+
- predeclared
261+
- tenv
262+
- thelper
263+
- wastedassign
264+
- containedctx
265+
- gosimple
266+
- nonamedreturns
267+
- asasalint
268+
- rowserrcheck
269+
- sqlclosecheck
270+
- inamedparam
263271
- tagalign
264-
- varcheck
265-
- deadcode
266-
- structcheck
267-
- ifshort
268-
- testifylint
272+
- mnd
273+
- canonicalheader
274+
- exportloopref
275+
- execinquery
276+
- err113
277+
- fatcontext

0 commit comments

Comments
 (0)