diff --git a/.golangci.yml b/.golangci.yml index 9a3c3d04dd1..e206fe85b8b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -97,11 +97,13 @@ linters: - varnamelen # doesnot allow shorter names like c,k etc. But golang prefers short named vars. - wsl # [too strict and mostly code is not more readable] whitespace linter forces you to use empty lines - wrapcheck # check if this is required. Prevents direct return of err. + - exportloopref # Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar. + - execinquery # Deprecated upstream. Not applicable since we don't make DB queries. # Need to check - nlreturn # [too strict and mostly code is not more readable] checks for a new line before return and branch statements to increase code clarity - err113 # [too strict] checks the errors handling expressions - + # To be fixed - gocognit # https://github.com/opendatahub-io/opendatahub-operator/issues/709 - cyclop # https://github.com/opendatahub-io/opendatahub-operator/issues/709 @@ -115,4 +117,4 @@ issues: - path: tests/*/(.+)_test\.go linters: - typecheck - - dupl \ No newline at end of file + - dupl