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

Code Inspection: Annotator

Last modified: 24 August 2023

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.