Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83b0600

Browse files
committed
Fix tags fix dashes.
1 parent7b77e66 commit83b0600

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎checks.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var (
2626
}
2727

2828
// Special tags in comments like "//nolint:", or "//+k8s:".
29-
tags=regexp.MustCompile(`^\+?[a-z0-9]+:`)
29+
tags=regexp.MustCompile(`^\+?[a-z0-9-]+:`)
3030

3131
// Special hashtags in comments like "// #nosec".
3232
hashtags=regexp.MustCompile(`^#[a-z]+($|\s)`)

‎testdata/check/main.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const (
2424

2525
)
2626

27-
//args: tagged comment without period [PASS]
27+
//tag: tagged comment without period [PASS]
28+
//+tag: tagged comment without period [PASS]
29+
//+tag-x: tagged comment without period [PASS]
2830

2931
// #tag hashtag comment without period [PASS]
3032

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp