# Static code analysis

In CLion, there is a set of code inspections that detect and correct abnormal code in your project before you compile it. The IDE can find and highlight various problems, locate dead code, find probable bugs, spelling problems, and improve the overall code structure.

Inspections can scan your code in all project files or only in specific [scopes](configuring-scopes-and-file-colors.html) (for example, only in production code or in modified files).

Every inspection has a [severity level](configuring-inspection-severities.html) — the extent to which a problem can affect your code. Severities are highlighted differently in the editor so that you can quickly distinguish between critical problems and less important things. CLion comes with a set of predefined severity levels and enables you to create your own.

Inspections and their settings are grouped in [profiles](customizing-profiles.html). Each profile contains the information on the enabled inspections, a scope of files that they analyze, and their severity levels.

> **Tip:**
> As additional external analyzers, you can use [cppcheck](http://cppcheck.sourceforge.net/) via the [Cppcheck plugin](https://plugins.jetbrains.com/plugin/8143-cppcheck) or [SonarLint](https://www.sonarlint.org/) via the [SonarLint plugin](https://plugins.jetbrains.com/plugin/7973-sonarlint).

Procedure: Access inspections settings

To edit inspections and [inspection profiles](customizing-profiles.html), do one of the following:

* Go to  the Editor | Inspections settings page `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `⌘ Comma` (Xcode), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (ReSharper), `⌘ Comma` (ReSharper (macOS)), `Ctrl+Alt+S` (QtCreator), `⌘ Comma` (QtCreator (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))

![Inspections settings](https://resources.jetbrains.com/help/img/idea/2026.2/cl_inspections_settings.png)

* Hover over the inspection widget in top-right corner of the editor, click ![the More button](https://resources.jetbrains.com/help/img/idea/2026.2/app.actions.more.svg), and select Configure Inspections:

![Accessing inspections setting from the editor widget](https://resources.jetbrains.com/help/img/idea/2026.2/cl_access_inspectionssettings_from_widget.png)

* In the editor, open the suggestion list, click the right arrow, and choose `Edit inspection profile settings` on the submenu.

* In the [Problems tool window](problems-tool-window.html), click Edit Settings ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.settings.svg) on the toolbar or use the corresponding context menu command.

Use ![the Filter icon](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.filter.svg) to filter the inspection list. For example, you can filter inspections by severity or by language.

> **Note:**
> Select the Disable new inspections by default checkbox to disable new inspections that come from installed plugins as they may affect the configuration of your inspection profile.

## See also

### Procedures

[Intention actions](intention-actions.html)

### Reference

[Inspections](inspections-settings.html) [Scopes](settings-scopes.html) [Problems tool window](problems-tool-window.html)

### External Links

[Check lambda support in IntelliJ IDEA 12 EAP](http://blogs.jetbrains.com/idea/2012/08/check-lambda-support-in-intellij-idea-12-eap-build-122202/)

