We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 579c56c commit b4ef243Copy full SHA for b4ef243
.github/workflows/check-implicit-this.yml
@@ -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