arrow icon indicating copy to clipboard operation
arrow copied to clipboard

Enable "unused value checker"

Open serras opened this issue 1 month ago • 1 comments

This still requires 2.3.0-Beta2, but it's good to be forward-looking to these changes.

serras avatar Nov 02 '25 17:11 serras

Kover Report

File Coverage [47.46%]
arrow-libs/core/arrow-autoclose/src/commonMain/kotlin/arrow/AutoCloseScope.kt 100.00%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt 97.44%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Iterable.kt 29.04%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt 73.68%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptySet.kt 65.96%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Option.kt 80.65%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Builders.kt 96.47%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Fold.kt 100.00%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Raise.kt 95.83%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/RaiseAccumulate.kt 24.24%
arrow-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/raise/CancellationExceptionNoTrace.kt 100.00%
arrow-libs/core/arrow-exception-utils/src/androidAndJvmMain/kotlin/arrow/core/NonFatal.kt 100.00%
arrow-libs/core/arrow-exception-utils/src/commonMain/kotlin/arrow/core/NonFatal.kt 100.00%
arrow-libs/core/arrow-exception-utils/src/commonMain/kotlin/arrow/core/ThrowableUtils.kt 100.00%
arrow-libs/core/arrow-exception-utils/src/commonMain/kotlin/arrow/core/nonFatalOrThrow.kt 100.00%
arrow-libs/core/arrow-exception-utils/src/nonJvmMain/kotlin/arrow/core/NonFatal.kt 100.00%
arrow-libs/fx/arrow-collectors/src/commonMain/kotlin/arrow/collectors/Collectors.kt 55.88%
arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Bracket.kt 88.46%
arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/CyclicBarrier.kt 80.95%
arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Race3.kt 90.00%
arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Racing.kt 100.00%
arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt 81.03%
arrow-libs/fx/arrow-fx-stm/src/commonMain/kotlin/arrow/fx/stm/TVar.kt 73.08%
arrow-libs/fx/arrow-fx-stm/src/commonMain/kotlin/arrow/fx/stm/internal/Hamt.kt 87.80%
arrow-libs/integrations/arrow-core-jackson/src/main/kotlin/arrow/integrations/jackson/module/internal/ProductTypeSerializer.kt 100.00%
arrow-libs/integrations/arrow-core-jackson/src/main/kotlin/arrow/integrations/jackson/module/internal/UnionTypeSerializer.kt 91.67%
arrow-libs/integrations/arrow-raise-ktor-server/src/commonMain/kotlin/arrow/raise/ktor/server/routing/routing.kt 9.52%
arrow-libs/integrations/arrow-raise-ktor-server/src/commonMain/kotlin/arrow/raise/ktor/server/routing/routingReceiving.kt 11.11%
arrow-libs/resilience/arrow-resilience/src/commonMain/kotlin/arrow/resilience/Saga.kt 95.35%
Total Project Coverage 47.18%

github-actions[bot] avatar Nov 02 '25 17:11 github-actions[bot]

I've ended up splitting the things related to exceptions and addSuppressed into its own small module, to avoid code duplication. @kyay10 would you mind having a look at it, since you recently touched that code?

The whole things is binary compatible: even though some things are moved to arrow-exceptions-utils, we still use the same package, and it's exported through arrow-core. So nobody needs to change anything (it they were doing so). For the one in arrow-autoclose, I've created a small wrapper re-exporting it.

serras avatar Dec 13 '25 08:12 serras

Ignore the nits, we can address them later! Just these 2 behaviour changes highlighted above are all I need.

kyay10 avatar Dec 13 '25 09:12 kyay10