From 3777ee444f457594ac1e6689a25239e1d272f6ca Mon Sep 17 00:00:00 2001 From: middlefitting Date: Sun, 21 Jan 2024 02:22:44 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20gradle=20checkstyle=20task=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.gradle b/build.gradle index 49a217681..8c45f2b51 100644 --- a/build.gradle +++ b/build.gradle @@ -4,8 +4,22 @@ plugins { id 'org.asciidoctor.jvm.convert' version '3.3.2' id 'java' id 'jacoco' + id 'org.ec4j.editorconfig' version '0.0.3' + id 'checkstyle' } +editorconfig { + excludes = ['build'] +} + +checkstyle { + maxWarnings = 0 // 규칙이 어긋나는 코드가 하나라도 있을 경우 빌드 fail을 내고 싶다면 이 선언을 추가한다. + configFile = file("${rootDir}/naver-checkstyle-rules.xml") + configProperties = ["suppressionFile" : "${rootDir}/naver-checkstyle-suppressions.xml"] + toolVersion ="8.24" // checkstyle 버전 8.24 이상 선언 +} + + springBoot { mainClass = "com.gg.server.Application" }