RuboCop 1.93: Prism, Without the Middleman 0 ▲ Meta Redux 1 hour ago · 9 min read1706 words · Tech · hide RuboCop 1.93 is out! Almost three years ago I wrote about using RuboCop with Prism for the first time, and I was VERY excited about it. Since then Prism quietly became the default parser for modern Ruby code, but it always reached RuboCop through a translation layer that made it look like the good old parser gem. With this release (and RuboCop AST 1.54) the middleman is gone - RuboCop can now build its AST straight from Prism. That sounds like the kind of change that should come with fireworks and a 10x speedup. It doesn’t, and I think the reasons why are more interesting than the change itself. Why not just drop Parser? That’s the first question everyone asks, usually followed by “and why don’t the cops work on Prism’s own nodes?”. I wish it were that simple. Here’s what stands in the way: Prism can only parse Ruby 3.3 and newer. RuboCop can analyze code that targets anything back to Ruby 2.0, and it doesn’t care much which Ruby it runs on. Plenty of popular gems still support Rubies… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town