Refactor Utilities is a gem for refactoring and upgrading Ruby code based on ASTs. It allows you to create rules similar to RuboCop, such as the ShorthandRule that changes blocks like [1, 2, 3].select { |v| v.even? } to [1, 2, 3].select(&:even?). Adding multiple rules can be done with a Rewriter to prevent collisions. This gem is more experimental and focused on refactoring and AST manipulations rather than testing like RuboCop. To get started, install the gem, add it to your Gemfile, and follow the development instructions on GitHub. Contributors are expected to adhere to the code of conduct.
https://github.com/baweaver/refactor