PhpStorm 2024.1 Help

Code Inspection: Annotator

Reports issues essential to this file (e.g., syntax errors) in the result of a batch code inspection run. These kinds of issues are usually always highlighted when you open the file in the editor and can't be configured (unlike inspections). The options below are controlling the analysis level of this inspection:

  • Option "Highlight syntax errors" allows you to report parser-related issues.

  • Option "Run language annotators" allows you to report issues found by annotators configured for this language. See Custom Language Support: Annotators for details.

  • Option "Run language-specific highlight visitors" allows you to report issues inherent to this file language (e.g., type mismatches or unreported exceptions etc.). See Custom Language Support: Highlighting for details.

Annotator checks are advanced syntax checks that are too complex for the parser. They cannot be configured or disabled and can be viewed only in the editor. This inspection allows collecting the results of annotator checks and view them when running inspections in batch mode.

Suppress an inspection in the editor

  1. Place the caret at the highlighted line and press Alt+Enter or click the Intention action icon.

  2. Click the arrow next to the inspection you want to suppress and select the necessary suppress action.

Last modified: 11 February 2024