summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-01-26 00:03:09 -0500
committerJoseph Donofry <joedonofry@gmail.com>2021-01-26 00:03:09 -0500
commitcb93ac3402a9b8d8862ce97d05386c52811166c5 (patch)
treebfb982da80ebc4251bc1bc6271daec8352793d48 /.ci
parentInitial commit for privacy screen (diff)
downloadnheko-cb93ac3402a9b8d8862ce97d05386c52811166c5.tar.xz
Fix formatting
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/format.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/.ci/format.sh b/.ci/format.sh
index e1e6c1e4..7f201bb8 100755
--- a/.ci/format.sh
+++ b/.ci/format.sh
@@ -14,4 +14,14 @@ do
     clang-format -i "$f"
 done;
 
+QMLFORMAT_PATH=$(which qmlformat)
+if [ ! -z "$QMLFORMAT_PATH" ]; then
+    QML_FILES=$(find resources -type f -iname "*.qml")
+
+    for f in $QML_FILES
+    do
+        qmlformat -i "$f"
+    done;
+fi
+
 git diff --exit-code