Skip to content

feat: unused return value checker#135

Open
rileymichael wants to merge 3 commits intomichaelbull:masterfrom
rileymichael:feat/unused-return-value
Open

feat: unused return value checker#135
rileymichael wants to merge 3 commits intomichaelbull:masterfrom
rileymichael:feat/unused-return-value

Conversation

@rileymichael
Copy link

@rileymichael rileymichael commented Dec 29, 2025

closes #134 as discussed by enabling the unused return value checker in full mode for the entire project and explicitly marking methods where the return value is safe to ignore with @IgnorableReturnValue (onSuccess and onFailure).

i've also enabled the return value checker in check mode in the example application to validate. here is an example warning (note that there are no warnings in the existing usage):

5A8wzEA_d

Gradle 9 removed the JvmVendorSpec.IBM_SEMERU constant which breaks all versions < 1.0.0.

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
Copy link
Author

@rileymichael rileymichael Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gradle 9 removed a deprecated jvm vendor which broke compatibility with foojay toolchain resolver versions before 1.0.0

@rileymichael rileymichael marked this pull request as ready for review December 29, 2025 23:34
@rileymichael rileymichael force-pushed the feat/unused-return-value branch from e50f37d to d969b11 Compare December 30, 2025 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support unused return value checker

1 participant