From cea5d62dabf7c6b050159167445808ec2d02c137 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 13 Apr 2026 09:56:38 +0200 Subject: [PATCH] Remove JSON sorting from lint workflow Removed JSON sorting steps from the lint workflow. --- .github/workflows/lint.yml | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ee20cd07d..cd4b506d6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -73,21 +73,6 @@ jobs: run: | find . -type f \( -name "*.sh" -o -name "run" \) -exec chmod +x {} \; - - name: Sort changed JSON files - run: | - set -euo pipefail - mapfile -t changed < <(git diff --name-only "$DIFF_RANGE" -- '*/*.json') - if [ "${#changed[@]}" -eq 0 ]; then - echo "No changed JSON files to sort." - exit 0 - fi - for file in "${changed[@]}"; do - if [ -f "$file" ]; then - tmp="$file.tmp" - jq --sort-keys . "$file" > "$tmp" && mv "$tmp" "$file" - fi - done - - name: Remove Super-Linter output (prevent checkout conflict) run: sudo rm -rf super-linter-output/ @@ -130,7 +115,7 @@ jobs: FIX_JSON: false FIX_MARKDOWN: true FIX_PYTHON_BLACK: true - FIX_PYTHON_ISORT: true + FIX_PYTHON_ISORT: false FIX_PYTHON_RUFF: true - name: Use 4 spaces in shell scripts @@ -139,15 +124,6 @@ jobs: chmod +x /usr/local/bin/shfmt find . -type f \( -name "*.sh" -o -name "run" \) -exec shfmt -w -i 4 -ci -bn -sr {} + - - name: Sort json files - run: | - set -euo pipefail - shopt -s nullglob - for file in */*.json; do - tmp="$file.tmp" - jq --sort-keys . "$file" > "$tmp" && mv "$tmp" "$file" - done - - name: Restore executable permissions run: | find . -type f \( -name "*.sh" -o -name "run" \) -exec chmod +x {} \;