diff --git a/.changeset/olive-hats-applaud.md b/.changeset/olive-hats-applaud.md new file mode 100644 index 0000000000..686348f7d8 --- /dev/null +++ b/.changeset/olive-hats-applaud.md @@ -0,0 +1,5 @@ +--- +'@primer/view-components': patch +--- + +Remove OpenStruct from primer_octicon cop diff --git a/lib/rubocop/cop/primer/primer_octicon.rb b/lib/rubocop/cop/primer/primer_octicon.rb index ef3da2d1b9..9afb71e0b5 100644 --- a/lib/rubocop/cop/primer/primer_octicon.rb +++ b/lib/rubocop/cop/primer/primer_octicon.rb @@ -200,7 +200,7 @@ def string_args_to_string(node) def kwargs(node) return node.arguments.last if node.arguments.size > 1 - OpenStruct.new(keys: [], pairs: [], type: :hash) + RuboCop::AST::HashNode.new("hash") end def icon(node)