nicklockwood / SwiftFormat

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

Change `removeStartOrEndBlankLinesFromTypes` option to `includeStartOrEndBlankLinesFromTypes` #1745

Open ngimelliUW opened 3 days ago

ngimelliUW commented 3 days ago

Currently typeblanklines only has support for removing and preserving. However, in some cases (i.e. adding a line at the beginning of scope), developers may want to enforce always typing a blank line.

Therefore, we should rework the removeStartOrEndBlankLinesFromTypes option to be whether or not to include these lines. Then we can add always and preserve as true values, and remove as a false value.