mirror of
https://github.com/home-assistant/iOS.git
synced 2026-06-16 13:26:27 -05:00
## Summary Swift lint and swiftformat are outdated. This PR does update those + applies the new formatting form swiftformat. There is 1 swift file with a manual change: `Sources/Vehicle/Templates/Areas/CarPlayAreasViewModel.swift`. This is done because `swiftlint` did create the following swiftlint error: `error: Cyclomatic Complexity Violation: Function should have complexity 10 or less; currently complexity is 11 (cyclomatic_complexity)`. Because it does change a lot of files the question is if we want to finetune the `swiftformat` rules. ## Screenshots No user facing changes. ## Link to pull request in Documentation repository NA ## Any other notes NA
24 lines
430 B
Plaintext
24 lines
430 B
Plaintext
--swiftversion 5.8
|
|
|
|
--exclude vendor,Pods,**/Swiftgen/**,**/Resources/**,fastlane,**/Assets/**
|
|
|
|
--wraparguments before-first
|
|
--wrapparameters before-first
|
|
--wrapcollections before-first
|
|
--closingparen balanced
|
|
|
|
--stripunusedargs closure-only
|
|
|
|
--ifdef no-indent
|
|
|
|
--disable wrapMultilineStatementBraces
|
|
|
|
--maxwidth 120
|
|
|
|
--self init-only
|
|
--guardelse same-line
|
|
--header strip
|
|
--disable redundantRawValues
|
|
--disable trailingclosures
|
|
|