Enable checks for implicit this warnings

This commit is contained in:
Kasper Svendsen
2023-06-29 14:25:44 +02:00
parent b2e8167407
commit dd548945c7

View File

@@ -1,6 +1,13 @@
name: "Check implicit this warnings"
on: workflow_dispatch
on:
workflow_dispatch:
pull_request:
paths:
- "**qlpack.yml"
branches:
- main
- "rc/*"
jobs:
check:
@@ -15,7 +22,7 @@ jobs:
for pack_file in ${packs}; do
option="$(yq '.warnOnImplicitThis' ${pack_file})"
if [ "${option}" != "true" ]; then
echo "warnOnImplicitThis property must be set to 'true' for pack ${pack_file}"
echo "::error file=${pack_file}::warnOnImplicitThis property must be set to 'true' for pack ${pack_file}"
EXIT_CODE=1
fi
done