Sponsored Content
Skip to content

chore: Enable clang-tidy checks without issues - #6414

Merged
bthomee merged 12 commits into
XRPLF:developfrom
godexsoft:chore/enable-clang-tidy-checks-without-issues
Feb 26, 2026
Merged

chore: Enable clang-tidy checks without issues#6414
bthomee merged 12 commits into
XRPLF:developfrom
godexsoft:chore/enable-clang-tidy-checks-without-issues

Conversation

@godexsoft

@godexsoft godexsoft commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

High Level Overview of Change

This PR enables all clang-tidy checks that are already passing. Also modifying the clang-tidy CI job so it runs against all files if .clang-tidy changed.

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Performance (increase or change in throughput and/or latency)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)
  • Documentation update
  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)
  • Release

API Impact

No impact.

Copilot AI review requested due to automatic review settings February 24, 2026 16:39

Copilot AI 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.

Pull request overview

This PR enables 78 additional clang-tidy checks that are already passing in the codebase. By uncommenting previously disabled checks across bugprone, cppcoreguidelines, hicpp, misc, readability, modernize, and performance categories, the codebase gains additional static analysis coverage without requiring any code changes. The CheckOptions section is also activated with one option enabled.

Changes:

  • Enabled 78 clang-tidy checks that were previously commented out but are now passing
  • Reorganized commented checks that still have issues into clearer sections
  • Uncommented CheckOptions section and enabled bugprone-unsafe-functions.ReportMoreUnsafeFunctions: true

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Feb 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.8%. Comparing base (3a8a18c) to head (7e6a930).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #6414     +/-   ##
=========================================
- Coverage     79.8%   79.8%   -0.0%     
=========================================
  Files          848     848             
  Lines        67757   67757             
  Branches      7559    7552      -7     
=========================================
- Hits         54075   54074      -1     
- Misses       13682   13683      +1     

see 7 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI review requested due to automatic review settings February 24, 2026 17:48

Copilot AI 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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-clang-tidy.yml Outdated
Comment thread .github/workflows/reusable-clang-tidy-files.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 24, 2026 17:53

Copilot AI 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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CONTRIBUTING.md Outdated
@godexsoft
godexsoft requested a review from kuznetsss February 24, 2026 18:03
Comment thread .github/workflows/reusable-clang-tidy-files.yml Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 24, 2026 18:08
godexsoft and others added 2 commits February 24, 2026 18:08
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>

Copilot AI 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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CONTRIBUTING.md

@kuznetsss kuznetsss 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.

👍

@godexsoft godexsoft added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Feb 25, 2026
mathbunnyru and others added 2 commits February 25, 2026 13:25
Updated instructions for running clang-tidy to refer to BUILD.md for build steps.
Copilot AI review requested due to automatic review settings February 26, 2026 15:34
@godexsoft
godexsoft requested a review from bthomee February 26, 2026 15:36
@godexsoft

Copy link
Copy Markdown
Contributor Author

@bthomee @kuznetsss @mathbunnyru I have updated the doc to simply require to build the project before running clang-tidy. This was suggested by @bthomee.

Copilot AI 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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bthomee
bthomee enabled auto-merge (squash) February 26, 2026 16:28
@bthomee
bthomee merged commit 2e595b6 into XRPLF:develop Feb 26, 2026
3 checks passed
@mvadari mvadari added this to the 3.2.0 milestone May 20, 2026
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
This change enables all clang-tidy checks that are already passing. It also modifies the clang-tidy CI job, so it runs against all files if .clang-tidy changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants