diff --git a/.editorconfig b/.editorconfig index 370c2c2..a9978f7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,5 @@ [{*.kt,*.kts}] -ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL +ktlint_code_style = INTELLIJ_IDEA ij_kotlin_allow_trailing_comma = true ij_kotlin_allow_trailing_comma_on_call_site = true ij_kotlin_name_count_to_use_star_import = 2147483647 diff --git a/clients/client-example/src/main/kotlin/io/dodn/springboot/client/example/ExampleApi.kt b/clients/client-example/src/main/kotlin/io/dodn/springboot/client/example/ExampleApi.kt index eb4e9ce..1bbfe39 100644 --- a/clients/client-example/src/main/kotlin/io/dodn/springboot/client/example/ExampleApi.kt +++ b/clients/client-example/src/main/kotlin/io/dodn/springboot/client/example/ExampleApi.kt @@ -13,7 +13,5 @@ internal interface ExampleApi { value = ["/example/example-api"], consumes = [MediaType.APPLICATION_JSON_VALUE], ) - fun example( - @RequestBody request: ExampleRequestDto, - ): ExampleResponseDto + fun example(@RequestBody request: ExampleRequestDto): ExampleResponseDto } diff --git a/core/core-api/src/main/kotlin/io/dodn/springboot/core/api/config/AsyncExceptionHandler.kt b/core/core-api/src/main/kotlin/io/dodn/springboot/core/api/config/AsyncExceptionHandler.kt index 22d61ff..0fe1905 100644 --- a/core/core-api/src/main/kotlin/io/dodn/springboot/core/api/config/AsyncExceptionHandler.kt +++ b/core/core-api/src/main/kotlin/io/dodn/springboot/core/api/config/AsyncExceptionHandler.kt @@ -9,11 +9,7 @@ import java.lang.reflect.Method class AsyncExceptionHandler : AsyncUncaughtExceptionHandler { private val log = LoggerFactory.getLogger(javaClass) - override fun handleUncaughtException( - e: Throwable, - method: Method, - vararg params: Any?, - ) { + override fun handleUncaughtException(e: Throwable, method: Method, vararg params: Any?) { if (e is CoreApiException) { when (e.errorType.logLevel) { LogLevel.ERROR -> log.error("CoreApiException : {}", e.message, e) diff --git a/core/core-api/src/main/kotlin/io/dodn/springboot/core/api/support/response/ApiResponse.kt b/core/core-api/src/main/kotlin/io/dodn/springboot/core/api/support/response/ApiResponse.kt index 21adce5..821dfd0 100644 --- a/core/core-api/src/main/kotlin/io/dodn/springboot/core/api/support/response/ApiResponse.kt +++ b/core/core-api/src/main/kotlin/io/dodn/springboot/core/api/support/response/ApiResponse.kt @@ -17,10 +17,7 @@ data class ApiResponse private constructor( return ApiResponse(ResultType.SUCCESS, data, null) } - fun error( - error: ErrorType, - errorData: Any? = null, - ): ApiResponse { + fun error(error: ErrorType, errorData: Any? = null): ApiResponse { return ApiResponse(ResultType.ERROR, null, ErrorMessage(error, errorData)) } } diff --git a/storage/db-core/src/main/kotlin/io/dodn/springboot/storage/db/core/config/CoreDataSourceConfig.kt b/storage/db-core/src/main/kotlin/io/dodn/springboot/storage/db/core/config/CoreDataSourceConfig.kt index a03ef78..fc7ff80 100644 --- a/storage/db-core/src/main/kotlin/io/dodn/springboot/storage/db/core/config/CoreDataSourceConfig.kt +++ b/storage/db-core/src/main/kotlin/io/dodn/springboot/storage/db/core/config/CoreDataSourceConfig.kt @@ -16,9 +16,7 @@ internal class CoreDataSourceConfig { } @Bean - fun coreDataSource( - @Qualifier("coreHikariConfig") config: HikariConfig, - ): HikariDataSource { + fun coreDataSource(@Qualifier("coreHikariConfig") config: HikariConfig): HikariDataSource { return HikariDataSource(config) } }