commit:     2ec1fb9a9a8f68415f0b6f46e161ead568623585
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Oct 14 09:22:54 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 14 12:59:10 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=2ec1fb9a

Remedy false positives in categories SC2329 and SC3062

Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 functions.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/functions.sh b/functions.sh
index ed049c1..53c35ae 100644
--- a/functions.sh
+++ b/functions.sh
@@ -51,6 +51,7 @@ case ${KSH_VERSION} in 'Version AJM 93'*)
        return 1
 esac
 
+# shellcheck disable=3062
 if [ "${YASH_VERSION}" ] && [ -o posixlycorrect ]; then
        # The yash shell disables the local builtin in its POSIXly-correct mode.
        warn "gentoo-functions does not support yash in posixlycorrect mode"
@@ -839,7 +840,7 @@ _should_throttle()
 {
        _update_time || return
 
-       # shellcheck disable=2317
+       # shellcheck disable=2329
        _should_throttle()
        {
                _update_time || return

Reply via email to