Git commit 1ddace8251cc8ced6a60601b564780478958cadb by Laurent Montel. Committed on 08/06/2025 at 16:36. Pushed by mlaurent into branch 'master'.
Add pre-commit support A +95 -0 .clang-format-pre-commit M +3 -1 .flatpak-manifest.json M +1 -4 .gitlab-ci.yml A +59 -0 .pre-commit-config.yaml M +152 -69 CMakeLists.txt M +5 -5 COPYING M +9 -11 COPYING.LIB M +1 -1 LICENSES/LGPL-3.0-only.txt A +19 -0 LICENSES/MIT.txt M +5 -3 README-RELEASE.md M +22 -14 README.md M +4 -12 cmake/modules/Findo2.cmake M +0 -1 distro/ruqola.dsc M +0 -1 doc/CMakeLists.txt M +1 -1 doc/index.docbook M +0 -1 readme-build-ftime.txt M +1 -1 scripts/ruqola-log.sh M +19 -10 src/CMakeLists.txt M +7 -3 src/apps/CMakeLists.txt M +0 -1 src/cmark-rc/.clang-format M +79 -63 src/cmark-rc/CMakeLists.txt M +1 -1 src/cmark-rc/latex.c M +0 -1 src/cmark-rc/scanners.re M +638 -682 src/core/CMakeLists.txt M +1 -1 src/core/accountmanager.cpp M +1 -4 src/core/activities/autotests/CMakeLists.txt M +2 -5 src/core/autotests/CMakeLists.txt M +11 -1 src/core/autotests/data/actionbutton/actionbutton-test1.json M +20 -1 src/core/autotests/data/actionbutton/actionbutton-test2.json M +12 -1 src/core/autotests/data/actionbutton/actionbutton-test3.json M +20 -1 src/core/autotests/data/actionbutton/actionbutton-test4.json M +13 -1 src/core/autotests/data/actionbuttons/actionbuttons-test1.json M +51 -1 src/core/autotests/data/actionbuttons/actionbuttons-test2.json M +33 -2 src/core/autotests/data/applicationssettingslogsinfo/test1.json M +11 -1 src/core/autotests/data/applicationssettingssettingsinfo/test1.json M +12 -1 src/core/autotests/data/applicationssettingssettingsinfo/test2.json M +7 -1 src/core/autotests/data/appscountinfo/test1.json M +7 -1 src/core/autotests/data/appscountinfo/test2.json M +87 -1 src/core/autotests/data/appsmarketplaceinfo/apps1.json M +100 -1 src/core/autotests/data/appsmarketplaceinfo/apps2.json M +96 -1 src/core/autotests/data/appsmarketplaceinfo/apps3-requested.json M +1 -2 src/core/autotests/data/appsmarketplaceinfo/empty.json M +78 -1 src/core/autotests/data/appsmarketplaceinstalledinfo/appsinstalled1.json M +1 -2 src/core/autotests/data/appsmarketplaceinstalledinfo/empty.json M +11 -11 src/core/autotests/data/bannerinfo/bannerinfo1.json M +8 -8 src/core/autotests/data/bannerinfo/bannerinfo2.json M +1 -2 src/core/autotests/data/bannerinfo/bannerinfoempty.json M +1 -2 src/core/autotests/data/bannerinfos/bannerinfos-empty.json M +2 -2 src/core/autotests/data/bannerinfos/bannerinfos1.json M +2 -2 src/core/autotests/data/bannerinfos/bannerinfos2.json M +2 -2 src/core/autotests/data/bannerinfos/bannerinfos3.json M +23 -23 src/core/autotests/data/blocks/accessory1.json M +37 -1 src/core/autotests/data/blocks/action3-url.json M +39 -2 src/core/autotests/data/blocks/actions1.json M +6 -1 src/core/autotests/data/blocks/blocks1.json M +12 -1 src/core/autotests/data/blocks/context1.json M +5 -5 src/core/autotests/data/blocks/divider1.json M +8 -1 src/core/autotests/data/blocks/section1.json M +20 -1 src/core/autotests/data/blocks/section2.json M +10 -1 src/core/autotests/data/channelcounter/test1.json M +205 -1 src/core/autotests/data/commands/command2.json M +31 -1 src/core/autotests/data/commands/command3.json M +12 -1 src/core/autotests/data/customsounds/addCustomSounds1.json M +42 -1 src/core/autotests/data/customsounds/customSounds1.json M +12 -1 src/core/autotests/data/customsounds/deleteCustomSounds1.json M +12 -1 src/core/autotests/data/customsounds/deleteCustomSounds2.json M +12 -1 src/core/autotests/data/customsounds/updateCustomSounds1.json M +12 -1 src/core/autotests/data/customuserstatus/customuser2-adding.json M +12 -1 src/core/autotests/data/customuserstatus/customuser2-deleting.json M +11 -1 src/core/autotests/data/customuserstatus/customuser2-updating.json M +20 -1 src/core/autotests/data/customuserstatus/customuser2.json M +9 -1 src/core/autotests/data/deviceinfo/deviceinfo1.json M +18 -1 src/core/autotests/data/deviceinfo/deviceinfo2.json M +1 -2 src/core/autotests/data/deviceinfo/deviceinfoempty.json M +35 -1 src/core/autotests/data/deviceinfos/deviceinfos-1-element.json M +1 -2 src/core/autotests/data/deviceinfos/deviceinfos-empty.json M +1 -2 src/core/autotests/data/discussion/discussion-empty.json M +15 -1 src/core/autotests/data/discussion/one-discussion.json M +0 -1 src/core/autotests/data/discussions/discussions-1-element.json M +1 -1 src/core/autotests/data/downloadappslanguages/languages M +18 -19 src/core/autotests/data/insert-rooms/insertroom1.json M +18 -19 src/core/autotests/data/insert-rooms/insertroom2.json M +0 -1 src/core/autotests/data/json/adduser.json M +4 -4 src/core/autotests/data/json/channeluser.json M +0 -1 src/core/autotests/data/json/emoji.json M +3 -3 src/core/autotests/data/json/emojialias.json M +34 -1 src/core/autotests/data/json/first.json M +11 -1 src/core/autotests/data/json/inviteinfo.json M +20 -3 src/core/autotests/data/json/notification-tmid1.json M +19 -3 src/core/autotests/data/json/notification1.json M +8 -8 src/core/autotests/data/json/reactions.json M +10 -10 src/core/autotests/data/json/reactions2.json M +15 -1 src/core/autotests/data/json/restapi/addemojicustom1.json M +8 -9 src/core/autotests/data/json/restapi/emoji.json M +13 -1 src/core/autotests/data/json/restapi/emojicustomdelete1.json M +13 -1 src/core/autotests/data/json/restapi/emojicustomdelete2.json M +4 -3 src/core/autotests/data/json/restapi/emojiparent.json M +4 -3 src/core/autotests/data/json/restapi/emojiparent2.json M +26 -26 src/core/autotests/data/json/restapi/roomfile1.json M +15 -1 src/core/autotests/data/json/restapi/updateemojicustom1.json M +61 -62 src/core/autotests/data/json/url.json M +25 -1 src/core/autotests/data/json/userrestapi.json M +31 -1 src/core/autotests/data/json/userrestapi2.json M +44 -1 src/core/autotests/data/licensesmanager/test1.json M +1 -2 src/core/autotests/data/mentions/mentions1.json M +0 -1 src/core/autotests/data/mentions/mentions6.json M +0 -1 src/core/autotests/data/messages/attachmentimage-preview.json M +1 -2 src/core/autotests/data/messages/empty.json M +25 -1 src/core/autotests/data/moderation/moderation1.json M +1 -2 src/core/autotests/data/moderationreportinfo/empty.json M +18 -1 src/core/autotests/data/moderationreportinfo/moderationinfo1.json M +1 -2 src/core/autotests/data/moderationreportuserinfo/empty.json M +23 -1 src/core/autotests/data/moderationreportuserinfo/test1.json M +70 -1 src/core/autotests/data/moderationreportuserinfos/test1.json M +45 -1 src/core/autotests/data/notificationoption/notification1.json M +80 -1 src/core/autotests/data/ownuser/example1.json M +1 -2 src/core/autotests/data/ownuserpreferences/empty.json M +36 -36 src/core/autotests/data/ownuserpreferences/ownuserpreferences1.json M +10 -1 src/core/autotests/data/permission/permission1.json M +10 -1 src/core/autotests/data/permission/permission2.json M +37 -1 src/core/autotests/data/permissions/permissions1.json M +13 -1 src/core/autotests/data/permissions/update-permissions1.json M +13 -1 src/core/autotests/data/permissions/update-permissions2.json M +4 -1 src/core/autotests/data/personalaccesstokeninfos/empty-token.json M +29 -1 src/core/autotests/data/personalaccesstokeninfos/four-tokens.json M +3 -1 src/core/autotests/data/previewcommandutil/empty.json M +58 -1 src/core/autotests/data/previewcommandutil/test1.json M +15 -16 src/core/autotests/data/removed-rooms/remove-room1.json M +7 -1 src/core/autotests/data/retention/retention.json M +13 -13 src/core/autotests/data/rolesforroom/role1.json M +12 -12 src/core/autotests/data/rolesforroom/role2.json M +8 -1 src/core/autotests/data/rolesinfo/roleinfo1.json M +8 -1 src/core/autotests/data/rolesinfo/roleinfo2.json M +98 -1 src/core/autotests/data/rolesmanager/initialstate1.json M +7 -1 src/core/autotests/data/rolesmanager/remove-not-existing.json M +7 -1 src/core/autotests/data/rolesmanager/remove1.json M +98 -1 src/core/autotests/data/rolesmanager/test1.json M +14 -1 src/core/autotests/data/rolesmanager/update1.json M +14 -1 src/core/autotests/data/rolesmanager/update2.json M +37 -37 src/core/autotests/data/room-update-subscription/notification-roomsubscription1.json M +1 -2 src/core/autotests/data/room-update-subscription/notification-roomupdate1.json M +22 -22 src/core/autotests/data/room-update-subscription/room-blockedupdate1.json M +1 -2 src/core/autotests/data/room-update-subscription/room-broadcastedupdate1.json M +50 -51 src/core/autotests/data/room-update-subscription/room-encryptionupdate1.json M +29 -29 src/core/autotests/data/room-updated/autotranslatelanguage-update.json M +20 -21 src/core/autotests/data/room-updated/muted-users.json M +1 -2 src/core/autotests/data/room-updated/notification-roomupdate1.json M +18 -18 src/core/autotests/data/room-updated/room-blocked.json M +30 -30 src/core/autotests/data/room-updated/room-requiredjoincode-update.json M +27 -29 src/core/autotests/data/room-updated/room-retention-update.json M +22 -22 src/core/autotests/data/room-updated/room-team.json M +1 -2 src/core/autotests/data/room-updated/room-update1.json M +20 -21 src/core/autotests/data/room-updated/unmuted-users.json M +29 -29 src/core/autotests/data/room-updated/userignored-room-update.json M +20 -21 src/core/autotests/data/room/muted-users.json M +2402 -1 src/core/autotests/data/serverconfig/github-gitlab-password.json M +2402 -1 src/core/autotests/data/serverconfig/github-gitlab.json M +2402 -1 src/core/autotests/data/serverconfig/onlygithub.json M +2241 -1 src/core/autotests/data/serverconfig/test1.json M +12 -1 src/core/autotests/data/syncmessages/test1.json M +112 -1 src/core/autotests/data/syncmessages/test2.json M +14 -1 src/core/autotests/data/usersforroom/oneuser.json M +79 -1 src/core/autotests/data/usersforroom/severalusers.json M +22 -1 src/core/autotests/data/usersforroom/severalusers1-restapi.json M +8 -1 src/core/autotests/data/videoconference/accept.json M +8 -1 src/core/autotests/data/videoconference/call.json M +8 -1 src/core/autotests/data/videoconference/canceled.json M +8 -1 src/core/autotests/data/videoconference/confirmed.json M +8 -1 src/core/autotests/data/videoconference/rejected.json M +28 -1 src/core/autotests/data/videoconferenceinfo/videoconferenceinfo.json M +36 -1 src/core/autotests/data/videoconferenceinfo/videoconferenceinfo1.json M +30 -1 src/core/autotests/data/videoconferenceinfos/videoconferenceinfos-1-element.json M +3 -1 src/core/autotests/data/videoconferenceinfos/videoconferenceinfos-empty.json M +6 -3 src/core/encryption/tests/CMakeLists.txt M +1 -4 src/core/localdatabase/autotests/CMakeLists.txt M +2 -2 src/core/messages/messageattachments.cpp M +1 -1 src/core/messages/messageattachments.h M +1 -1 src/core/model/messagesmodel.cpp M +3 -3 src/core/settings/ruqolaglobalconfig.kcfg M +2 -2 src/core/textconverter.cpp M +33 -33 src/data/org.kde.ruqola.appdata.xml M +2 -2 src/data/ruqola.notifyrc M +0 -1 src/icons/CMakeLists.txt M +0 -2 src/plugins/authentication/CMakeLists.txt M +6 -4 src/plugins/authentication/github/CMakeLists.txt M +1 -1 src/plugins/authentication/github/ruqola_githubauthenticationplugin.json M +10 -12 src/plugins/authentication/github/tests/CMakeLists.txt M +6 -4 src/plugins/authentication/gitlab/CMakeLists.txt M +1 -1 src/plugins/authentication/gitlab/ruqola_gitlabauthenticationplugin.json M +6 -11 src/plugins/authentication/gitlab/tests/CMakeLists.txt M +8 -4 src/plugins/authentication/google/CMakeLists.txt M +14 -3 src/plugins/authentication/google/autotests/CMakeLists.txt M +13 -9 src/plugins/authentication/google/data/client_secret.json M +1 -1 src/plugins/authentication/google/ruqola_googleauthenticationplugin.json M +8 -4 src/plugins/authentication/password/CMakeLists.txt M +14 -3 src/plugins/authentication/password/autotests/CMakeLists.txt M +2 -2 src/plugins/authentication/password/ruqola_passwordauthenticationplugin.json M +6 -4 src/plugins/authentication/personalaccesstoken/CMakeLists.txt M +17 -4 src/plugins/authentication/personalaccesstoken/autotests/CMakeLists.txt M +1 -1 src/plugins/authentication/personalaccesstoken/ruqola_personalaccesstokenauthenticationplugin.json M +11 -8 src/plugins/textplugin/aitext/CMakeLists.txt M +2 -2 src/plugins/textplugin/aitext/ruqola_aitextplugin.json M +11 -9 src/plugins/textplugin/sharetext/CMakeLists.txt M +2 -2 src/plugins/textplugin/sharetext/ruqola_sharetextplugin.json M +8 -9 src/plugins/textplugin/webshortcut/CMakeLists.txt M +11 -7 src/plugins/toolsplugin/aiactions/CMakeLists.txt M +1 -1 src/plugins/toolsplugin/aiactions/ruqola_aiactionstoolsplugin.json M +11 -5 src/plugins/toolsplugin/autogeneratetext/CMakeLists.txt M +19 -15 src/plugins/toolsplugin/grabscreen/CMakeLists.txt M +530 -534 src/rocketchatrestapi-qt/CMakeLists.txt M +13 -1 src/rocketchatrestapi-qt/autotests/data/inviteusers/test1.json M +1031 -1174 src/widgets/CMakeLists.txt M +1 -1 src/widgets/administratordialog/users/administratoruserstabwidget.cpp M +2 -2 src/widgets/administratordialog/users/administratoruserswidget.cpp M +1 -1 src/widgets/administratordialog/users/administratoruserswidget.h M +3 -3 src/widgets/administratorsettingsdialog/retentionpolicy/retentionpolicysettingswidget.cpp M +6 -3 src/widgets/autogenerateui/autotests/CMakeLists.txt M +87 -1 src/widgets/autogenerateui/autotests/data/autogenerateinteractionui/contextbaropen1.json M +876 -1 src/widgets/autogenerateui/autotests/data/autogenerateinteractionui/datetime.json M +235 -1 src/widgets/autogenerateui/autotests/data/autogenerateinteractionui/modalupdate1.json M +17 -1 src/widgets/autogenerateui/autotests/data/autogenerateinteractionuiviewinputblock/test1.json M +6 -1 src/widgets/autogenerateui/autotests/data/autogenerateinteractionuiviewplaintextinputelement/plaintextinput.json M +4 -1 src/widgets/autogenerateui/autotests/data/autogenerateinteractionuiviewtext/mardownelement.json M +5 -1 src/widgets/autogenerateui/autotests/data/autogenerateinteractionuiviewtext/plaintextelement.json M +54 -1 src/widgets/autogenerateui/autotests/data/autogenerateui/autogenerateinteractionui1.json M +87 -1 src/widgets/autogenerateui/autotests/data/autogenerateui/autogenerateinteractionui2.json M +6 -2 src/widgets/common/tests/CMakeLists.txt M +1 -1 src/widgets/configuredialog/configurepluginswidget.cpp M +0 -1 src/widgets/importexportdata/tests/CMakeLists.txt M +1 -1 src/widgets/needupdateversion/autotests/CMakeLists.txt M +0 -1 src/widgets/needupdateversion/autotests/data/test1.html M +6 -2 src/widgets/needupdateversion/tests/CMakeLists.txt M +1 -1 src/widgets/room/usersinroomlabel.cpp M +1 -1 src/widgets/room/usersinroommenu.cpp M +1 -1 src/widgets/ruqolamainwindow.cpp M +0 -1 src/widgets/ruqolaui.rc M +0 -1 src/widgets/ruqolawidget.qrc M +39 -9 src/widgets/tests/CMakeLists.txt M +1 -1 src/widgets/whatsnew/whatsnewtranslations.cpp M +9 -6 tests/autogenerateinteractionuigui/CMakeLists.txt M +2 -3 tests/cmarktestgui/CMakeLists.txt M +8 -8 tests/encryptiontestgui/CMakeLists.txt M +1 -4 tests/expandjson/CMakeLists.txt M +2 -1 tests/loaddatabasegui/CMakeLists.txt M +1 -4 tests/loadroomcache/CMakeLists.txt M +11 -5 tests/needupdatecheckexistingnextversiongui/CMakeLists.txt M +9 -6 tests/needupdateparsehtmlgui/CMakeLists.txt M +10 -4 tests/notificationhistorygui/CMakeLists.txt M +8 -7 tests/passwordvalidategui/CMakeLists.txt M +8 -5 tests/restauthenticationgui/CMakeLists.txt M +12 -9 tests/serializemessagesgui/CMakeLists.txt M +13 -3 tests/unicodeemoticongui/CMakeLists.txt M +8 -5 tests/uploadfilewidgetlist/CMakeLists.txt M +2 -2 tests/validemoticongui/CMakeLists.txt M +4 -4 tests/whatsnewdialoggui/CMakeLists.txt https://invent.kde.org/network/ruqola/-/commit/1ddace8251cc8ced6a60601b564780478958cadb
