mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Enable checks for implicit this warnings
This commit is contained in:
11
.github/workflows/check-implicit-this.yml
vendored
11
.github/workflows/check-implicit-this.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user