From 9e9b368deb3a667860383b3ffc8c2b28a311bb4e Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Thu, 13 Apr 2023 16:40:04 -0400
Subject: [PATCH] misc: remove `--force` when calling qmlformat

It doesn't work with JS arrow function syntax.

Gitlab: #1059
Change-Id: I7da9c8ee7a2cb470aeb76cf4d1d0937e621eb221
---
 extras/scripts/format.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/extras/scripts/format.py b/extras/scripts/format.py
index a6155bb42..ba74ecb0f 100755
--- a/extras/scripts/format.py
+++ b/extras/scripts/format.py
@@ -69,8 +69,7 @@ def qml_format_files(files):
     for filename in files:
         if os.path.isfile(filename):
             print(f"Formatting: {filename}", end='\r')
-            extra_args = ['--force']
-            subprocess.call([QMLFORMAT, '--inplace', filename] + extra_args)
+            subprocess.call([QMLFORMAT, '--inplace', filename])
             # This may generate a backup file (ending with ~), so delete it.
             backup_file = filename + "~"
             if os.path.isfile(backup_file):
-- 
GitLab