Skip to content

Commit

Permalink
rule type
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor committed Jul 8, 2024
1 parent 02fdfa3 commit 0a40060
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rules/aep0155/request_id_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

var requestIdFormat = &lint.FieldRule{
Name: lint.NewRuleName(155, "request-id-format"),
RuleType: lint.NewRuleType(lint.MustRule),
OnlyIf: func(fd *desc.FieldDescriptor) bool {
return fd.GetName() == "request_id" &&
fd.GetType() != descriptorpb.FieldDescriptorProto_TYPE_MESSAGE;
Expand Down

0 comments on commit 0a40060

Please sign in to comment.