diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2021-01-26 00:03:09 -0500 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2021-01-26 00:03:09 -0500 |
commit | cb93ac3402a9b8d8862ce97d05386c52811166c5 (patch) | |
tree | bfb982da80ebc4251bc1bc6271daec8352793d48 /.ci | |
parent | Initial commit for privacy screen (diff) | |
download | nheko-cb93ac3402a9b8d8862ce97d05386c52811166c5.tar.xz |
Fix formatting
Diffstat (limited to '.ci')
-rwxr-xr-x | .ci/format.sh | 10 |
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 |