mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
create swiftformat config
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
--exclude .build
|
||||
--disable sortedImports,blankLinesAtStartOfScope,blankLinesAtEndOfScope,unusedArguments,hoistPatternLet,numberFormatting,redundantRawValues,andOperator
|
||||
--ifdef noindent
|
||||
--ranges nospace
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user