IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Change inspection severity

Last modified: 29 November 2022

Inspection severity levels indicate how seriously the detected code problems affect your project. In IntelliJ IDEA, there is a set of predefined severity levels:

  • Error Error icon: syntax errors.

  • Warning Warning icon: code fragments that might produce bugs or require enhancement.

  • Weak Warning Weak Warning icon: code fragments that can be improved or optimized (redundant code, duplicated code fragments, and so on).

  • Server Problem Server problem icon: problems that come from an external build server, for example, from TeamCity.

  • Grammar Error the Typo icon: grammar mistakes. This severity comes from the bundled Grazie plugin.

  • Typo the Typo icon: spelling mistakes and typos.

  • Consideration: code fragments that can be improved. This severity is not marked on the error stripe and does not have a default highlighting style, but you can choose one from the list of existing styles or configure your own.

  • No highlighting, only fix: provides no code highlighting; the list of available fixes is invoked by pressing Alt+Enter.

For every severity, you can configure its own highlighting style in the editor.

Severity levels are designed to indicate problems, they don't have any impact on the code execution: if you change the severity for spelling mistakes from Typo to Error, this won't affect the execution of your application.