mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
e577f16d01
These were accidentally left off the list of files checked before, because they don’t have `.sh` suffixes. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
24 lines
613 B
Bash
Executable File
24 lines
613 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2020 Frederic Martinsons
|
|
# Copyright 2024 Collabora Ltd.
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
set -eu
|
|
|
|
if [ -z "${G_TEST_SRCDIR-}" ]; then
|
|
me="$(readlink -f "$0")"
|
|
G_TEST_SRCDIR="${me%/*}"
|
|
fi
|
|
|
|
export TEST_NAME=shellcheck
|
|
export TEST_REQUIRES_TOOLS="git shellcheck"
|
|
|
|
run_lint () {
|
|
# Ignoring third-party directories that we don't want to parse
|
|
# shellcheck disable=SC2046
|
|
shellcheck $(git ls-files '*.sh' 'gio/completion/' | grep -Ev "glib/libcharset|glib/dirent|gitignore")
|
|
}
|
|
|
|
# shellcheck source=tests/lint-common.sh
|
|
. "$G_TEST_SRCDIR/lint-common.sh"
|