mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
Use SwiftFormat from develop and enabled indent-blank-lines option.
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
--commas inline
|
--commas inline
|
||||||
--ifdef no-indent
|
--ifdef no-indent
|
||||||
--indent 4
|
--indent 4
|
||||||
|
--indent-blank-lines enabled
|
||||||
--nospaceoperators ...,..<
|
--nospaceoperators ...,..<
|
||||||
--stripunusedargs closure-only
|
--stripunusedargs closure-only
|
||||||
--trimwhitespace nonblank-lines
|
--trimwhitespace nonblank-lines
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ struct SetupProject: ParsableCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func brewInstall() throws {
|
func brewInstall() throws {
|
||||||
try Zsh.run(command: "brew install xcodegen swiftgen swiftformat git-lfs sourcery mint pkl kiliankoe/formulae/swift-outdated localazy/tools/localazy peripheryapp/periphery/periphery")
|
try Zsh.run(command: "brew install xcodegen swiftgen git-lfs sourcery mint pkl kiliankoe/formulae/swift-outdated localazy/tools/localazy peripheryapp/periphery/periphery")
|
||||||
|
|
||||||
|
// Install swiftformat from develop (for now), making sure to avoid conflicts with an existing versioned installation.
|
||||||
|
try Zsh.run(command: "source ci_scripts/ci_common.sh && install_swiftformat_head")
|
||||||
}
|
}
|
||||||
|
|
||||||
func mintPackagesInstall() throws {
|
func mintPackagesInstall() throws {
|
||||||
|
|||||||
@@ -15,7 +15,15 @@ setup_github_actions_environment() {
|
|||||||
unset HOMEBREW_NO_INSTALL_FROM_API
|
unset HOMEBREW_NO_INSTALL_FROM_API
|
||||||
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
|
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
|
||||||
|
|
||||||
brew update && brew install xcodegen swiftlint swiftformat git-lfs pkl a7ex/homebrew-formulae/xcresultparser
|
brew update && brew install xcodegen swiftlint git-lfs pkl a7ex/homebrew-formulae/xcresultparser
|
||||||
|
install_swiftformat_head
|
||||||
|
}
|
||||||
|
|
||||||
|
install_swiftformat_head() {
|
||||||
|
if brew list --versions swiftformat &>/dev/null && ! brew list --versions swiftformat | grep -q HEAD; then
|
||||||
|
brew uninstall swiftformat
|
||||||
|
fi
|
||||||
|
brew install swiftformat --HEAD
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_github_actions_translations_environment() {
|
setup_github_actions_translations_environment() {
|
||||||
|
|||||||
Reference in New Issue
Block a user