Closed calda closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
a73bd38
) 95.07% compared to head (1da8235
) 95.07%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR updates the
wrapAttributes
"complex attributes" logic to exclude attributes with a single unnamed argument.This removes the need to special-case the
@Environment
attribute, which we specifically don't want to consider "complex". Since this doesn't require special casing any particular attribute, it generalizes to other similar attributes like@AppStorage
from SwiftUI and@Dependency
from TCA.These are no longer considered complex, so can be configured to not wrap using
--storedvarattrs same-line
:These examples are all still considered complex, so can be configured to always wrap using
--complexattrs prev-line
: