diff --git a/docs/generator/script/TaLibGenerator.main.kts b/docs/generator/script/TaLibGenerator.main.kts index 19cbcf7f..58e60b6f 100644 --- a/docs/generator/script/TaLibGenerator.main.kts +++ b/docs/generator/script/TaLibGenerator.main.kts @@ -34,7 +34,7 @@ operator fun StringBuffer.plusAssign(str: Any) { * @property root * @constructor Create empty Base wrapper */ -@Suppress("MemberVisibilityCanBePrivate") +@Suppress("MemberVisibilityCanBePrivate", "KotlinConstantConditions", "UnusedReceiverParameter") class TaLibGenerator(private val root: JsonObject) { fun JsonObject.getAttr(key: String): String = get(key).asString diff --git a/roboquant/src/main/kotlin/org/roboquant/feeds/Feed.kt b/roboquant/src/main/kotlin/org/roboquant/feeds/Feed.kt index 75a460b7..ffb40ffd 100644 --- a/roboquant/src/main/kotlin/org/roboquant/feeds/Feed.kt +++ b/roboquant/src/main/kotlin/org/roboquant/feeds/Feed.kt @@ -173,6 +173,7 @@ inline fun Feed.applyEvents( /** * Convert a feed to a list of events, optionally limited to the provided [timeframe]. */ +@Suppress("RunBlocking") fun Feed.toList( timeframe: Timeframe = Timeframe.INFINITE, ): List = runBlocking { diff --git a/roboquant/src/test/kotlin/org/roboquant/TestData.kt b/roboquant/src/test/kotlin/org/roboquant/TestData.kt index 95d20f54..4052d356 100644 --- a/roboquant/src/test/kotlin/org/roboquant/TestData.kt +++ b/roboquant/src/test/kotlin/org/roboquant/TestData.kt @@ -118,7 +118,7 @@ internal object TestData { } - +@Suppress("RunBlocking") fun feedTest(feed: Feed, timeframe: Timeframe = Timeframe.INFINITE) = runBlocking { var prev = Instant.MIN for (event in play(feed, timeframe)) {