Skip to content

Commit

Permalink
chore: gradle checkstyle task 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
middlefitting committed Jan 20, 2024
1 parent 6668320 commit 3777ee4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 3777ee4

Please sign in to comment.