1
0
Fork 0

Re-point plugins and re-enable lint gate (E6/E7)

E6: remove build-tool plugin (architecturally incompatible with the
monorepo-only CLI); rewrite the command plugin as a thin pass-through to
swift-gtk-gen.

E7: add swift-format as a dependency, format generated output in-process
before writeIfChanged, re-enable swift format lint --strict in
compile-gate.sh. CamelCase renderer identifiers (enum/bitfield cases,
signal trampoline names, _sgtk_* helpers, __result/__ptr temporaries,
hardcoded G_TYPE_* GValue constants) and drop generated block comments to
reach zero lint findings across all 6 tiers.
This commit is contained in:
Brendan Szymanski 2026-07-20 23:44:49 -04:00
parent 525aefa7aa
commit 57ff84bce5
9 changed files with 194 additions and 285 deletions

View file

@ -59,7 +59,7 @@ run_tier() {
mkdir -p "$out"
echo "==> Tier $tier: generating into $out"
if ! "$BIN" --monorepo-config "$config" --output "$out" --skip-report >"$out/generate.log" 2>&1; then
if ! "$BIN" --monorepo-config "$config" --output "$out" --skip-report --format-config "$ROOT/.swift-format" >"$out/generate.log" 2>&1; then
echo "!! tier $tier: GENERATION FAILED (see $out/generate.log)" >&2
tail -n 20 "$out/generate.log" >&2
return 1
@ -72,6 +72,13 @@ run_tier() {
return 1
fi
echo "==> Tier $tier: swift format lint"
if ! swift format lint --strict --configuration "$ROOT/.swift-format" --recursive --parallel "$out/Sources" >"$out/lint.log" 2>&1; then
echo "!! tier $tier: LINT FAILED (see $out/lint.log)" >&2
head -n 40 "$out/lint.log" >&2
return 1
fi
local baseline="$ROOT/docs/skip-baseline/tier${tier}"
if [[ -d "$baseline" ]]; then
echo "==> Tier $tier: diffing skip reports against $baseline"