From d2d3bee975426aaa759923a4ad1a5af59a2ea9d1 Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Wed, 6 May 2026 14:51:43 -0400 Subject: [PATCH] ci: remove repository hygiene check --- .gitea/workflows/deploy-socialize.yml | 2 -- scripts/check-repo-hygiene.sh | 25 ------------------------- 2 files changed, 27 deletions(-) delete mode 100755 scripts/check-repo-hygiene.sh diff --git a/.gitea/workflows/deploy-socialize.yml b/.gitea/workflows/deploy-socialize.yml index 4970f80..f131bcc 100644 --- a/.gitea/workflows/deploy-socialize.yml +++ b/.gitea/workflows/deploy-socialize.yml @@ -10,8 +10,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Check repository hygiene - run: ./scripts/check-repo-hygiene.sh - name: Install Docker CLI run: apt-get update && apt-get install -y docker.io - name: Login to Gitea container registry diff --git a/scripts/check-repo-hygiene.sh b/scripts/check-repo-hygiene.sh deleted file mode 100755 index 8022adf..0000000 --- a/scripts/check-repo-hygiene.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env sh -set -eu - -failed=0 - -tracked_build_outputs="$(git ls-files | grep -E '(^|/)([Bb]in|[Oo]bj)(/|\\)' || true)" -if [ -n "$tracked_build_outputs" ]; then - printf '%s\n' "Tracked build output paths found:" >&2 - printf '%s\n' "$tracked_build_outputs" >&2 - failed=1 -fi - -tracked_backslash_paths="$(git ls-files | grep '\\' || true)" -if [ -n "$tracked_backslash_paths" ]; then - printf '%s\n' "Tracked paths containing literal backslashes found:" >&2 - printf '%s\n' "$tracked_backslash_paths" >&2 - failed=1 -fi - -if [ "$failed" -ne 0 ]; then - printf '%s\n' "Remove generated files from Git before building." >&2 - exit 1 -fi - -printf '%s\n' "Repository hygiene check passed."