golangci-lint/test/testdata/misspell_custom.go
2024-02-20 12:59:49 +01:00

11 lines
434 B
Go

//golangcitest:args -Emisspell
//golangcitest:config_path testdata/configs/misspell_custom.yml
package testdata
func Misspell() {
// comment with incorrect spelling: occured // want "`occured` is a misspelling of `occurred`"
}
// the word iff should be reported here // want "\\`iff\\` is a misspelling of \\`if\\`"
// the word cancelation should be reported here // want "\\`cancelation\\` is a misspelling of \\`cancellation\\`"