We use a small blogging project to explain how to use PowerStation.
You can also watch the introduction video.
Open your project with RubyMine:
Choose any file you want to analyze, and click
Analyzeto analyze the file:
Then you can click
Showto check the result. Current version performs six types of analysis (LI, IA, CS, IR, DS and RD, which are explained in features). The problematic code lines are highlighted with blue.
Loop Invariant (LI):
Window on the left shows the lines of problematic code (which are also highlighted).
Inefficient API (IA):
Fix on the left-hand-side window, PowerStation fixes the selected lines with a more efficient API. In this case, the
count is replaced with
Common Subpexression (CS):
Inefficient Rendering (IR):
Dead Store Queries (DS):
Redundant Data Retrieval (RD):
When moving the cursor to the problematic lines, PowerStation shows which fields are being retrieved but not used later.