johnthagen / johnthagen/clion-cppcheck

Implement using ExternalAnnotator

Open
#65 1 comment 1 reaction 0 assignees View on GitHub
enhancement help wanted v2
Dominant language
Java
Stars
35
Forks
6
PR merge metrics
No merged PRs in 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.