On-the-fly Code Analysis
With IntelliJ IDEA’s powerful tools for static code analysis, you can find probable bugs, locate dead code, detect performance issues and improve code structure without executing the code. Static code analysis is enabled for all supported languages and frameworks on a deep level. As a result, IntelliJ IDEA ensures code quality, without interrupting your coding process.
Static code analysis is performed by the IDE on the fly. The editor highlights warnings and errors in the code immediately as you type.
Global Inspection Results
In addition to highlighting in the editor, you can run inspections against the whole project or any other scope, to see all warnings and errors in one view grouped by type and category.
If you have Teamcity installed, you can run the most time-consuming inspections on the server side, as a part of continuous integration. The integration allows you to browse inspection results on the web interface as well as through the IDE.
Intentions & Quick-Fixes
When IntelliJ IDEA finds any inconsistency in the code, or an opportunity to improve it, it suggests you the best options to fix it. Just select an option to apply it to the code.
Shared Inspection Profiles
Static code analysis is based on inspections. You can disable or enable any inspection by creating custom profiles. Each profile can be shared with your team.
IntelliJ IDEA allows you to create custom inspections by specifying a search template and a replace suggestion. With custom inspections you can teach the IDE to detect issues specific for your project.