From 983fed7347ae6ec80c3fbe168b067e364b7edeba Mon Sep 17 00:00:00 2001 From: Grzegorz Prusak Date: Wed, 15 Jan 2025 18:05:29 +0100 Subject: [PATCH] disabled annoying lints --- pkg/tools/golang/golangci.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkg/tools/golang/golangci.yaml b/pkg/tools/golang/golangci.yaml index 5b880ea..5246142 100644 --- a/pkg/tools/golang/golangci.yaml +++ b/pkg/tools/golang/golangci.yaml @@ -50,6 +50,7 @@ linters: - maintidx - nlreturn - nonamedreturns + - nolintlint - paralleltest - prealloc - testpackage @@ -97,10 +98,12 @@ linters-settings: - name: dot-imports - name: error-naming - name: error-return - - name: error-strings - arguments: - - "sdkerrors.Wrap" - - "sdkerrors.Wrapf" + # error-strings disallows any string starting with capital letter. + # In particular it disallows starting error messages with names of public functions, which is annoying. + #- name: error-strings + # arguments: + # - "sdkerrors.Wrap" + # - "sdkerrors.Wrapf" - name: errorf - name: exported - name: if-return