From 68ee78b9dd9c40c75c0060a662faada8f8cb7976 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 23 May 2023 18:14:41 -0700 Subject: [PATCH] .golangci.yml: fix This fixes the following issue with golangci-lint: > ERRO Running error: no such linter "cyclop" Instead of enabling all the linters and then disabling many of them, start with the default set of enabled linters, and disable some that are currently giving errors. This should make upgrading golangci-lint easier, as it maintains a sensitive set of linters enabled by default (and enabling all linters by default means we will enable some new and unknown linters every time we bump golangci-lint version). Signed-off-by: Kir Kolyshkin --- .golangci.yml | 60 --------------------------------------------------- 1 file changed, 60 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 755aa35c0..441363886 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,68 +4,8 @@ run: deadline: 5m skip-dirs-use-default: true linters: - enable-all: true disable: - - cyclop - - deadcode - - dogsled - - dupl - errcheck - - errname - - errorlint - - exhaustive - - exhaustivestruct - - exhaustruct - - forbidigo - - forcetypeassert - - funlen - - gci - - gochecknoglobals - - gochecknoinits - - gocognit - - gocritic - - gocyclo - - godot - - godox - - goerr113 - - gofumpt - - golint - - gomnd - - gosec - gosimple - govet - - ifshort - - ineffassign - - interfacer - - interfacebloat - - ireturn - - lll - - maintidx - - maligned - - misspell - - musttag - - nakedret - - nestif - - nlreturn - - nolintlint - - nonamedreturns - - nosnakecase - - paralleltest - - prealloc - - predeclared - - rowserrcheck - - scopelint - staticcheck - - structcheck - - stylecheck - - tagliatelle - - testpackage - - thelper - - unconvert - - unparam - - varcheck - - varnamelen - - wastedassign - - whitespace - - wrapcheck - - wsl