diff --git a/.golangci.reference.yml b/.golangci.reference.yml index 8ae7b9a007bd..6d86bd1d9d52 100644 --- a/.golangci.reference.yml +++ b/.golangci.reference.yml @@ -1366,6 +1366,7 @@ linters-settings: - someword # Extra word corrections. # `typo` and `correction` should only contain letters. + # The words are case-insensitive. # Default: [] extra-words: - typo: "iff" diff --git a/pkg/golinters/misspell_test.go b/pkg/golinters/misspell_test.go index 0eeffe7fd5ba..29e0862f9b83 100644 --- a/pkg/golinters/misspell_test.go +++ b/pkg/golinters/misspell_test.go @@ -17,8 +17,8 @@ func Test_appendExtraWords(t *testing.T) { Correction: "if", }, { - Typo: "cancelation", - Correction: "cancellation", + Typo: "canCELation", + Correction: "canceLLaTION", }, }