From dba4ba3dc78b017666ab2a0c1b72eaffb32ea097 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 1 Feb 2022 13:16:38 +0100 Subject: [PATCH] Update golangci-lint config --- .golangci.yml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 127b277..468bfff 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,17 +1,37 @@ +# Docs: +# https://golangci-lint.run/usage/linters/ + linters: enable-all: true disable: - - lll - - gochecknoinits - - gochecknoglobals + - cyclop + - exhaustivestruct + - forbidigo - funlen - - whitespace - - wsl - - gomnd + - gochecknoglobals + - gochecknoinits + - gocognit + - gocyclo - goerr113 + - gomnd + - ifshort + - interfacer + - lll + - nestif + - nlreturn + - noctx + - revive - testpackage + - whitespace + - wrapcheck + - wsl linters-settings: + gci: + # put imports beginning with prefix after 3rd-party packages; + # only support one prefix + # if not set, use goimports.local-prefixes + local-prefixes: github.com/safing godox: # report any comments starting with keywords, this is useful for TODO or FIXME comments that # might be left in the code accidentally and should be resolved before merging