简体   繁体   中英

Perform code analysis in IntelliJ IDEA

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

IntelliJ 提交对话框的屏幕截图

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:

代码分析结果截图

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?

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.

In PhpStorm, code analyis option before commits can be turned off在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM