chore(rules): track shared-rules baseline v1.1.0

This commit is contained in:
Mihaela 2026-07-02 21:40:13 +02:00
parent ebf2e2477c
commit f5fefc7d21
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# Managed by rules-swift (scripts/sync-rules.sh). Verifies this repo tracks the
# CURRENT shared-rules baseline. The repo's own .swiftformat/.swiftlint.yml are
# repo-specific (baseline + project rules) and are intentionally NOT byte-checked.
name: rules-conformance
on:
push:
pull_request:
workflow_dispatch:
jobs:
rules:
runs-on: macos
steps:
- uses: actions/checkout@v4
- name: Rules baseline freshness (VERSION)
run: |
BASE=https://codeberg.org/Mihaela/rules-swift/raw/branch/main
canon=$(curl -fsSL "$BASE/VERSION" | tr -d '[:space:]')
mine=$(tr -d '[:space:]' < .rules-version 2>/dev/null || echo MISSING)
if [ "$mine" != "$canon" ]; then
echo "STALE: shared-rules baseline is v$canon, this repo tracks v$mine."
echo "Review the baseline diff, fold it into this repo's rules, then set .rules-version to $canon."
exit 1
fi
echo "rules baseline FRESH at v$canon (repo-specific rules preserved, not checked)"

1
.rules-version Normal file
View File

@ -0,0 +1 @@
1.1.0