github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/dupword_ignore_the.go (about)

     1  //golangcitest:args -Edupword
     2  //golangcitest:config_path testdata/configs/dupword_ignore_the.yml
     3  package testdata
     4  
     5  import "fmt"
     6  
     7  func duplicateWordInComments() {
     8  	// this line include duplicated word the the
     9  	fmt.Println("hello")
    10  }
    11  
    12  func duplicateWordInStr() {
    13  	a := "this line include duplicate word and and"                   // want `Duplicate words \(and\) found`
    14  	b := "print the\n the line, print the the \n\t the line. and and" // want `Duplicate words \(and\) found`
    15  	fmt.Println(a, b)
    16  }