rubycritic
rubycritic copied to clipboard
change parser to prism when appropriate
Ruby 3.4 and later use prism as the default parser, instead of parser. Right now we're getting warnings on Ruby 3.4 and later, e.g. warning: parser/current is loading parser/ruby33, which recognizes 3.3.x-compliant syntax, but you are running 3.5.0. If possible, we should look for a way to move to prism on newer Ruby versions.
It may make sense to just convert to Prism entirely.
From https://github.com/ruby/prism/blob/main/prism.gemspec,
spec.required_ruby_version = ">= 2.7.0"
I'd like to work on this please if no one else is.
Nice – thank you, @torresga!