Files
openclaw/scripts/lint-swift.sh
Peter Steinberger 62bd760c0e chore(swift): enforce current formatting and lint rules (#103313)
* style: apply SwiftFormat 0.62.1 rules

Refs #103202

* ci: enforce deterministic Swift lint

Refs #103202

* refactor: keep gateway connect lint-clean

Refs #103202

* style: keep iOS typography checks warning-free

* ci: route MLX Swift changes through pre-push

* fix: preserve native i18n extraction after Swift cleanup

* refactor: keep rebased Swift surfaces lint-clean

* style: format latest Swift additions

* chore: refresh native i18n inventory

* style: keep generated Swift formatter-clean

* fix: preserve node route invalidation callbacks

* fix: keep native translation IDs stable

* fix: retain native translation identifiers

* fix: preserve translations across Swift source moves
2026-07-10 11:54:08 +01:00

32 lines
577 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "$0")/.." && pwd)"
cd "$repo_root"
scope="${1:-all}"
if [[ "$scope" != "all" && "$scope" != "ios" && "$scope" != "macos" ]]; then
echo "usage: $0 [ios|macos]" >&2
exit 2
fi
./scripts/check-swift-tools.sh swiftlint
if [[ "$scope" != "ios" ]]; then
swiftlint lint --strict --config config/swiftlint.yml
(
cd apps/swabble
swiftlint lint --strict --config .swiftlint.yml
)
fi
if [[ "$scope" == "macos" ]]; then
exit 0
fi
(
cd apps/ios
swiftlint lint --strict --config .swiftlint.yml
)