Skip to content

Commit

Permalink
pattern: ignore SA1019 for valid use of ast.Object
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Aug 14, 2024
1 parent 2b156f6 commit 9a73f08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pattern/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,8 @@ func (texpr TrulyConstantExpression) Match(m *Matcher, node interface{}) (interf

var (
// Types of fields in go/ast structs that we want to skip
rtTokPos = reflect.TypeOf(token.Pos(0))
rtTokPos = reflect.TypeOf(token.Pos(0))
//lint:ignore SA1019 It's deprecated, but we still want to skip the field.
rtObject = reflect.TypeOf((*ast.Object)(nil))
rtCommentGroup = reflect.TypeOf((*ast.CommentGroup)(nil))
)
Expand Down

0 comments on commit 9a73f08

Please sign in to comment.