複数のファイルのPMD分析
Aug 18 2020
複数のファイルに対してpmd分析を実行する方法は?ここで、複数の.clsファイルがあるとすると、複数のファイルに対して一度に分析を実行するにはどうすればよいですか?
pmd.bat -d "$(Build.SourcesDirectory)\code\src\apexcode.cls" -f xml -R "$(Build.SourcesDirectory)\ code \ build \ MyApexRule.xml "-reportfile pmd.xml
回答
1 adangel Aug 19 2020 at 07:07
完全なディレクトリを指定することもでき、PMDは拡張子が「* .cls」のファイルを検索します。
pmd.bat -d "$(Build.SourcesDirectory)\code\src" -f xml ^ -R "$(Build.SourcesDirectory)\code\build\MyApexRule.xml" ^
-reportfile pmd.xml
も参照してください https://pmd.github.io/latest/pmd_userdocs_cli_reference.html CLIフラグの完全なドキュメントについては。