여러 파일에 대한 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 플래그의 전체 문서는