Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perform code analysis in IntelliJ IDEA

When I start to commit changes to the VCS, the following commit dialog appears.

Screenshot of IntelliJ commit dialog

I checked the option 'Perform code analysis'. If I press commit, the code analysis starts, and when its finished i get the following dialog to view the results of the analysis:

Screenshot of Code Analysis Result

If I press the review button I can review the results.

I would like to start exactly the same analysis manually. My version of IntelliJ IDEA: 14.1.1 (built on March 31, 2015)

Is it possible to run code analysis of commit dialog without a commit in IntelliJ?

like image 854
duffy356 Avatar asked Jun 23 '15 14:06

duffy356


People also ask

How do I stop performing code analysis in IntelliJ?

Right click on the changelist and select "Commit Changes..." In the "Commit Changes" dialog, uncheck the "Perform code analysis" and "Check TODO" check-boxes. Click "Commit" to persist the settings.

How do I open code editor in IntelliJ?

Code Editing Use the Code Editing page of the Settings/Preferences dialog to configure the general code editing options. Select this checkbox to have IntelliJ IDEA highlight pairs of opening/closing braces when you position the caret right before the opening or right after the closing one.

How do I inspect a variable in IntelliJ?

IntelliJ IDEA allows you to inspect variables in a dedicated dialog. This is useful when you need to keep track of some variable (or the object whose reference it holds) and at the same time be able to navigate between frames and threads. Right-click a variable on the Variables tab and select Inspect.


1 Answers

Analyze -> Inspect Code (maba's answer) is correct.

You can specify the inspections profiles in the project settings. More Information on inspection profiles can be found here https://www.jetbrains.com/idea/documentation/static_code_analysis.html

You can also search for 3rd party plugins if your language/framework is not supported out of the box.

like image 80
Johannes Ferner Avatar answered Oct 12 '22 18:10

Johannes Ferner