nicklockwood / SwiftFormat

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

Using --typeblanklines option for the rule blankLinesAtStartOfScope will fail the build #1240

Closed dimic-milos closed 2 years ago

dimic-milos commented 2 years ago

Build fails with error: Unknown option --typeblanklines. Did you mean --typemark? in configuration file. when adding the option typeblanklines preserve

xCode Version 13.4.1 (13F100) SwiftFormat import as SPM .package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.49.0") and integrated via BuildTools Apple M1 Pro

Other rules behave as expected.

Config file is:

--swiftversion 4.2

--exclude **/BuildTools

--self insert
--wraparguments before-first
--marktypes never
--typeblanklines preserve
--disable trailingCommas
--enable redundantReturn
--enable markTypes
nicklockwood commented 2 years ago

@dimic-milos try changing 0.49.0 to 0.49.14 in your package import.

dimic-milos commented 2 years ago

Thanks, works fine with 0.49.14