Find & Fix all RuboCop Inspections in one go
The fresh RubyMine 2017.3.1 RC (build 173.3942.35) is available. This build features the ability to run and auto-correct all the RuboCop inspections in your project through the Run Inspection by Name action.
This feature is a great time-saver as with it you don’t have to manually look for every code smell in your project when, for example, you are about to commit some important changes. Simply go to Code | Run Inspection by Name, and type the name of the wanted inspection (obviously, “rubocop”, in our case):
As you see, in the opened window you can choose whether to inspect the whole project, a particular file, directories, file types, or even file masks.
Hit OK once you’ve defined your scope. Now you can review and fix every auto-correctable offense, or choose all items and fix the issues in bulk:
That’s it! If you have any comments, problems, or suggestions regarding this new ability, feel free to contribute to the related issue.
- The rails views gutter is back (issue)
- Search everywhere now displays Puppet classes (issue)
- Other bug-fixes
Your RubyMine team