Skip to content

Hash value ommission from Ruby-3.1 #375

Open
@Zmokizmoghi

Description

@Zmokizmoghi

Hash value omission was introduced with ruby 3.1 - rubyreferences.github.io/rubychanges/3.1.html#values-in-hash-literals-and-keyword-arguments-can-be-omitted

And apparently it breaks codeclimate-duplication engine:
Skipping file examle.rb due to exception (Racc::ParseError): example.rb:5 :: parse error on value ":" (tCOLON)

example.rb content:

# frozen_string_literal: true

class Example
  def perform(id)
    Model.find_by!(id:)
  end
end

Thanks

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy