From 4408f23c68824b394d262c4eb5304a15a9b33b48 Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Thu, 17 Sep 2026 23:04:44 +0200 Subject: [PATCH] chore(shellcheck): annotate nameref inputs --- scripts/test-managed-install.sh | 2 ++ scripts/test-plugin-selection.sh | 2 ++ scripts/uninstall.sh | 1 + 3 files changed, 5 insertions(+) diff --git a/scripts/test-managed-install.sh b/scripts/test-managed-install.sh index 55d28a9..1d40262 100755 --- a/scripts/test-managed-install.sh +++ b/scripts/test-managed-install.sh @@ -96,7 +96,9 @@ cp "$package/skills/example/SKILL.md" "$legacy/skills/example/SKILL.md" printf 'customized' > "$legacy/skills/example/custom.md" printf 'foreign' > "$legacy/skills/example/foreign.md" declare -A legacy_manifest +# shellcheck disable=SC2034 legacy_manifest[skills/example/SKILL.md]=$(sha256_of_file "$legacy/skills/example/SKILL.md") +# shellcheck disable=SC2034 legacy_manifest[skills/example/custom.md]=$(printf '0%.0s' {1..64}) write_managed_manifest "$(manifest_path "$legacy")" legacy_manifest mapfile -t targets < <(get_install_targets "$generated" "$test_home" bash codex) diff --git a/scripts/test-plugin-selection.sh b/scripts/test-plugin-selection.sh index 10d582d..113148a 100755 --- a/scripts/test-plugin-selection.sh +++ b/scripts/test-plugin-selection.sh @@ -11,6 +11,7 @@ done root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd) . "$root/scripts/lib/plugins.sh" +# shellcheck disable=SC2034 names=(A B C) checked=(true false true) toggle_log=$(mktemp) @@ -35,6 +36,7 @@ if diagnostics=$(summary=true run_plugin_command false test_plugin_output fail 2 exit 1 fi [[ "$diagnostics" == *'download progress'* ]] && [[ "$diagnostics" == *'WARN test warning'* ]] +# shellcheck disable=SC2034 selected=() plugin_installed() { printf 'Empty selection must not query installed plugins.\n' >&2; exit 1; } run_plugin_command() { printf 'Empty selection must not run commands.\n' >&2; exit 1; } diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh index 0fac874..1807a67 100644 --- a/scripts/uninstall.sh +++ b/scripts/uninstall.sh @@ -69,6 +69,7 @@ for target_pair in "${targets[@]}"; do fi done +# shellcheck disable=SC2034 selected_plugins=() sync_configured_plugins "$root" "$client" "$home_path" "$dry_run" false selected_plugins "$summary" sync_semantic_retrieval "$root" "$client" "$home_path" false "$dry_run" false "$summary"