Ajouter un rapport d'analyse statique

VérifiéSûr

Enregistrer un rapport d'analyse statique existant dans le pipeline de revue local.

Spar Skills Guide Bot
DeveloppementIntermédiaire
1024/07/2026
Claude Code
#static-analysis#code-review#cppcheck#flawfinder#automation

Recommandé pour

Notre avis

Enregistre un rapport d'analyse statique existant dans le pipeline de relecture local.

Points forts

  • Intègre plusieurs outils d'analyse statique (cppcheck, flawfinder, coverity, etc.)
  • Configure automatiquement le pipeline de relecture via un fichier YAML
  • Préserve les configurations existantes tout en ajoutant de nouveaux rapports

Limites

  • Ne fonctionne qu'avec les outils listés (pas d'outil personnalisé)
  • Le rapport doit déjà être généré avant l'appel à cette commande
  • Nécessite que le plugin code-review-assistant soit installé
Quand l'utiliser

Lorsque vous avez déjà généré un rapport d'analyse statique et souhaitez l'intégrer à un processus de relecture automatique.

Quand l'éviter

Si vous préférez lancer l'analyse statique directement depuis le pipeline de relecture plutôt que d'importer un rapport pré-existant.

Analyse de sécurité

Sûr
Score qualité88/100

The skill runs a Python script with user-provided arguments to register static analysis reports. No destructive commands, network exfiltration, or obfuscation are present. The Bash usage is limited to a single controlled invocation.

Aucun point d'attention détecté

Exemples

Add cppcheck report
Add the cppcheck report at 'reports/cppcheck.xml' to the review config with project root 'sample_project'.
Add flawfinder with evidence
Add the flawfinder report 'flawfinder_results.xml' with additional evidence files (manifest, detailed, high-risk) to the review config for project 'myproject'.

description: Add an already generated static-analysis report to a review config. argument-hint: "<tool> <report-path> [--project-root <path>] [--output-dir <path>] [--config <path>]" arguments:

  • add_args allowed-tools:
  • Bash
  • Read
  • Glob user-invocable: true disable-model-invocation: false

Add Report

Register an existing static-analysis report with the local review pipeline.

Supported tools:

  • cppcheck
  • flawfinder
  • splint
  • cppdepend
  • coverity

Run from the repository root:

python "${CLAUDE_PLUGIN_ROOT}/plugins/code-review-assistant/scripts/review.py" /code-review-assistant:add <tool> <report-path> [options]

If the wrapper path above does not exist, fall back to:

python "${CLAUDE_PLUGIN_ROOT}/scripts/review.py" /code-review-assistant:add <tool> <report-path> [options]

Common usage:

python plugins/code-review-assistant/scripts/review.py /code-review-assistant:add cppcheck reports/cppcheck.xml --project-root sample_project

Behavior:

  1. Copy the report into <output-dir>/raw-reports/<tool>/.
  2. Create or update review.auto.yaml.
  3. Enable the selected tool in the config with mode: import.
  4. Preserve existing enabled tools in the config.
  5. Validate the generated config.

Options:

  • --config <path> updates an existing config.
  • --project-root <path> is required when creating a new config.
  • --output-dir <path> controls where the copied report and generated config are written.
  • --provider heuristic|codex|claude_code sets or updates hosted/local review mode.
  • --evidence-artifact <path> copies extra evidence beside the report; useful for flawfinder manifest/detailed/high-risk files.

After adding reports, run:

python plugins/code-review-assistant/scripts/review.py all --config <output-dir>/review.auto.yaml
Skills similaires