From eeb45ef4b564a143e1a314a6d7b86bd77a6fb978 Mon Sep 17 00:00:00 2001 From: Evan Baker Date: Tue, 27 Jul 2021 22:51:40 -0500 Subject: [PATCH] fix: correct golangci format to enable listed linters --- .golangci.yml | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 909331f933..eff68a1e13 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,24 +1,23 @@ issues: max-same-issues: 0 max-issues-per-linter: 0 - -enable: - - bodyclose - - deadcode - - errcheck - - goconst - - gocritic - - gocyclo - - gofmt - - goimports - - golint - - gomnd - - goprintffuncname - - gosec - - gosimple - - govet - - ineffassign - - interfacer - - lll - - misspell - - nakedret +linters: + presets: + - bugs + - error + - format + - performance + - unused + enable: + - goconst + - gocritic + - gocyclo + - gofmt + - gomnd + - goprintffuncname + - gosimple + - lll + - misspell + - nakedret + - promlinter + - revive