Skip to content

Commit

Permalink
Update lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock authored Feb 21, 2023
1 parent b370706 commit ce26473
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class ForbidUntypedStructProps < RuboCop::Cop::Base
PATTERN

# @!method untyped_props(node)
# Search for untyped prop/const declarations and capture their types
def_node_search :untyped_props, <<~PATTERN
(send nil? {:prop :const} _ ${#t_untyped #t_nilable_untyped} ...)
PATTERN
Expand Down

0 comments on commit ce26473

Please sign in to comment.