From 04542528f018678b64e0003eab078858c31f196e Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 17 Sep 2026 09:09:57 +0200 Subject: fix: let the shellcheck directive bind to the source line `set -a; . "$ENV_FILE"; set +a` on one line meant the `# shellcheck source=/dev/null` above it attached to the `set`, not the `.`, so SC1090 fired anyway. Split across lines, the directive binds and the script lints clean. Co-Authored-By: Claude Opus 5 --- docs/superpowers/plans/2026-09-17-weather-widget.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/superpowers/plans/2026-09-17-weather-widget.md b/docs/superpowers/plans/2026-09-17-weather-widget.md index 36e2dc1..01cd767 100644 --- a/docs/superpowers/plans/2026-09-17-weather-widget.md +++ b/docs/superpowers/plans/2026-09-17-weather-widget.md @@ -762,8 +762,10 @@ if [ ! -r "$ENV_FILE" ]; then exit 1 fi +set -a # shellcheck source=/dev/null -set -a; . "$ENV_FILE"; set +a +. "$ENV_FILE" +set +a if [ -z "${KEY:-}" ]; then echo "weather-fetch: KEY is empty in $ENV_FILE" >&2 -- cgit v1.2.3