Commit bed76156 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(tools/check_qml): update it to support `.js` files

parent ac5e620e
#!/usr/bin/sh
# ====================================================================
# Tool to check the syntax of `.qml` files.
# Tool to check the syntax of `.qml`/`.js` files.
# ====================================================================
RESOURCES_FILE="resources.qrc"
......@@ -34,9 +34,8 @@ while read line
do
result=$(
printf "$line" |
sed -n 's/^\s*<\s*file\s*>\s*\(.*\.qml\)\s*<\s*\/file\s*>\s*$/\1/p'
sed -n 's/^\s*<\s*file\s*>\s*\(.*\.\(qml\|js\)\)\s*<\s*\/file\s*>\s*$/\1/p'
)
if [[ ! -z $result ]] && ! $LINTER "$result"; then
so_far_so_good=1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment