Our great sponsors
-
fast
Find in AST - Search and refactor code directly in Abstract Syntax Tree as you do with grep for strings (by jonatas)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Some of these tools have even already been wrapped, like Jonatas's work on FFast which works on top of NodePattern and some of RuboCop's previous work. Really the only things between us and this future is a bit more wrapping and polish, as well as integrations into something like VSCode.
Let's take a glance at the action_filter cop real quick here, but just a quick part of it:
As it would happen, the folks behind Ruby Next have some ideas here, and have done a significant amount of work in enabling this very vision to become a reality.
There are already some techniques capable of doing just this, by combining Parser with Unparser, but of course such things can only be done on Ruby files read in rather than in a REPL session which is where a lot more fun could happen.
Related posts
- Am I the only one who doesn't put parentheses around the parameters in Ruby method definitions?
- Standardrb: Ruby's bikeshed-proof linter and formatter
- "Useless Ruby sugar": Endless (one-line) methods
- Mastering Linters : A Code Quality Assurance Comprehensive Guide using Ruby on Rails
- code review / feedback for improvement