David Kubecka
09/17/2024, 9:27 AMfun fetchStandingOrdersAuths(info: RequestOriginInfo, productHashedId: String): CustomerRelevantOperationsResponse =
fetchStandingOrdersAuths(info, setOf(productHashedId))
But once I "annotate" that with context(Raise<ApiError>)
like this
context(Raise<ApiError>)
fun fetchStandingOrdersAuths(info: RequestOriginInfo, productHashedId: String): CustomerRelevantOperationsResponse =
fetchStandingOrdersAuths(info, setOf(productHashedId))
it reports that "First line of body expression fits on same line as function signature (standard:function-signature" rule is violated.Paul Dingemans
09/17/2024, 2:54 PM.editorconfig
Daniel Pitts
09/17/2024, 8:44 PMDavid Kubecka
09/18/2024, 9:14 AMPaul Dingemans
09/18/2024, 9:15 AMIt's worth noting that context receivers are going away (to be replaced by context parameters). (edited)@Daniel Pitts Tnx for info. But ktlint still will need to support this for a while because people can still use older kotlin versus that did support context receivers.
David Kubecka
09/18/2024, 9:16 AM