Skip to content

Commit 9a73f08

Browse files
committed
pattern: ignore SA1019 for valid use of ast.Object
1 parent 2b156f6 commit 9a73f08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: pattern/match.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,8 @@ func (texpr TrulyConstantExpression) Match(m *Matcher, node interface{}) (interf
692692

693693
var (
694694
// Types of fields in go/ast structs that we want to skip
695-
rtTokPos = reflect.TypeOf(token.Pos(0))
695+
rtTokPos = reflect.TypeOf(token.Pos(0))
696+
//lint:ignore SA1019 It's deprecated, but we still want to skip the field.
696697
rtObject = reflect.TypeOf((*ast.Object)(nil))
697698
rtCommentGroup = reflect.TypeOf((*ast.CommentGroup)(nil))
698699
)

0 commit comments

Comments
 (0)