johnthagen/clion-cppcheck

Implement using ExternalAnnotator

Aperta

#65 aperta il 24 dic 2021

 (1 commento) (1 reazione) (0 assegnatari)Java (7 fork)github user discovery
enhancementhelp wantedv2

Metriche repository

Star
 (37 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor