gradle checkstyle 추가

This commit is contained in:
Rinjae
2025-12-05 14:26:01 +09:00
parent b761468758
commit 01db76de15
2 changed files with 30 additions and 0 deletions
+13
View File
@@ -6,6 +6,7 @@ plugins {
id 'war'
id 'com.diffplug.eclipse.apt' version '3.41.1'
id 'project-report'
id 'checkstyle'
}
group 'com.eactive'
@@ -35,6 +36,10 @@ java {
languageVersion = JavaLanguageVersion.of(8)
}
}
checkstyle {
toolVersion = '8.45.1'
}
compileJava {
options.encoding = 'UTF-8'
@@ -255,4 +260,12 @@ eclipse {
buildCommand 'org.eclipse.buildship.core.gradleprojectbuilder'
}
}
}
tasks.withType(Checkstyle) {
reports {
xml.required = false
html.required = true
}
}
+17
View File
@@ -0,0 +1,17 @@
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="TreeWalker">
<!-- System.out.print / println 금지 -->
<module name="Regexp">
<property name="format" value="System\.out\.print" />
<property name="message" value="Do not use System.out.print / println" />
<property name="ignoreComments" value="true"/>
<property name="illegalPattern" value="true"/>
</module>
</module>
</module>