Skip to content

Forward parameters to acclint/acceptance-lint, add bundlelock alias#192

Open
chrisdebian wants to merge 1 commit into
LandRegistry:developfrom
chrisdebian:fix/145-acclint-params-and-bundlelock
Open

Forward parameters to acclint/acceptance-lint, add bundlelock alias#192
chrisdebian wants to merge 1 commit into
LandRegistry:developfrom
chrisdebian:fix/145-acclint-params-and-bundlelock

Conversation

@chrisdebian

Copy link
Copy Markdown

Closes #145.

acceptance-lint/acclint ran run_linting.sh with no way to pass extra arguments through — unlike acctest/acceptance-test right next to them, which already forward "${@:2}". This brings them into line, so linting scripts can accept flags (e.g. auto-fix) the same way test scripts accept cucumber args. No-argument invocations are unchanged (verified with a mock run/ex harness before opening this).

bundlelock is a new alias, following the existing ex/manage() pattern:

function bundlelock(){
    ex ${1} bundle lock "${@:2}"
}

Runs bundle lock in the container, updating Gemfile.lock; optionally pass gem names to scope the update to just those gems, per the issue's ask.

Both new/changed forwards use quoted "${@:2}" rather than the unquoted ${@:2} style used elsewhere in this file (e.g. manage()) — deliberately, to avoid the word-splitting bug that turned out to be the real cause of #180 (see LandRegistry/skeleton-acceptance-tests#33 for the full trace).

Testing: bash -n syntax-checked; behaviour verified with mock run/ex functions standing in for the real docker-compose-backed ones (I don't have a running app container to exercise this against for real).

…lias

acceptance-lint and acclint ran run_linting.sh with no way to pass
extra arguments through, unlike acctest/acceptance-test next to them
which already forward "${@:2}". Bring them into line so linting
scripts can accept flags (e.g. auto-fix) the same way test scripts
accept cucumber args.

Also adds a bundlelock alias, following the same ex/manage() pattern,
to run `bundle lock` in a container - optionally scoped to specific
gem names to update just those.

Closes LandRegistry#145.
@chrisdebian chrisdebian mentioned this pull request Jul 8, 2026
3 tasks
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.

1 participant