Skip to content

Commit

Permalink
Merge branch 'dev' into feat/#4-create-project
Browse files Browse the repository at this point in the history
  • Loading branch information
Sehee-Lee-01 committed Feb 12, 2024
2 parents 2550d2a + b87f539 commit 3fc8f77
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @yenzip @uijin-j @Sehee-Lee-01
60 changes: 58 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.1.4'
id 'checkstyle'
id 'jacoco'
}

group = 'sixgaezzang'
Expand Down Expand Up @@ -46,6 +47,13 @@ dependencies {

tasks.named('test') {
useJUnitPlatform()

finalizedBy jacocoTestReport
}

// Checkstyle
checkstyle {
maxWarnings = 0
}

tasks.withType(Checkstyle) {
Expand All @@ -55,6 +63,54 @@ tasks.withType(Checkstyle) {
}
}

checkstyle {
maxWarnings = 0
// Jacoco
jacoco {
toolVersion = "0.8.11"
}

jacocoTestReport {
reports {
html.required = true
xml.required = true
csv.required = false
}

finalizedBy jacocoTestCoverageVerification
dependsOn test
}

jacocoTestCoverageVerification {
violationRules {
rule {
element = 'CLASS'

limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.80
}

limit {
counter = 'BRANCH'
value = 'COVEREDRATIO'
minimum = 0.80
}

includes = [
'sixgaezzang/sidepeek/**/service/*'
]
}

rule {
element = 'METHOD'

limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 50
}
}
}

dependsOn jacocoTestReport
}
2 changes: 2 additions & 0 deletions lombok.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config.stopBubbling = true
lombok.addLombokGeneratedAnnotation = true

0 comments on commit 3fc8f77

Please sign in to comment.