Skip to content

Commit

Permalink
checkers): treat //noinspection as pragma in commentFormatting (#1166)
Browse files Browse the repository at this point in the history
Used by some versions of GoLand and friends IDE's.
  • Loading branch information
scop committed Dec 26, 2021
1 parent 9463ac1 commit ed6d9db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checkers/commentFormatting_checker.go
Expand Up @@ -27,6 +27,7 @@ func init() {
`^//line /.*:\d+`, // e.g.: line /path/to/file:123
`^//export \w+$`, // e.g.: export Foo
`^//[/+#-]+.*$`, // e.g.: vertical breaker /////////////
`^//noinspection `, // e.g.: noinspection ALL, some GoLand and friends versions
}
pat := "(?m)" + strings.Join(parts, "|")
pragmaRE := regexp.MustCompile(pat)
Expand Down

0 comments on commit ed6d9db

Please sign in to comment.