Closed calda closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
cc6ca5a
) 95.12% compared to head (9dd8aea
) 95.12%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR fixes an issue where declaration bodies wouldn't be sorted if the
organizeDeclarations
rule was enabled, but configured with aorganizeTypes
value that excluded that declaration type.For example,
organizeTypes
excludes extensions by default. So whenorganizeDeclarations
was enabled, the neither thesortDeclarations
rule nor theorganizeDeclarations
rule would apply the// swiftformat:sort
directive.This PR should fix https://github.com/nicklockwood/SwiftFormat/issues/1622.