johnthagen/clion-cppcheck

Implement using ExternalAnnotator

開放

#65 建立於 2021年12月24日

 (1 則留言) (1 個反應) (0 位負責人)Java (7 個分叉)github user discovery
enhancementhelp wantedv2

倉庫指標

星標
 (37 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南