From c9968e86e8ea15b0da6703e85124665771ba11d3 Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Tue, 18 Feb 2025 14:26:19 +0100 Subject: [PATCH] chore: update linter --- .golangci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index 8429e65..c2e7ab7 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -31,6 +31,8 @@ linters-settings: - G404 # Insecure random number source (rand) - G501 # Import blocklist: crypto/md5 - G505 # Import blocklist: crypto/sha1 + staticcheck: + checks: [ "all", "-SA1019"] # https://golangci-lint.run/usage/linters/#tagliatelle tagliatelle: case: @@ -129,7 +131,6 @@ linters: - sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed. [fast: false, auto-fix: false] - stylecheck # Stylecheck is a replacement for golint [fast: false, auto-fix: false] #- tagliatelle # Checks the struct tags. [fast: true, auto-fix: false] - - tenv # tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17 [fast: false, auto-fix: false] #- testpackage # linter that makes you use a separate _test package [fast: true, auto-fix: false] - thelper # thelper detects golang test helpers without t.Helper() call and checks the consistency of test helpers [fast: false, auto-fix: false] - tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes [fast: false, auto-fix: false]