Skip to content

Commit b4ef243

Browse files
committed
Add workflow to check for warnOnImplicitThis
1 parent 579c56c commit b4ef243

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Check implicit this warnings"
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Check that implicit this warnings is enabled for all packs
11+
shell: bash
12+
run: |
13+
EXIT_CODE=0
14+
packs="$(find . -iname 'qlpack.yml')"
15+
for pack_file in ${packs}; do
16+
option="$(yq '.warnOnImplicitThis' ${pack_file})"
17+
if [ "${option}" != "true" ]; then
18+
echo "warnOnImplicitThis property must be set to 'true' for pack ${pack_file}"
19+
EXIT_CODE=1
20+
fi
21+
done
22+
exit "${EXIT_CODE}"

0 commit comments

Comments
 (0)