Package com.streamconverter.analysis
Class PmdReportConverter
java.lang.Object
com.streamconverter.analysis.PmdReportConverter
PMD XMLレポートをAI可読形式に変換するユーティリティクラス
PMDの生XMLレポートは構造化されているが冗長で、AI解析には適していない。 このクラスは以下の形式に変換する:
- Markdown要約レポート - AI可読性の高いサマリー
- CSVレポート - スプレッドシート分析用
- JSON構造化レポート - プログラム解析用
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
PMD違反情報を表すレコードクラス -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
convertReport
(String xmlFilePath, String outputDir) Converts the given PMD XML report into multiple formats.static void
CLI entry point for converting a PMD XML report.
-
Constructor Details
-
PmdReportConverter
public PmdReportConverter()Creates a new converter.
-
-
Method Details
-
main
CLI entry point for converting a PMD XML report.- Parameters:
args
- arguments where args[0] is the XML file and args[1] is the optional output directory- Throws:
Exception
- if conversion fails
-
convertReport
Converts the given PMD XML report into multiple formats.- Parameters:
xmlFilePath
- path to the PMD XML fileoutputDir
- directory where converted reports will be written- Throws:
Exception
- if processing fails
-