build.gradle
plugins {
id 'checkstyle'
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
dependencies {
checkstyle "com.puppycrawl.tools:checkstyle:${checkstyle.toolVersion}"
}
tasks.withType(Checkstyle) {
reports {
xml.required = true
html.required = true
}
}
checkstyle {
toolVersion = "10.12.4"
configFile = file("checkstyle/naver-checkstyle-rules.xml")
configProperties = ["suppressionFile": "checkstyle/naver-checkstyle-suppressions.xml"]
soureSets = [sourceSets.main]
}
checkstyleMain.source = fileTree('src/main/java')
https://docs.gradle.org/current/userguide/checkstyle_plugin.html
[데이터베이스]JPQL : N + 1 문제, Fetch Join, 주의사항 (2) | 2023.07.11 |
---|
댓글 영역