nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.63k stars 623 forks source link

Fix issue where --wrapreturntype if-multiline didn't work with arrays, dictionaries, tuples, or generic types #1657

Closed calda closed 3 months ago

calda commented 3 months ago

This PR fixes an issue where the --wrapreturntype if-multiline option didn't work if the return type was an array, dictionary, tuple, or generic type.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.19%. Comparing base (ca70962) to head (37783f5).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1657 +/- ## =========================================== + Coverage 95.13% 95.19% +0.06% =========================================== Files 20 20 Lines 22707 22706 -1 =========================================== + Hits 21603 21616 +13 + Misses 1104 1090 -14 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.