mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2025-01-07 14:02:56 +03:00
create swiftformat config
This commit is contained in:
parent
2b89481362
commit
ac3ba77d07
4
.swiftformat
Normal file
4
.swiftformat
Normal file
@ -0,0 +1,4 @@
|
||||
--exclude .build
|
||||
--disable sortedImports,blankLinesAtStartOfScope,blankLinesAtEndOfScope,unusedArguments,hoistPatternLet,numberFormatting,redundantRawValues,andOperator
|
||||
--ifdef noindent
|
||||
--ranges nospace
|
3
Makefile
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user