github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/dupword.go (about) 1 //golangcitest:args -Edupword 2 package testdata 3 4 import "fmt" 5 6 func duplicateWordInComments() { 7 // this line include duplicated word the the // want `Duplicate words \(the\) found` 8 fmt.Println("hello") 9 } 10 11 func duplicateWordInStr() { 12 a := "this line include duplicate word and and" // want `Duplicate words \(and\) found` 13 b := "print the\n the line, print the the \n\t the line. and and" // want `Duplicate words \(and,the\) found` 14 fmt.Println(a, b) 15 }