diff --git a/.swiftformat b/.swiftformat new file mode 100644 index 00000000..af6869c4 --- /dev/null +++ b/.swiftformat @@ -0,0 +1,4 @@ +--exclude .build +--disable sortedImports,blankLinesAtStartOfScope,blankLinesAtEndOfScope,unusedArguments,hoistPatternLet,numberFormatting,redundantRawValues,andOperator +--ifdef noindent +--ranges nospace diff --git a/Makefile b/Makefile index 0eaa1635..3075d9e0 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,7 @@ uninstall: rm -rf $(SHARE_PATH) format_code: - swiftformat Tests --wraparguments beforefirst --stripunusedargs closure-only --header strip --disable blankLinesAtStartOfScope - swiftformat Sources --wraparguments beforefirst --stripunusedargs closure-only --header strip --disable blankLinesAtStartOfScope + swiftformat . release: format_code sed -i '' 's|\(let version = try Version("\)\(.*\)\(")\)|\1$(VERSION)\3|' Sources/XcodeGen/main.swift