Add KtLint
This commit is contained in:
parent
c1c05276a2
commit
23eb5ff433
17
.editorconfig
Normal file
17
.editorconfig
Normal file
@ -0,0 +1,17 @@
|
||||
# editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.{kt, kts}]
|
||||
indent_size = 4
|
||||
insert_final_newline = true
|
||||
max_line_length = 120
|
||||
disabled_rules = no-wildcard-imports
|
||||
kotlin_imports_layout = idea
|
||||
1
pom.xml
1
pom.xml
@ -7,6 +7,7 @@
|
||||
<properties>
|
||||
<java.version>14</java.version>
|
||||
<kotlin.version>1.4.10</kotlin.version>
|
||||
<kotlin.code.style>official</kotlin.code.style>
|
||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
@ -25,7 +25,6 @@ import org.jooq.SQLDialect
|
||||
import org.jooq.impl.DSL
|
||||
import org.koin.core.context.startKoin
|
||||
import org.koin.dsl.bind
|
||||
import org.koin.dsl.koinApplication
|
||||
import org.koin.dsl.module
|
||||
import org.koin.dsl.onClose
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
@ -4,7 +4,9 @@ import org.koin.core.Koin
|
||||
import kotlin.concurrent.thread
|
||||
|
||||
fun Koin.addShutdownHook() {
|
||||
Runtime.getRuntime().addShutdownHook(thread(start = false) {
|
||||
Runtime.getRuntime().addShutdownHook(
|
||||
thread(start = false) {
|
||||
close()
|
||||
})
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
package be.simplenotes.routes
|
||||
|
||||
import be.simplenotes.security.SimpleJwt
|
||||
import be.simplenotes.User
|
||||
import be.simplenotes.UserId
|
||||
import be.simplenotes.extensions.notFound
|
||||
import be.simplenotes.extensions.ok
|
||||
import be.simplenotes.repositories.UserRepository
|
||||
import be.simplenotes.security.SimpleJwt
|
||||
import com.auth0.jwt.exceptions.JWTVerificationException
|
||||
import org.http4k.core.Body
|
||||
import org.http4k.core.Method.*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user