Chore: fix shellchecks (#83421)

This commit is contained in:
Stephanie Hingtgen 2024-02-26 08:59:55 -08:00 committed by GitHub
parent b3363543ea
commit e295c38a6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -17,7 +17,15 @@ while IFS=" " read -r -a package; do
CURRENT="./pr/$PACKAGE_PATH"
# Temporarily skipping these packages as they don't have any exposed static typing
if [[ ${SKIP_PACKAGES[@]} =~ "$PACKAGE_PATH" ]]; then
SKIP_PACKAGE_FOUND=0
for skip_pkg in "${SKIP_PACKAGES[@]}"; do
if [[ "$PACKAGE_PATH" == "$skip_pkg" ]]; then
SKIP_PACKAGE_FOUND=1
break
fi
done
if [[ $SKIP_PACKAGE_FOUND -eq 1 ]]; then
continue
fi

View File

@ -15,7 +15,7 @@ CLASSNAME_PROP="$(grep -r -o -E --include="*.ts*" "\.*.className=\W.*\W.*" publi
EMOTION_IMPORTS="$(grep -r -o -E --include="*.ts*" --exclude="*.test*" "\{.*css.*\} from '@emotion/css'" public/app | wc -l)"
TS_FILES="$(find public/app -type f -name "*.ts*" -not -name "*.test*" | wc -l)"
TOTAL_BUNDLE="$(du -sk $BUILD_FOLDER | cut -f1)"
TOTAL_BUNDLE="$(du -sk "$BUILD_FOLDER" | cut -f1)"
OUTDATED_DEPENDENCIES="$(yarn outdated --all | grep -oP '[[:digit:]]+ *(?= dependencies are out of date)')"
## Disabled due to yarn PnP update breaking npm audit
#VULNERABILITY_AUDIT="$(yarn npm audit --all --recursive --json)"