From 1d13e6a3bdbf893093a77bb117b72a3a1ef9b635 Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Tue, 20 Sep 2022 21:12:13 -0700 Subject: [PATCH] golangci.yml - disable deprecated checkers --- .golangci.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 830b3f4..9b111e6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -21,9 +21,9 @@ linters-settings: enabled-tags: - diagnostic - experimental - - opinionated - performance - - style + #- style + #- opinionated disabled-checks: - dupImport # https://github.com/go-critic/go-critic/issues/845 - ifElseChain @@ -34,8 +34,6 @@ linters-settings: min-complexity: 15 goimports: local-prefixes: github.com/golangci/golangci-lint - golint: - min-confidence: 0 gomnd: settings: mnd: @@ -55,7 +53,7 @@ linters-settings: maligned: suggest-new: true misspell: - locale: US + locale: en_CA nolintlint: allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space) allow-unused: false # report any unused nolint directives @@ -68,12 +66,12 @@ linters: disable-all: true enable: - bodyclose - - deadcode - depguard - dogsled - dupl - errcheck - exhaustive + - exportloopref - funlen - gochecknoinits - goconst @@ -81,42 +79,43 @@ linters: - gocyclo - gofmt - goimports - - golint - gomnd - goprintffuncname - gosec - gosimple - govet - ineffassign - - interfacer - lll - misspell - nakedret - noctx - nolintlint - - rowserrcheck - - scopelint - staticcheck - - structcheck - stylecheck - typecheck - unconvert - unparam - unused - - varcheck - whitespace # don't enable: # - asciicheck + # - deadcode # - gochecknoglobals # - gocognit # - godot # - godox # - goerr113 + # - golint + # - interfacer # - maligned # - nestif # - prealloc + ## - rowserrcheck + # - scopelint + # - structcheck # - testpackage + # - varcheck # - wsl issues: