Merge branch 'main' of https://gitea.federated.computer/Federated_Computer/coredesktop
shellcheck / shellcheck (push) Successful in 13s

Brings in the shellcheck lint and bats tests. Both sides fixed the same
shellcheck warnings; this keeps the remote's versions of 20-aur.sh,
80-gnome-extensions.sh and .shellcheckrc, which silence false positives
per line rather than for the whole repo.

The Gitea workflow now runs make lint, so it checks the same scripts as
the Makefile, and the README points contributors at make check. The test
helper's REPO, used only by the .bats files, is marked for shellcheck,
and the update test expects the pull to be fast-forward only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 07:25:07 -06:00
co-authored by Claude Opus 5.5
17 changed files with 468 additions and 27 deletions
+3 -8
View File
@@ -1,4 +1,4 @@
# Check every bash script with shellcheck (settings in .shellcheckrc)
# Check every bash script with shellcheck: make lint (settings in .shellcheckrc)
name: shellcheck
on: [push, pull_request]
@@ -12,11 +12,6 @@ jobs:
run: |
SUDO=$(command -v sudo || true)
$SUDO apt-get update -q
$SUDO apt-get install -y -q shellcheck
$SUDO apt-get install -y -q shellcheck make
- name: Run shellcheck
run: |
git ls-files -z | while IFS= read -r -d '' f; do
[ -L "$f" ] && continue
case "$f" in *.sh|*.conf) echo "$f"; continue ;; esac
head -n 1 "$f" | grep -q '^#!.*bash' && echo "$f"
done | xargs -d '\n' shellcheck -S warning
run: make lint