Skip to content

archlint scan

scanコマンドは、プロジェクトの完全なアーキテクチャ分析を実行します。

使用法

bash
archlint scan [path] [options]

オプション

オプションデフォルト説明
-f, --format <format>table出力形式: table, json, markdown, sarif
-j, --jsonfalse--format json のショートカット
-r, --report <file>stdoutレポートをファイルに保存します
-s, --min-severity <sev>low重要度でフィルタリング: low, medium, high, critical
-S, --min-score <score>none最小ヘルススコアでフィルタリング
-d, --detectors <ids>all実行する検出器(detectors)のカンマ区切りリスト
-e, --exclude-detectors <ids>noneスキップする検出器
-A, --allfalseすべての検出器を実行(デフォルトで無効なものを含む)
--no-cachefalse分析キャッシュを無効にします
--no-gitfalsegit 統合を無効にする (churn 分析をスキップ)

使用例

Markdownレポートを使用したスキャン

bash
archlint scan --format markdown --report report.md

SARIFへのエクスポート (GitHub Code Scanning用)

bash
archlint scan --format sarif --report results.sarif

サイクル検出のみを実行

bash
archlint scan --detectors cycles,circular_type_deps

高重要度(high severity)のみ

bash
archlint scan --min-severity high

Released under the MIT License.