Skip to content

[stable-34.0] Chore/improve clang tidy integration - #10743

Merged
Rello merged 8 commits into
stable-34.0from
backport/10666/stable-34.0
Sep 8, 2026
Merged

[stable-34.0] Chore/improve clang tidy integration#10743
Rello merged 8 commits into
stable-34.0from
backport/10666/stable-34.0

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 4, 2026

Copy link
Copy Markdown

Backport of #10666

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot
backportbot Bot requested review from mgallien and nilsding September 4, 2026 12:28
@backportbot backportbot Bot added this to the 34.0.4 milestone Sep 4, 2026
@mgallien
mgallien marked this pull request as ready for review September 7, 2026 12:22
mgallien and others added 7 commits September 7, 2026 14:23
removes code that would never be called

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Extract the inline -checks= list from the CI workflow into a
.clang-tidy configuration file so the check set is discoverable
outside CI and can be reused by local/IDE runs of clang-tidy.

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
also enforce it via clang-tidy configuration file

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
also add it to our configuration file to be enforced

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Broaden the clang-format requirement beyond ./src to all C++ source
files, and add a mandatory run-clang-tidy -fix pass that must report
no further changes before a task is considered done.

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mgallien
mgallien force-pushed the backport/10666/stable-34.0 branch from d76f15c to ef29e9c Compare September 7, 2026 12:23
feat(clang-tidy): enable CI to check clang-tidy conformance

will use the .clang-tidy configuration file from the project

should only publish comments and request changes when an existing file

has issues

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien
mgallien force-pushed the backport/10666/stable-34.0 branch from ef29e9c to c62d4fc Compare September 7, 2026 12:24
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10743.zip

Digest: sha256:8645d1a6155cb4559f77becd14d3add5ece97d950de1d5bcba109e5f7fa1f835

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarqubecloud

sonarqubecloud Bot commented Sep 7, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
63.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@Rello
Rello merged commit 5772cd2 into stable-34.0 Sep 8, 2026
20 of 21 checks passed
@Rello
Rello deleted the backport/10666/stable-34.0 branch September 8, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants