mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-11-18 20:15:11 +00:00
create swiftformat config
This commit is contained in:
1 parent
2b89481362
commit
ac3ba77d07
2 files changed
+5
-2
No files matched your search
@@ -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