summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/format.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.ci/format.sh b/.ci/format.sh
index cc4a3b82..20c1d126 100755
--- a/.ci/format.sh
+++ b/.ci/format.sh
@@ -8,6 +8,7 @@
 set -eu
 
 FILES=$(find src -type f \( -iname "*.cpp" -o -iname "*.h" \))
+QML_FILES=$(find resources/qml -type f \( -iname "*.qml"  \))
 
 for f in $FILES
 do
@@ -15,3 +16,11 @@ do
 done;
 
 git diff --exit-code
+
+if command -v /usr/lib64/qt6/bin/qmllint &> /dev/null; then
+    /usr/lib64/qt6/bin/qmllint $QML_FILES
+elif command -v /usr/lib/qt6/bin/qmllint &> /dev/null; then
+    /usr/lib/qt6/bin/qmllint $QML_FILES
+else
+    echo "No qmllint found, skipping check!"
+fi