Przeglądaj źródła

Pass swiftformat --exclude once per path so submodule exclusion works on 0.47.11

The pinned SwiftFormat 0.47.11 doesn't split a single --exclude argument
on commas — it treats the whole string as one literal path token, so
the combined "Pods,Generated,...,LibreLoop,..." form silently
matched nothing. Every submodule was being reformatted on each Trio
build. Switch to one --exclude flag per path; that form is unambiguous
across SwiftFormat versions.
trioneer 2 tygodni temu
rodzic
commit
c204505601
1 zmienionych plików z 19 dodań i 15 usunięć
  1. 19 15
      scripts/swiftformat.sh

+ 19 - 15
scripts/swiftformat.sh

@@ -97,18 +97,22 @@ trailingClosures \
 --typeattributes same-line \
 --varattributes same-line \
 --wrapcollections before-first \
---exclude Pods, Generated, \
-  R.generated.swift, \
-  fastlane/swift, \
-  Dependencies,  \
-  LoopKit,  \
-  LibreTransmitter, \
-  G7SensorKit, \
-  dexcom-share-client-swift, \
-  CGMBLEKit, \
-  RileyLinkKit, \
-  MinimedKit, \
-  TidepoolService, \
-  DanaKit, \
-  MedtrumKit, \
-  OmnipodKit
+--exclude Pods \
+--exclude Generated \
+--exclude R.generated.swift \
+--exclude fastlane/swift \
+--exclude Dependencies \
+--exclude LoopKit \
+--exclude LibreTransmitter \
+--exclude G7SensorKit \
+--exclude dexcom-share-client-swift \
+--exclude CGMBLEKit \
+--exclude RileyLinkKit \
+--exclude MinimedKit \
+--exclude TidepoolService \
+--exclude DanaKit \
+--exclude MedtrumKit \
+--exclude OmnipodKit \
+--exclude LibreLoop \
+--exclude LibreCRKit \
+--exclude LoopAlgorithm