commit:     d5e2aac1af233909571fb6c2f4c8ffd4e67fbea8
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sun Jul 20 05:38:17 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jul 22 22:30:53 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=d5e2aac1

isolated-functions.sh: mute two instances of SC2185 that are false-positives

Presently, there are two implementations of find0(), one of which serves
to cover situations where the -files0-from option is unavailable,
thereby retaining compatibility with the outdated GitHub CI environment.

Presently, both the preferred implementation and the test that
determines which implementation to use raise spurious SC2185 warnings,
because shellcheck is unaware of the option and its purpose. Mute this
warning code for the entirety of the "isolated-functions.sh" unit.

Link: https://www.shellcheck.net/wiki/SC2185
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/isolated-functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index ed66dcbe48..54b86687a5 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
-# shellcheck disable=SC2128
+# shellcheck disable=2128,2185
 
 source "${PORTAGE_BIN_PATH:?}/eapi.sh" || exit
 

Reply via email to