Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash value ommission from Ruby-3.1 #375

Open
Zmokizmoghi opened this issue Jun 15, 2022 · 2 comments
Open

Hash value ommission from Ruby-3.1 #375

Zmokizmoghi opened this issue Jun 15, 2022 · 2 comments
Assignees

Comments

@Zmokizmoghi
Copy link

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

@fonji
Copy link

fonji commented Apr 17, 2023

Also breaks flog, so I allowed myself to copy-paste this issue. Thanks @Zmokizmoghi!

@fonji
Copy link

fonji commented Jun 6, 2023

Flog has now the beta channel that fixes this 🎉
Can we have the same here? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants