aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-02-17 14:57:44 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-02-25 18:57:42 +0100
commit22a416f7f2e32f9fc2ffc9055e67b804a39aaf36 (patch)
treea00082564854ec324e0c432ebc396eadf478bd5a /tools
parent0753437df0b06922b6ac2ce625bbb131e3d0f897 (diff)
tools/syz-linter: add go:embed to exceptions
No space is allowed between // and go:embed. Make linter not throw a warning about it.
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-linter/linter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-linter/linter.go b/tools/syz-linter/linter.go
index 3afc84ca4..52da71b1f 100644
--- a/tools/syz-linter/linter.go
+++ b/tools/syz-linter/linter.go
@@ -145,7 +145,7 @@ var (
noPeriodComment = regexp.MustCompile(`^// [A-Z][a-z].+[a-z]$`)
lowerCaseComment = regexp.MustCompile(`^// [a-z]+ `)
onelineExceptions = regexp.MustCompile(`// want \"|http:|https:`)
- specialComment = regexp.MustCompile(`//go:generate|//go:build|// nolint:`)
+ specialComment = regexp.MustCompile(`//go:generate|//go:build|//go:embed|// nolint:`)
)
// checkStringLenCompare checks for string len comparisons with 0.