mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove shellcheck ignore list
This commit is contained in:
parent
8e44b59251
commit
b8979a939c
@ -4,16 +4,8 @@ set -eu
|
|||||||
|
|
||||||
REPO_ROOT="$(dirname "$0")"/../..
|
REPO_ROOT="$(dirname "$0")"/../..
|
||||||
REPO_ROOT=$(realpath "${REPO_ROOT}")
|
REPO_ROOT=$(realpath "${REPO_ROOT}")
|
||||||
IGNORE_FILENAME="ignore.txt"
|
|
||||||
IGNORE_FILE="${REPO_ROOT}/scripts/chk_shellscripts/${IGNORE_FILENAME}"
|
|
||||||
|
|
||||||
FOUND_FILES_TMP=$(mktemp)
|
|
||||||
IGNORE_FILES_TMP=$(mktemp)
|
|
||||||
trap 'rm -f ${FOUND_FILES_TMP} ; rm -f ${IGNORE_FILES_TMP}' EXIT
|
|
||||||
|
|
||||||
sort < "${IGNORE_FILE}" >"${IGNORE_FILES_TMP}"
|
|
||||||
cd "${REPO_ROOT}"
|
cd "${REPO_ROOT}"
|
||||||
find . -type f -name "*.sh" | sort >"${FOUND_FILES_TMP}"
|
|
||||||
|
|
||||||
SHELLCHECK=${SHELLCHECK:-"$(command -v -- shellcheck)"}
|
SHELLCHECK=${SHELLCHECK:-"$(command -v -- shellcheck)"}
|
||||||
if [ ! -f "${SHELLCHECK}" ]; then
|
if [ ! -f "${SHELLCHECK}" ]; then
|
||||||
@ -21,7 +13,5 @@ if [ ! -f "${SHELLCHECK}" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FILES=$(join -v2 "${IGNORE_FILES_TMP}" "${FOUND_FILES_TMP}")
|
mapfile -t FILES < <(find . -type f -name "*.sh")
|
||||||
|
"${SHELLCHECK}" "${FILES[@]}"
|
||||||
# shellcheck disable=SC2086
|
|
||||||
"${SHELLCHECK}" ${FILES[*]}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user