From 12a13d8280e71ab254675fcacc7e6a9a656cde40 Mon Sep 17 00:00:00 2001 From: Marvin Wendt Date: Sat, 20 Jul 2024 10:24:20 +0200 Subject: [PATCH] chore: adapt golangci config --- .golangci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 54cda6a..6a68b00 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -53,7 +53,6 @@ linters: - inamedparam # reports interfaces with unnamed method parameters - interfacebloat # check for large interfaces - intrange # find places where for loops could make use of an integer range - - ireturn # Accept Interfaces, Return Concrete Types. - lll # check for long lines - maintidx # measures the maintainability index of each function - mirror # reports wrong mirror patterns of bytes/strings usage @@ -123,6 +122,7 @@ linters: - mnd # too many detections - cyclop # covered by gocyclo - gochecknoglobals # there are many valid reasons for global variables, depending on the project + - ireturn # there are too many exceptions linters-settings: wsl: @@ -139,6 +139,9 @@ linters-settings: line-length: 140 tab-width: 1 + nlreturn: + block-size: 2 + exhaustive: check-generated: false default-signifies-exhaustive: true