golangci-lint/test/testdata/dupword_ignore_the.go
Abirdcfly 95edd30b41
build(deps): bump github.com/Abirdcfly/dupword from 0.0.12 to 0.0.13 (#4104)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-09-25 06:05:11 +02:00

17 lines
496 B
Go

//golangcitest:args -Edupword
//golangcitest:config_path testdata/configs/dupword_ignore_the.yml
package testdata
import "fmt"
func duplicateWordInComments() {
// this line include duplicated word the the
fmt.Println("hello")
}
func duplicateWordInStr() {
a := "this line include duplicate word and and" // want `Duplicate words \(and\) found`
b := "print the\n the line, print the the \n\t the line. and and" // want `Duplicate words \(and\) found`
fmt.Println(a, b)
}