Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Gallien <matthieu_gallien@yahoo.fr>2022-10-02 16:48:20 +0300
committerGitHub <noreply@github.com>2022-10-02 16:48:20 +0300
commit0b4128eede5041778d51429f473deedb77e9cdc5 (patch)
treea3b1ffd1639866840a5c782822d15408a430a754
parent9f1b6c261d833f1642aa3730fd39366836019d8e (diff)
parentee98244877e8ccaaa8487f2487c31ce112b746c5 (diff)
Merge branch 'master' into cleanConfigFileConstantscleanConfigFileConstants
-rw-r--r--.github/workflows/clang-tidy-review.yml41
-rw-r--r--src/gui/wizard/owncloudwizardcommon.cpp2
2 files changed, 42 insertions, 1 deletions
diff --git a/.github/workflows/clang-tidy-review.yml b/.github/workflows/clang-tidy-review.yml
new file mode 100644
index 000000000..31e2f6be5
--- /dev/null
+++ b/.github/workflows/clang-tidy-review.yml
@@ -0,0 +1,41 @@
+name: clang-tidy-review
+
+# You can be more specific, but it currently only works on pull requests
+on: [pull_request]
+
+jobs:
+ clang-tidy:
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 2
+ - name: Install clang-tidy
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y clang-tidy
+ sudo apt-get install -y ninja-build zlib1g-dev texlive-latex-base qtwebengine5-dev qttools5-dev-tools qttools5-dev qtquickcontrols2-5-dev qt5keychain-dev qtdeclarative5-dev qtbase5-dev python3-sphinx libssl-dev libsqlite3-dev libqt5websockets5-dev libqt5svg5-dev pkg-config libkf5archive-dev libcloudproviders-dev libcmocka-dev libdbus-1-dev qtbase5-private-dev qt5-qmake inkscape
+ - name: Prepare compile_commands.json
+ run: |
+ cmake -G Ninja -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_UPDATER=ON -DBUILD_TESTING=1
+ cd build && ninja
+ - name: Create results directory
+ run: |
+ mkdir clang-tidy-result
+ - name: Analyze
+ run: |
+ git diff -U0 HEAD^ | clang-tidy-diff -p1 -path build -export-fixes clang-tidy-result/fixes.yml
+ - name: Run clang-tidy-pr-comments action
+ uses: platisd/clang-tidy-pr-comments@master
+ with:
+ # The GitHub token (or a personal access token)
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ # The path to the clang-tidy fixes generated previously
+ clang_tidy_fixes: clang-tidy-result/fixes.yml
+ # Optionally set to true if you want the Action to request
+ # changes in case warnings are found
+ request_changes: true
+ # Optionally set the number of comments per review
+ # to avoid GitHub API timeouts for heavily loaded
+ # pull requests
+ suggestions_per_comment: 10
diff --git a/src/gui/wizard/owncloudwizardcommon.cpp b/src/gui/wizard/owncloudwizardcommon.cpp
index 0f4735082..f4df9bad0 100644
--- a/src/gui/wizard/owncloudwizardcommon.cpp
+++ b/src/gui/wizard/owncloudwizardcommon.cpp
@@ -33,7 +33,7 @@ namespace WizardCommon {
if (!label)
return;
- QPixmap pix = variant.value<QPixmap>();
+ auto pix = variant.value<QPixmap>();
if (!pix.isNull()) {
label->setPixmap(pix);
label->setAlignment(Qt::AlignTop | Qt::AlignRight);