Skip to content

Commit

Permalink
[Lint] Changed ktlint to a setting that is not excessive.
Browse files Browse the repository at this point in the history
  • Loading branch information
geminiKim committed Dec 11, 2023
1 parent d9ae1a8 commit 9b2ae62
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ data class ApiResponse<T> private constructor(
return ApiResponse(ResultType.SUCCESS, data, null)
}

fun <S> error(
error: ErrorType,
errorData: Any? = null,
): ApiResponse<S> {
fun <S> error(error: ErrorType, errorData: Any? = null): ApiResponse<S> {
return ApiResponse(ResultType.ERROR, null, ErrorMessage(error, errorData))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 9b2ae62

Please sign in to comment.