Skip to content

Chore/improve clang tidy integration - #10666

Open
mgallien wants to merge 10 commits into
masterfrom
chore/improveClangTidyIntegration
Open

Chore/improve clang tidy integration#10666
mgallien wants to merge 10 commits into
masterfrom
chore/improveClangTidyIntegration

Conversation

@mgallien

Copy link
Copy Markdown
Collaborator

Resolves

#

Summary

TODO

  • ...

Checklist

AI (if applicable)

@mgallien mgallien added this to the 35.0.0 milestone Aug 25, 2026
@mgallien
mgallien force-pushed the chore/improveClangTidyIntegration branch 3 times, most recently from 6e33e38 to b843837 Compare August 26, 2026 08:42
mgallien and others added 10 commits August 29, 2026 19:13
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>
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>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
The step should not fail the job on lint warnings; fixes.yml is still
exported and consumed by the PR-comments step regardless of exit code.

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
added some exceptions

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien
mgallien force-pushed the chore/improveClangTidyIntegration branch from 92b2f21 to 8751f13 Compare August 29, 2026 17:34
@github-actions

Copy link
Copy Markdown
Contributor

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

Digest: sha256:79e26d4b66e04b226b0b8ddbc31a8f1e623bfbcfebd6637260f0f5c18f05a39c

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

#include <QPushButton>
#include <QTimeZone>

#include "ui_sslerrordialog.h"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-diagnostic-error
ui_sslerrordialog.h file not found

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
59.8% Coverage on New Code (required ≥ 80%)
56 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

1 participant