SonarScanner Execution Failure with Ruby on Rails Application

Resurrecting this from the grave a little here, but we’re seeing parsing errors on Ruby files for Ruby 3.2-valid syntax. Here’s an example of a file that’s causing parsing errors:

class Foo
  def method(*, &)
    some_method(*, &)
  end
end

What we’re seeing is errors on the anonymous argument passing, and the line some_method(*, &) is tripping things up.

This is using SonarScanner 5.0.1.3006 in a GitHub CI action and Ruby 3.2.2