From c5de88ace9b522bf1f946d2a0d2988db92820e1e Mon Sep 17 00:00:00 2001 From: Rafael Tenfen Date: Wed, 1 Jun 2022 12:06:29 -0300 Subject: [PATCH] chore: fix lint warning (#299) - Update deprecated lint options - Running `make lint` doesn't log warnings ;D --- .golangci.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index e6b583c3..25153f73 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,6 +3,13 @@ run: skip-dirs: - test + govet: + # Enable analyzers by name (in addition to default). + # Run `go tool vet help` to see all analyzers. + # Default: [] + enable: + - fieldalignment + linters: enable: - bodyclose @@ -14,17 +21,16 @@ linters: - gocritic - gofmt - goimports - - golint + - revive - gosec - gosimple - govet - ineffassign - lll - misspell - - maligned - nakedret - prealloc - - scopelint + - exportloopref - staticcheck - structcheck - stylecheck @@ -51,10 +57,11 @@ issues: linters-settings: dogsled: max-blank-identifiers: 3 - golint: - min-confidence: 0 - maligned: - suggest-new: true + revive: + # Sets the default failure confidence. + # This means that linting errors with less than 0.8 confidence will be ignored. + # Default: 0.8 + confidence: 0 misspell: locale: US nolintlint: