# ShellCheck configuration for the Salam tools/bash/*.sh scripts (POSIX sh).
#
# These scripts are written for /bin/sh and deliberately rely on word
# splitting and globbing that ShellCheck flags by default. The disables below
# are intentional design choices, not unreviewed noise:
#
#   SC2086 - unquoted $def / $LANGS / --lang=$lang: splitting is load-bearing
#            (e.g. passing several -D flags or iterating multiple languages);
#            POSIX sh has no arrays to express this otherwise.
#   SC2231 - unquoted glob in `for f in tests/$lang/general/*.salam`: $lang is
#            a controlled value (en|fa) with no spaces; the glob must expand.
#   SC1091 - "Not following: lib.sh": ShellCheck can't resolve the sourced
#            helper at lint time; it is present and correct at runtime.
#   SC2016 - single-quoted `sh -c '...'` scripts (e.g. run-tests.sh's xargs
#            batch runner) deliberately splice outer-shell variables via
#            '"$VAR"' so they expand once, before the inner shell sees them;
#            the script's own $1/$2/... are meant to stay unexpanded there.
disable=SC2086,SC2231,SC1091,SC2016
