#!/usr/bin/env bash set -o errexit set -o nounset set -o pipefail # Default log level # shellcheck disable=SC2034 LOG_LEVEL="DEBUG" # shellcheck source=/dev/null source "lib/functions/log.sh" # shellcheck source=/dev/null source "lib/functions/output.sh" TEMP_WORKSPACE="$(pwd)/super-linter-output" function InitWorkspace() { CleanupWorkspace mkdir -p "${TEMP_WORKSPACE}" } function CleanupWorkspace() { rm -rf "${TEMP_WORKSPACE}" } function CheckIfFileDiff() { local INPUT_FILE="${1}" local EXPECTED_FILE="${2}" # Remove eventual HTML comments from the expected file because we use them to disable certain linter rules if ! diff "${INPUT_FILE}" <(grep -vE '^\s*