You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(shellcheck): drop SC2086 in demoLibrary.source (C3b)
PR C3b of the ratchet cleanup. Closes the file-level SC2086 disable
for docker/scripts/demoLibrary.source via shellcheck's `-f diff`
auto-fix (filtered with `-e SC2006,SC2155` so the diff covers only
SC2086 hunks; C3a owns the SC2006 + SC2155 work and is in flight
as a parallel PR).
Auto-fix changes (72 sites):
Pattern is uniformly mechanical quoting -- `${1}` -> `"${1}"`,
`$MYSQLIP` -> `"$MYSQLIP"`, etc. Most are inside docker / mysql /
mysqladmin command lines, where each `${...}` is a single arg
(cluster name, password, image string) -- safe to quote without
changing behavior. No intentional-word-split sites in this file
(unlike $rpassparam in demo_build.sh and $EXTRA_ARGS in test.sh
which needed inline disables in C2).
File-level disable on demoLibrary.source:
- Trimmed from `disable=SC2086,SC2006,SC2155` to `disable=SC2006`.
(The 4 SC2006 backtick sites + the 4 SC2155 sites they mask
are still here pending C3a's land.) Once C3a lands and is
merged, the directive becomes empty and can be removed entirely.
Verification:
- `shellcheck --check-sourced --external-sources` repo-wide -- clean.
- `./tools/build-tests/test.sh` -- 7/7 PASS.
- `./tools/auto-derive/fixtures-and-tests/test.sh` -- 8/8 PASS.
Coordination with C3a:
Both PRs touch the same file-level `# shellcheck disable=...` line.
Whichever lands second will rebase and re-apply its directive
edit (or it'll be a trivial 3-way merge -- both PRs trim entries
from the same comma-separated list).
State after both C3a and C3b land:
- .shellcheckrc: zero `disable=` lines (just `external-sources=true`)
- demoLibrary.source file-level directive: removed entirely
- Full repo is shellcheck-clean.
Refs: openemr#146 (parent), openemr#149 + openemr#150 + openemr#151 + openemr#152 (prior ratchet PRs), openemr#156 (C3a)
Assisted-by: Claude Code
0 commit comments