Debian Codegraph @

simple/s1007/testdata/go1.0/CheckRegexpRaw/regexp-raw.go

raw
1 package pkg
2
3 import "regexp"
4
5 func fn2() string { return "" }
6
7 func fn() {
8 x := "abc"
9 const y = "abc"
10 regexp.MustCompile(`\\.`)
11 regexp.MustCompile("\\.") //@ diag(re`should use raw string.+\.MustCompile`)
12 regexp.Compile("\\.") //@ diag(re`should use raw string.+\.Compile`)
13 regexp.Compile("\\.`")
14 regexp.MustCompile("(?m:^lease (.+?) {\n((?s).+?)\\n}\n)")
15 regexp.MustCompile("\\*/[ \t\n\r\f\v]*;")
16 regexp.MustCompile(fn2())
17 regexp.MustCompile(x)
18 regexp.MustCompile(y)
19 }