-
Notifications
You must be signed in to change notification settings - Fork 0
Code Quality
정명주(myeongju.jung) edited this page Mar 13, 2018
·
1 revision
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'jacoco'
apply plugin: 'org.sonarqube'
def checkstyleConfigFilePath = "${rootProject.projectDir}/config/checkstyle/checkstyle.xml"
def sonarToken = '??????????????????????'
//noinspection GroovyAssignabilityCheck
checkstyle {
ignoreFailures = false
//noinspection GroovyAssignabilityCheck
configFile = file(checkstyleConfigFilePath)
}
checkstyleMain {
enabled = true
source = "src/main/java"
}
checkstyleTest {
enabled = false
}
tasks.withType(Checkstyle) {
reports {
xml.enabled = true
html.enabled = true
}
}
//noinspection GroovyAssignabilityCheck
pmd {
ignoreFailures = false
pmdTest.enabled = false
}
pmdMain {
source = "src/main/java"
}
tasks.withType(Pmd) {
reports {
xml.enabled = true
html.enabled = true
}
}
sonarqube {
check
def coverageExclusions = [
'**/*Configuration.java',
'**/*Application.java',
'**/Q**.java']
//noinspection GroovyAssignabilityCheck
properties {
// Sonar Specific properties
property 'sonar.projectName', projectName // This is the display project name
property 'sonar.projectKey', projectKey
property 'sonar.host.url', 'http://sonarqube.domain.com' // This is the Sonar Server
property 'sonar.login', sonarToken
property 'sonar.links.scm', "https://github.com/domain/${rootProject.name}"
property 'sonar.links.ci', "http://ci.domain.com/"
property 'sonar.coverage.exclusions', coverageExclusions.join(',')
}
}
JAVA
JPA
- JPA-Create-And-Update
- Optional-Eager
- QueryDsl-Configuration
- QueryDsl-More-Type-safety
- QueryDsl-SubQuery
DDD
Install
Spring
Spring-Boot
- Swagger2-Configuration
- Spring-Restdocs-Configuration
- Spring-Page-Jackson
- JSR310-Guide
- logback-spring.xml
- WebMvcUtils.java
- Spring-Boot-Properties
- Spring-Boot-Hidden-Gems
- Spring-Boot-Config
Spring-Cloud
- Spring-Cloud-Zuul
- Spring-Cloud-Feign
- Spring-Cloud-Hystrix
- Spring-Cloud-Consul
- Spring-Cloud-Ribbon
- Spring-Cloud-Circuit-Breaker
JavaScript
Gradle
Test
Linux
Etc
TODO http://zoltanaltfatter.com/2017/06/09/publishing-domain-events-from-aggregate-roots/