function_default_parameter_at_end should not trigger for isolated
parameter.
#5793
Open
2 tasks done
Labels
enhancement
Ideas for improvements of existing features and rules.
good first issue
Issue to be taken up by new contributors yet unfamiliar with the project.
New Issue Checklist
Feature or Enhancement Proposal
Swift 6 introduced a new notation for inheriting the actor isolation from the call site (see SE-0420). The special parameter
isolated
is typically placed as the first argument of a method with the default value#isolation
.This violates the
function_default_parameter_at_end
rule and I think such cases should receive an exemption from the rule.The current implementation, only considers closures as special cases.
Looking at the original proposal (see SE-0313),
isolated
parameter can occur at any position. Checking for theisolated
attribute and a default value#isolation
should be enough to detect isolation inheritance.The text was updated successfully, but these errors were encountered: