Class PmdReportConverter

java.lang.Object
com.streamconverter.analysis.PmdReportConverter

public class PmdReportConverter extends Object
PMD XMLレポートをAI可読形式に変換するユーティリティクラス

PMDの生XMLレポートは構造化されているが冗長で、AI解析には適していない。 このクラスは以下の形式に変換する:

  • Markdown要約レポート - AI可読性の高いサマリー
  • CSVレポート - スプレッドシート分析用
  • JSON構造化レポート - プログラム解析用
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args) throws Exception
      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

      public void convertReport(String xmlFilePath, String outputDir) throws Exception
      Converts the given PMD XML report into multiple formats.
      Parameters:
      xmlFilePath - path to the PMD XML file
      outputDir - directory where converted reports will be written
      Throws:
      Exception - if processing fails