From a058cc0a341ae6613efb3a570b672a07defee5eb Mon Sep 17 00:00:00 2001 From: Loic Devulder Date: Tue, 4 Mar 2025 14:45:55 +0100 Subject: [PATCH] Enable more linters Signed-off-by: Loic Devulder --- .golangci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 6cc5f8e..2127e9e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -19,9 +19,13 @@ linters: - dupl # check duplicated code - goconst # check strings that can turn into constants - gofmt # check fmt - - goheader # Check license headers, only checks files in current year + - goheader # check license headers, only checks files in current year - goimports # check imports - gocyclo # check complexity + - gocritic # provides diagnostics that check for bugs, performance and style issues + - gosec # inspects source code for security problems. + - unparam # reports unused function parameters + - errorlint # find code that will cause problems with error wrapping scheme linters-settings: gocyclo: min-complexity: 20 # default is 30 which is too high