From 536b3dee7396380673b78261a3a45d4074d561df Mon Sep 17 00:00:00 2001 From: Victoria Martinez de la Cruz Date: Mon, 14 Oct 2024 13:03:22 +0200 Subject: [PATCH] Restore linters used by sg-core --- .golangci.yaml | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 721ace7..5e9dfd2 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -29,11 +29,37 @@ issues: - plugins/application/print - devenv linters: + disable-all: true enable: - - errorlint - - revive - - ginkgolinter + - bodyclose + - depguard + - dogsled + - dupl + - errcheck + # - exhaustive + - exportloopref + # - gochecknoinits + - goconst + - gocritic + - gocyclo - gofmt + - goimports + - goprintffuncname + - gosec + - gosimple - govet -run: - timeout: 5m + - ineffassign + - misspell + - nakedret + - noctx + - nolintlint + - revive + - staticcheck + - stylecheck + - typecheck + # - unused + - unconvert + # NOTE: not all application plugins use ability to emit internal events through + # passed bus function in it's constructor. + #- unparam + # - whitespace