1
0
mirror of https://github.com/mgechev/revive.git synced 2025-01-04 03:02:13 +02:00

add nolint to default list of acceptable comments for comment-spacings (#822)

This commit is contained in:
Nate Finch 2023-05-09 10:20:58 -04:00 committed by GitHub
parent 022236f9e4
commit e20c7788f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ func (r *CommentSpacingsRule) configure(arguments lint.Arguments) {
r.allowList = []string{
"//go:",
"//revive:",
"//nolint:",
}
for _, arg := range arguments {

View File

@ -39,3 +39,6 @@ Should be valid
/* valid
*/
//nolint:staticcheck // nolint should be in the default list of acceptable comments.
var b string