Skip to content

Commit

Permalink
feat: ktlint 규칙 설정 파일 추가 (#37)
Browse files Browse the repository at this point in the history
* feat: ktlint 규칙을 위한 editorconfig 추가

* chore: 새로운 린트 규칙 적용
  • Loading branch information
belljun3395 authored Jun 17, 2024
1 parent 418cde4 commit fe383cb
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 14 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset=utf-8
end_of_line=lf
indent_style=space
indent_size=4
insert_final_newline=true
disabled_rules=no-wildcard-imports,import-ordering,comment-spacing

[*.{kt,kts}]
insert_final_newline=false
2 changes: 1 addition & 1 deletion api-repo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ jooq {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class ApiRepoConfig {
const val BEAN_NAME_PREFIX = "fewApiRepo"
const val PROPERTY_PREFIX = SERVICE_NAME + "." + MODULE_NAME
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ class DataSourceConfig {
fun apiTransactionManager(): PlatformTransactionManager {
return DataSourceTransactionManager(apiDataSource())
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ class FlywayConfig {
)
return configuration
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ class RepoTestContainerInitializer : ApplicationContextInitializer<ConfigurableA

log.debug("===== success set up test containers =====")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ import org.springframework.context.annotation.ComponentScan
@TestConfiguration
@EnableAutoConfiguration
@ComponentScan(basePackages = [ApiRepoConfig.BASE_PACKAGE])
class JooqTestConfig
class JooqTestConfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ import org.springframework.test.context.ContextConfiguration
@ActiveProfiles("new", "test", "api-repo-local")
@SpringBootTest(classes = [ApiRepoConfig::class])
@ContextConfiguration(initializers = [RepoTestContainerInitializer::class])
abstract class JooqTestSpec
abstract class JooqTestSpec
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,4 @@ class _SampleJooqTest : JooqTestSpec() {
assert(softDelete > 0)
assert(result != null)
}
}
}
2 changes: 1 addition & 1 deletion api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ dependencies {
/** spring starter */
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-actuator")
}
}
2 changes: 1 addition & 1 deletion api/src/main/kotlin/com/few/ApiMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class ApiMain

fun main(args: Array<String>) {
runApplication<ApiMain>(*args)
}
}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ tasks.named("gitExecutableHooks").configure {

tasks.named("clean").configure {
dependsOn("gitExecutableHooks")
}
}
2 changes: 1 addition & 1 deletion data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ tasks.getByName("jar") {
}

dependencies {
}
}
2 changes: 1 addition & 1 deletion data/src/main/kotlin/com/few/data/config/DataConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class DataConfig {
const val BEAN_NAME_PREFIX = "fewData"
const val PROPERTY_PREFIX = SERVICE_NAME + "." + MODULE_NAME
}
}
}
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ rootProject.name = "few"

include("api")
include("data")
include("api-repo")
include("api-repo")

0 comments on commit fe383cb

Please sign in to comment.