From 3cb462ccf3a9251b93f2f343ce505f3170b0b3f9 Mon Sep 17 00:00:00 2001 From: "Hsing-Yu (David) Chen" Date: Mon, 12 Sep 2022 17:49:39 -0700 Subject: [PATCH] Specify what checks are allowed in each staticcheck sub-linter --- .golangci.reference.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.reference.yml b/.golangci.reference.yml index 069676e96cfd..17b6eccf7d75 100644 --- a/.golangci.reference.yml +++ b/.golangci.reference.yml @@ -735,7 +735,7 @@ linters-settings: # Default: 1.13 # Deprecated: use the global `run.go` instead. go: "1.15" - # https://staticcheck.io/docs/configuration/options/#checks + # Sxxxx checks in https://staticcheck.io/docs/configuration/options/#checks # Default: ["*"] checks: [ "all" ] @@ -1630,7 +1630,7 @@ linters-settings: # Default: "1.13" # Deprecated: use the global `run.go` instead. go: "1.15" - # https://staticcheck.io/docs/configuration/options/#checks + # SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks # Default: ["*"] checks: [ "all" ] @@ -1639,7 +1639,7 @@ linters-settings: # Default: 1.13 # Deprecated: use the global `run.go` instead. go: "1.15" - # https://staticcheck.io/docs/configuration/options/#checks + # STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks # Default: ["*"] checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ] # https://staticcheck.io/docs/configuration/options/#dot_import_whitelist