arrow-kt / arrow

Λrrow - Functional companion to Kotlin's Standard Library
http://arrow-kt.io
Other
6.13k stars 442 forks source link

Reduce warnings #3425

Closed serras closed 4 months ago

serras commented 4 months ago

The goal is to make a complete pass on the code, trying to reduce any possible warning that currently arises

Fixes #219

github-actions[bot] commented 4 months ago

Kover Report

File Coverage [70.26%]
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt 62.91%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Ior.kt 86.32%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Iterable.kt 78.55%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/predef.kt 100.00%
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Builders.kt 69.23%
arrow-libs/core/arrow-core/src/jvmMain/kotlin/arrow/core/raise/CancellationExceptionNoTrace.kt 100.00%
arrow-libs/core/arrow-core/src/nonJvmMain/kotlin/arrow/core/raise/CancellationExceptionNoTrace.kt 100.00%
arrow-libs/fx/arrow-collectors/src/commonMain/kotlin/arrow/collectors/Collect.kt 75.00%
arrow-libs/fx/arrow-collectors/src/commonMain/kotlin/arrow/collectors/Collector.kt 43.06%
arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt 58.54%
arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/flow.kt 73.61%
arrow-libs/optics/arrow-optics/src/commonMain/kotlin/arrow/optics/Prism.kt 60.27%
Total Project Coverage 61.06%
serras commented 4 months ago

The warnings are now minimal: just those related to usages of @Suppress which may not be forward-compatible. The build files have also been updated to eliminate warnings (except for the needed Dokka one).