Perform code analysis in IntelliJ IDEA

duffy356 picture duffy356 · Jun 23, 2015 · Viewed 14.8k times · Source

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?

Answer

Johannes Ferner picture Johannes Ferner · Jun 24, 2015

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.