aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/electron.kt2
-rw-r--r--kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/nodejs/nodejs.kt2
-rw-r--r--kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/types/Date.kt2
-rw-r--r--kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt6
-rw-r--r--kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt2
-rw-r--r--kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/types/Date.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/types/Date.kt2
7 files changed, 9 insertions, 9 deletions
diff --git a/kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/electron.kt b/kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/electron.kt
index fd981333..b573058c 100644
--- a/kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/electron.kt
+++ b/kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/electron.kt
@@ -26,7 +26,7 @@
"CONFLICTING_OVERLOADS",
"EXTERNAL_DELEGATION",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
- "UNUSED", "PropertyName"
+ "UNUSED", "PropertyName", "TooManyFunctions", "VariableNaming", "MaxLineLength", "LargeClass"
)
@file:JsModule("electron")
@file:JsNonModule
diff --git a/kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/nodejs/nodejs.kt b/kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/nodejs/nodejs.kt
index 4d897a11..5dba70f2 100644
--- a/kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/nodejs/nodejs.kt
+++ b/kvision-modules/kvision-electron/src/main/kotlin/pl/treksoft/kvision/electron/nodejs/nodejs.kt
@@ -26,7 +26,7 @@
"CONFLICTING_OVERLOADS",
"EXTERNAL_DELEGATION",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
- "UNUSED"
+ "UNUSED", "TooManyFunctions"
)
@file:JsQualifier("NodeJS")
diff --git a/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/types/Date.kt b/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
index 678d6828..2cdcc76f 100644
--- a/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
+++ b/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
@@ -23,7 +23,7 @@ package pl.treksoft.kvision.types
import java.text.SimpleDateFormat
-val KV_DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"
+const val KV_DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"
actual typealias Date = java.util.Date
diff --git a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt
index fef3c3c6..956e7301 100644
--- a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt
+++ b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt
@@ -53,13 +53,13 @@ fun Application.kvisionInit(vararg modules: Module) {
val injector = Guice.createInjector(MainModule(this), *modules)
intercept(ApplicationCallPipeline.Features) {
- call.attributes.put(INJECTOR_KEY, injector.createChildInjector(CallModule(call)))
+ call.attributes.put(injectorKey, injector.createChildInjector(CallModule(call)))
}
}
-val INJECTOR_KEY = AttributeKey<Injector>("injector")
+val injectorKey = AttributeKey<Injector>("injector")
-val ApplicationCall.injector: Injector get() = attributes[INJECTOR_KEY]
+val ApplicationCall.injector: Injector get() = attributes[injectorKey]
class CallModule(private val call: ApplicationCall) : AbstractModule() {
override fun configure() {
diff --git a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
index 678d6828..2cdcc76f 100644
--- a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
+++ b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
@@ -23,7 +23,7 @@ package pl.treksoft.kvision.types
import java.text.SimpleDateFormat
-val KV_DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"
+const val KV_DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"
actual typealias Date = java.util.Date
diff --git a/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/types/Date.kt b/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
index 678d6828..2cdcc76f 100644
--- a/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
+++ b/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
@@ -23,7 +23,7 @@ package pl.treksoft.kvision.types
import java.text.SimpleDateFormat
-val KV_DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"
+const val KV_DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"
actual typealias Date = java.util.Date
diff --git a/src/main/kotlin/pl/treksoft/kvision/types/Date.kt b/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
index 4feaa181..dc8ea5f4 100644
--- a/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
@@ -29,7 +29,7 @@ import kotlinx.serialization.internal.SerialClassDescImpl
import pl.treksoft.kvision.KVManager
import kotlin.js.Date
-val KV_DEFAULT_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss"
+const val KV_DEFAULT_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss"
actual typealias Date = kotlin.js.Date