Skip to content

fix: burn down ShellCheck baseline in core CLI (#8)#13

Merged
montoyaedu merged 1 commit into
masterfrom
chore/issue-8-shellcheck-cleanup
May 18, 2026
Merged

fix: burn down ShellCheck baseline in core CLI (#8)#13
montoyaedu merged 1 commit into
masterfrom
chore/issue-8-shellcheck-cleanup

Conversation

@montoyaedu
Copy link
Copy Markdown
Member

Summary

Follow-up to #6. When ShellCheck was introduced, the core CLI had ~60 pre-existing findings; #6 fixed only the real errors and baselined the rest with file-level # shellcheck disable= directives. This PR burns down that baseline — fixing the findings for real and removing every directive.

Done after #7 landed, so the bats suite is a safety net for the easy/proxy.sh dispatcher changes.

Changes

File Findings fixed
easy SC2046/SC2086 (quote command subs, $EASY_*_DIR args, $DATE), SC2155 (split export EASY_DIR=$(...)), SC2164 (cd "$D" || return 1 — was a latent bug), SC1001 (grep '"version":'), SC1090 (# shellcheck source=/dev/null)
commands/proxy.sh SC2086 (quoting), SC2155 (split local X=$(...)), SC2046 (quote id=$(...)), SC2124 ("$*" instead of "${@}"), SC2181 (if CONTAINER_ID=$(docker run ...) instead of an indirect $? check)
configure-local-devenv SC2155 (split export EASY_HOME=$(pwd))
easyhome/add_domain · add_subdomain_http · add_subdomain_https SC2086 (quote $1/$2/$3)

No # shellcheck disable= baseline directives remain.

Test plan

npm run lint    # exits 0, no findings, no baseline directives
bats test/      # 16/16 pass — no behavior regressions
bash -n <each file>   # syntax OK

The pre-push hook (lint + bats) passed on push — git push now works without --no-verify.

Closes #8

🤖 Generated with Claude Code

Follow-up to #6. Fix the ShellCheck findings baselined in #6 for real
and remove every `# shellcheck disable=` directive.

- easy: SC2046/SC2086 quoting (command subs, $EASY_*_DIR args, $DATE);
  SC2155 (split `export EASY_DIR=$(...)`); SC2164 (`cd "$D" || return`);
  SC1001 (`grep '"version":'`); SC1090 (`# shellcheck source=/dev/null`)
- commands/proxy.sh: SC2086 quoting; SC2155 (split `local X=$(...)`);
  SC2046 (quote `id=$(...)`); SC2124 (`"$*"` instead of `"${@}"`);
  SC2181 (`if CONTAINER_ID=$(docker run ...)` instead of a `$?` check)
- configure-local-devenv: SC2155 (split `export EASY_HOME=$(pwd)`)
- easyhome/add_domain, add_subdomain_http, add_subdomain_https: SC2086

`npm run lint` exits 0 with no baseline directives remaining; the #7
bats suite still passes 16/16.

Closes #8

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@montoyaedu montoyaedu merged commit 9e95ccf into master May 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ShellCheck cleanup: fix baselined warnings in core CLI (follow-up to #6)

1 participant