From 4b5e87d15439195f287a3609853e011cdb3805a7 Mon Sep 17 00:00:00 2001 From: muXxer Date: Wed, 20 Mar 2024 14:15:52 +0100 Subject: [PATCH] Adapt .golangci.yml to latest version --- .golangci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 4a9bbaa..8006967 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,19 +1,16 @@ run: tests: true - skip-files: - - ".*_test.go$" linters-settings: gofmt: simplify: true goimports: local-prefixes: github.com/iotaledger - golint: - min-confidence: 0.9 gocyclo: min-complexity: 15 govet: - check-shadowing: false + disable: + - shadow misspell: locale: US nlreturn: @@ -31,7 +28,7 @@ linters: disable-all: true # Enable specific linter enable: - - deadcode + #- deadcode - errcheck - gosimple - govet @@ -45,7 +42,7 @@ linters: - bidichk - bodyclose - containedctx - - contextcheck + #- contextcheck # this linter is buggy and renders all nolint rules useless - decorder #- depguard - dogsled @@ -109,6 +106,8 @@ linters: - wastedassign issues: + exclude-files: + - ".*_test.go$" # Maximum issues count per one linter. # Set to 0 to disable. # Default: 50