From d3c7db827cc87a6e81088a94368761b6a72bc669 Mon Sep 17 00:00:00 2001 From: Ales Pour Date: Wed, 21 Aug 2024 21:00:52 +0200 Subject: [PATCH] chore: remove/comment duplicit checks --- .golangci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 865f0a7..f660b1a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -23,6 +23,9 @@ linters: - wsl linters-settings: + gosec: + excludes: + - G104 lll: # Max line length, lines longer will be reported. # '\t' is counted as 1 character by default, and can be changed with the tab-width option. @@ -50,16 +53,20 @@ linters-settings: disabled: true - name: function-length disabled: true + # same as lll - name: line-length-limit disabled: true - name: max-public-structs disabled: true - name: nested-structs disabled: true - - name: use-any + # same as errcheck + - name: unhandled-error disabled: true - name: unused-receiver disabled: true + - name: use-any + disabled: true tenv: # The option `all` will run against whole test files (`_test.go`) regardless of method/function signatures. # Otherwise, only methods that take `*testing.T`, `*testing.B`, and `testing.TB` as arguments are checked. @@ -85,14 +92,10 @@ issues: - thelper - tparallel - unparam - - path: _test\.go - text: "G104: Errors unhandled" #gosec:G104 - - path: _test\.go - text: "G404: Use of weak random number generator" #gosec:G404 - path: _test\.go text: "Error return value of .((os.)?std(out|err)..*|.*Close.*|.*Flush|.*Disconnect|.*Clear|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not checked" - path: _test\.go - text: "Unhandled error in call to function (os.(Un)?Setenv)" + text: "G404: Use of weak random number generator" #gosec:G404 - path: _test\.go text: "unused-parameter:" #revive:unused-parameter - path: _test\.go