mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-11 21:26:44 +00:00
shellcheck flagged three `[[ cond ]] && B || C` chains in scripts/lint/autoformat.sh (ruff, shellcheck, mbake worker tails) as SC2015: if `B` exits non-zero, `C` runs even when the test was true. Rewrites each as `if [[ cond ]]; then B; else C; fi` so the success and failure branches stay disjoint. Reason: `make lint-shellcheck` aborted on these three info-level findings; production-profile lint runs treat them as failures. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Lint Scripts
This directory contains scripts that run repository lint checks.
- 🧹 Execute focused lint checks for workflows, Ansible, Python, and shell scripts
- 🔎 Keep lint entry points small, explicit, and callable from
make - ✅ Separate lint execution from tool installation and environment bootstrap
The scope of this folder is lint execution.
Tool installation belongs in scripts/install, while build and test workflows should stay in their dedicated script directories.