johnthagen/clion-cppcheck

Implement using ExternalAnnotator

Aberta

#65 aberto em 24 de dez. de 2021

 (1 comentário) (1 reação) (0 responsável)Java (7 forks)github user discovery
enhancementhelp wantedv2

Métricas do repositório

Stars
 (37 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

From https://youtrack.jetbrains.com/issue/CPP-22882#focus=Comments-27-5675064.0-0

LocalInspectionTool is not designed for running external executables, like cppcheck. For such task, ExternalAnnotator should be used. The flow is similar: inherit this class, override collectInformation to get all required data (like, virtual files, include dir, etc.), doAnnotate to actually execute cppcheck and finally apply to apply diagnostics to editor.

Guia do colaborador