From f61ed3701ea15b4872172b2f7aec80817a111108 Mon Sep 17 00:00:00 2001 From: Spencer Schrock Date: Wed, 13 Jul 2022 10:50:51 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20Adjust=20'exhaustive'=20linter?= =?UTF-8?q?=20to=20consider=20'default'=20as=20exhaustive=20(#2044)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adjust 'exhaustive' linter to consider 'default' as exhaustive for switch statements on enum members * Include doc link for default-signifies-exhaustive change --- .golangci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 40631058..9b582af4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -81,6 +81,9 @@ linters-settings: errcheck: check-type-assertions: true check-blank: true + exhaustive: + # https://golangci-lint.run/usage/linters/#exhaustive + default-signifies-exhaustive: true govet: enable: - fieldalignment