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
The Checkstyle Plugin
By default, the Checkstyle plugin expects configuration files to be placed in the root project, but this can be changed. └── config └── checkstyle (1) └── checkstyle.xml (2) └── suppressions.xml 1 Checkstyle configuration files go h
docs.gradle.org
[쀼] 프론트앤드 에러 고치기 : 버튼 위치 개선, 로딩 컴포넌트화 (0) | 2024.12.31 |
---|---|
[쀼] Vercel 배포+ 가비아 서브도메인 설정 (0) | 2024.12.29 |
[5일의 기적 : 노하우 공유 커뮤니티] (3) API 명세서 (0) | 2023.12.24 |
[5일의 기적 : 노하우 공유 커뮤니티] (2) ERD 설계 (0) | 2023.12.22 |
[5일의 기적 : 노하우 공유 커뮤니티] (1) 기획 & 화면 설계 (0) | 2023.12.22 |