From c862ddf1ae2d30523bfc1cdd12787e2ee754732a Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Wed, 12 Apr 2023 09:12:54 -0400 Subject: [PATCH] coding-style: update to describe qmlformatting https://git.jami.net/savoirfairelinux/jami-client-qt/-/issues/1059 Change-Id: I8878139027267a798c092055a84ceac87dd21040 --- developer/coding-style.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/developer/coding-style.md b/developer/coding-style.md index 9101b9a0..54cf0d20 100644 --- a/developer/coding-style.md +++ b/developer/coding-style.md @@ -2,10 +2,13 @@ Coding style ============ **This page gives rules and/or guidances to all -developers that want to integrate some code to Jami ** +developers that want to integrate some code to Jami** C++ format rules are defined by this clang-format file: https://git.jami.net/savoirfairelinux/jami-daemon/blob/master/.clang-format +QML format rules are defined by the source code used to build the qmlformat executable: +https://codebrowser.dev/qt6/qtdeclarative/tools/qmlformat/qmlformat.cpp.html + All developers are recommended to format their code using the script in `jami-project/scripts/format.sh`. -This is done automatically (as a pre-commit hook) when using `./build.py --init` +This is done automatically (as a pre-commit hook) when using `./build.py --init --qt=<path-to-qt>`. -- GitLab