From 68cd9c505b65f2ccd7120bbf38412de2d83a2268 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Thu, 30 Mar 2023 13:42:36 +0700 Subject: [PATCH] chore: check spelling in linter (#15611) --- .golangci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 0f395923e6fd..b8c7d682f24f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -53,6 +53,11 @@ issues: max-same-issues: 10000 linters-settings: + misspell: + # Correct spellings using locale preferences for US or UK. + # Setting locale to US will correct the British spelling of 'colour' to 'color'. + # Default is to use a neutral variety of English. + locale: US gofumpt: # Choose whether to use the extra rules. # Default: false @@ -65,5 +70,5 @@ linters-settings: nolintlint: allow-unused: false allow-leading-space: true - require-explanation: false + require-explanation: true require-specific: false