evkaky
09/24/2026, 7:44 AMfun Route.get(...): Route, fun Route.post(...): Route and many others be annotated with @IgnorableReturnValue?
In version 3.6.0 they aren't, which seems weird to mesimon.vergauwen
09/24/2026, 7:55 AMfull mode enabled in a couple projects. By accident not Ktor projects? 🤔 I'm gonna double check and raise it with the team ☺️simon.vergauwen
09/24/2026, 8:01 AMevkaky
09/24/2026, 8:44 AMsettings:
ktor:
enabled: true
version: 3.6.0
jvm:
jdk:
version: 25
kotlin:
freeCompilerArgs:
- -Xreturn-value-checker=full
- -Xwarning-level=RETURN_VALUE_NOT_USED:error
I even should see them as errors btw.
IntelliJ 2026.2.2:simon.vergauwen
09/24/2026, 8:46 AM-Xwarning-level=RETURN_VALUE_NOT_USED:error it should indeed become an error.evkaky
09/24/2026, 8:48 AMsettings.ktor.enabled: true and that's allsimon.vergauwen
09/24/2026, 9:55 AMfull doesn't mean 3rd party libraries are checked but only when 3rd party libraries ship with -Xreturn-value-checker=full to signal they properly support it. Similar to platform types Java annotations are supported and can be configured.evkaky
09/24/2026, 10:09 AM-Xreturn-value-checker=full flag?
And with those functions (Route.get and others) annotated with @IgnorableReturnValue ?simon.vergauwen
09/24/2026, 10:13 AM@MustUseReturnValue in places that need it or depending on module.evkaky
09/24/2026, 10:16 AMMustUseReturnValue, IgnoreableReturnValue) wherever needed to make ktor fully return-values-checker-feature compatible.
Or this is not on the table?simon.vergauwen
09/24/2026, 10:19 AM