문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
java:pmd [2017/02/24 10:11] kwon37xi |
java:pmd [2021/05/06 22:35] kwon37xi |
||
---|---|---|---|
줄 2: | 줄 2: | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
+ | * [[ci: | ||
===== 기본 규칙 ===== | ===== 기본 규칙 ===== | ||
줄 8: | 줄 9: | ||
===== Gradle 설정 ===== | ===== Gradle 설정 ===== | ||
+ | * [[https:// | ||
<code groovy> | <code groovy> | ||
+ | apply plugin: ' | ||
+ | |||
pmd { | pmd { | ||
toolVersion = ' | toolVersion = ' | ||
ignoreFailures = true // 위반이 있어도 report만하고 넘어감 | ignoreFailures = true // 위반이 있어도 report만하고 넘어감 | ||
+ | } | ||
+ | |||
+ | // 혹은 | ||
+ | tasks.withType(Pmd) { | ||
+ | ignoreFailures = true | ||
+ | ruleSetFiles = rootProject.files("/ | ||
+ | exclude " | ||
+ | |||
+ | reports { | ||
+ | xml.enabled true | ||
+ | html.enabled false | ||
+ | } | ||
} | } | ||
</ | </ | ||