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:
parent
022236f9e4
commit
e20c7788f9
@ -23,6 +23,7 @@ func (r *CommentSpacingsRule) configure(arguments lint.Arguments) {
|
||||
r.allowList = []string{
|
||||
"//go:",
|
||||
"//revive:",
|
||||
"//nolint:",
|
||||
}
|
||||
|
||||
for _, arg := range arguments {
|
||||
|
3
testdata/comment-spacings.go
vendored
3
testdata/comment-spacings.go
vendored
@ -39,3 +39,6 @@ Should be valid
|
||||
|
||||
/* valid
|
||||
*/
|
||||
|
||||
//nolint:staticcheck // nolint should be in the default list of acceptable comments.
|
||||
var b string
|
||||
|
Loading…
Reference in New Issue
Block a user