Project-wide code analysis and quick-fixes
We had wrote earlier that we do some of our RubyMine tests using Cucumber. Recently we’ve upgraded to a more recent version of Cucumber and stumbled into an incompatibility such as ‘Examples’ should be followed by a colon.
Of course we could fix it using search/replace but it’s not the JetBrains way! We have a powerful IDE helping us, right?
So instead, we’ve used the project-wide code analysis and applied a quick-fix to correct the incompatibility. The 4 steps below show how exactly this is achieved:
1. Select Code | Inspect Code from the main menu. Choose a scope to analyze (project, a directory, or other) and inspections to run.
2. You can select a set of inspections to execute by specifying an Inspection profile
3. RubyMine inspects the code and shows the Inspection Results in a separate tool-window. The results are grouped by categories. You can browse, see the problem descriptions and reported files. Also for each problem RubyMine suggests a resolution, that can be executed for a file right away.
4. But you can select an item in inspection results, right-click it and choose to ‘Apply Fix…’. This instantly fixes all the below warnings.
And this is it. Try it! You may discover some interesting things about your projects.
Powerful Ruby/Rails IDE that we use :)
Develop with pleasure,
JetBrains RubyMine Team
Subscribe to Blog updates
Thanks, we've got you!
RubyMine 2023.3 EAP Update
Hello everyone! We’re back with an update on the state of the 2023.3 Early Access Program. You can download the latest EAP build from our website, via the free Toolbox App, or by using snaps for Ubuntu. Here are the biggest highlights of this release: Performance improvements As we me…
The RubyMine 2023.3 Early Access Program Is Open!
Hello everyone, The third RubyMine Early Access Program of 2023 is underway! The key change in the first EAP build is an important indexing optimization. By refactoring our code base, we’ve doubled RubyMine’s indexing speed compared to v2023.1. This is particularly noticeable when working…
Performance Improvements in RubyMine 2023.1
Hello everybody, The new release is fast approaching, so it’s time to unveil the performance enhancements you can expect from RubyMine 2023.1. Faster code completion When developing and supporting RubyMine, we analyze a great load of anonymized usage data. A lot of recent data pointed to the fact t…
RubyMine 2023.1 EAP5 Is Out!
Hello everyone, RubyMine 2023.1 EAP5 is now available! Below you can find the most notable features in this build. We encourage you to try them out and share your feedback in the comments or in our issue tracker. Migration of Ruby code to the Symbol API In order to improve code insight actions such…