nicklockwood / SwiftFormat

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

Fix `--nilInit insert` being applied to computed property #1735

Closed rakuyoMo closed 2 weeks ago

rakuyoMo commented 2 weeks ago

Fixed

This PR mainly fixes the following issues:

Also I fixed some test case errors related to --nilInit insert.

codecov[bot] commented 2 weeks ago

Codecov Report

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

Project coverage is 96.11%. Comparing base (dd989a4) to head (836d8d7). Report is 11 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1735 +/- ## =========================================== + Coverage 95.21% 96.11% +0.90% =========================================== Files 20 20 Lines 22882 23973 +1091 =========================================== + Hits 21786 23041 +1255 + Misses 1096 932 -164 ```

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