rubycritic icon indicating copy to clipboard operation
rubycritic copied to clipboard

change parser to prism when appropriate

Open faisal opened this issue 8 months ago • 1 comments

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.

faisal avatar May 15 '25 13:05 faisal

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"

faisal avatar Jun 05 '25 10:06 faisal

I'd like to work on this please if no one else is.

torresga avatar Oct 10 '25 16:10 torresga

Nice – thank you, @torresga!

faisal avatar Oct 30 '25 09:10 faisal