문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
java:pmd [2016/10/17 14:00] kwon37xi |
java:pmd [2021/05/06 22:35] (현재) kwon37xi |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== PMD ====== | ====== PMD ====== | ||
| - | * [[http://pmd.sourceforge.net|PMD]] | + | * [[https://pmd.github.io/|PMD]] |
| * [[http:// | * [[http:// | ||
| + | * [[ci: | ||
| - | ===== toolVersion | + | ===== 기본 규칙 |
| - | PMD 버전별로 버그가 | + | |
| + | * 혹은 소스에서 볼 수도 있다. [[https:// | ||
| + | |||
| + | ===== Gradle 설정 ===== | ||
| + | * [[https:// | ||
| <code groovy> | <code groovy> | ||
| + | apply plugin: ' | ||
| + | |||
| pmd { | pmd { | ||
| - | toolVersion = ' | + | toolVersion = ' |
| + | ignoreFailures = true // 위반이 있어도 report만하고 넘어감 | ||
| + | } | ||
| + | |||
| + | // 혹은 | ||
| + | tasks.withType(Pmd) { | ||
| + | ignoreFailures = true | ||
| + | ruleSetFiles = rootProject.files("/ | ||
| + | exclude " | ||
| + | |||
| + | reports { | ||
| + | xml.enabled true | ||
| + | html.enabled false | ||
| + | } | ||
| } | } | ||
| </ | </ | ||