From 0fb794696e2c0109d3f8f9cee155f56cdbac6147 Mon Sep 17 00:00:00 2001 From: Tim Ramlot <42113979+inteon@users.noreply.github.com> Date: Tue, 1 Oct 2024 13:14:17 +0200 Subject: [PATCH] remove unnecessary linter exceptions Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com> --- .golangci.yaml | 52 ++------------------------------------------------ 1 file changed, 2 insertions(+), 50 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index b2643635..c2705216 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,74 +1,26 @@ issues: exclude-rules: - linters: - - staticcheck - - errcheck - - unconvert - - unparam - - dupword - - gosimple - - nilerr - - nilnil - # TODO(mael): add the following linters one by one and fix the issues - # they report. I didn't have time to do that when I migrated to - # makefile-modules. - - asasalint - - asciicheck - - bidichk - bodyclose - - contextcheck - - decorder - - dogsled - dupword - - durationcheck - errcheck - errchkjson - - errname - - execinquery - - exhaustive - - exportloopref - forbidigo - gci - - ginkgolinter - - gocheckcompilerdirectives - - gochecksumtype - gocritic - gofmt - - goheader - - goprintffuncname - gosec - gosimple - - gosmopolitan - govet - - grouper - - importas - - ineffassign - - interfacebloat - - loggercheck - - makezero - - mirror - misspell - musttag - - nakedret - nilerr - - nilnil - - noctx - - nosprintfhostport - - predeclared - - promlinter - - protogetter - - reassign - - sloglint - staticcheck - - tagalign - - tenv - - testableexamples - - typecheck + - noctx - unconvert - unparam - - unused - usestdlibvars - - wastedassign + - predeclared text: ".*" linters: # Explicitly define all enabled linters