0220e5d756
Pull in the refreshed linter and tooling configs (editorconfig, gitignore, gitattributes, prettierignore, prettierrc, markdownlint, yamllint, env.example, dotnet-tools) and run prettier and markdownlint in --fix / --write mode across the repo so the existing tree matches the new rules. - prettier 2-space indent on yaml/yml and json overrides, asterisk strong, underscore emphasis, proseWrap always - markdownlint MD007 indent aligned to 2 and MD049 to underscore so prettier output stays passing - preflight Block F also ignores CLAUDE.md (gitignored personal file) - prettierignore extended to keep HellionChat.yaml manifest and the NuGet packages.lock.json out of the formatter No semantic content changed; csharpier, build, full build-suite (729/729) and the new prettier/markdownlint/yamllint checks all green.
33 lines
1.2 KiB
Bash
Executable File
33 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# preflight.sh — pre-push gate. Blocks A/B/C verify config drift; Block D is a
|
|
# headless `dotnet build` to catch compile-time API drift; Block E runs
|
|
# `dotnet csharpier check` against HellionChat/; Block F runs markdownlint
|
|
# against the repo's *.md files. Test execution lives in the local Build-Suite
|
|
# repo and is NOT part of this preflight.
|
|
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
cd "$ROOT"
|
|
|
|
echo "==> preflight: Block A — version consistency"
|
|
./scripts/verify-version-consistency.sh
|
|
|
|
echo "==> preflight: Block B — manifest shape"
|
|
./scripts/verify-manifest-shape.sh
|
|
|
|
echo "==> preflight: Block C — changelog sync"
|
|
./scripts/verify-changelog-sync.sh
|
|
|
|
echo "==> preflight: Block D — plugin compile health"
|
|
dotnet build HellionChat/HellionChat.csproj --configuration Release --nologo --verbosity quiet
|
|
|
|
echo "==> preflight: Block E — csharpier reflow check"
|
|
dotnet csharpier check HellionChat/
|
|
|
|
echo "==> preflight: Block F — markdownlint"
|
|
# npx --yes avoids a global install; first run caches into ~/.npm/_npx/.
|
|
# Subsequent runs are sub-second.
|
|
npx --yes markdownlint-cli2 "**/*.md" "#node_modules" "#bin" "#obj" "#.claude" "#CLAUDE.md"
|
|
|
|
echo "==> preflight: ALL GREEN"
|