mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
11 lines
434 B
Go
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\\`"
|