Skip to content

clang-tidy environmental consistency#109

Merged
alan-george-lk merged 24 commits into
mainfrom
bugfix/clang-tidy
Apr 29, 2026
Merged

clang-tidy environmental consistency#109
alan-george-lk merged 24 commits into
mainfrom
bugfix/clang-tidy

Conversation

@alan-george-lk
Copy link
Copy Markdown
Collaborator

@alan-george-lk alan-george-lk commented Apr 23, 2026

This PR replaces the cpp-linter action with a custom script + GitHub actions steps instead. The intent is to enable local running of these checks in an identical way to CI. While convenient, cpp-linter ran inputs to clang-tidy a certain way, and matching that locally proved challenging.

Overview of changes:

  • Consistent clang-tidy.sh script
  • Fixes all remaining warnings
  • Treat warnings as errors for CI purposes/not building tech debt

To run locally:

bash scripts/clang-tidy.sh

Which runs and logs output to clang-tidy.log (now .gitignore'd for all .log files). Has convenience prints at the end too:

Results written to: /Users/alan.george/LiveKit/client-sdk-cpp/clang-tidy.log
------------------------------------------------------------
clang-tidy summary: 1 warning(s), 0 error(s)
  by check:
    bugprone-exception-escape                          1
------------------------------------------------------------

A GitHub-actions integration was also added to maintain feature parity.

Examples of how the PR annotations appear:

error
Screenshot 2026-04-27 at 10 16 16 AM

warning
Screenshot 2026-04-27 at 10 16 32 AM

Testing

All integration tests passed locally:

...
[----------] Global test environment tear-down
[==========] 30 tests from 7 test suites ran. (102746 ms total)
[  PASSED  ] 30 tests.

@livekit livekit deleted a comment from github-actions Bot Apr 23, 2026
Comment thread .gitignore
Comment thread AGENTS.md
Copy link
Copy Markdown
Collaborator

@stephen-derosa stephen-derosa left a comment

Choose a reason for hiding this comment

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

LGTM -- i think all the checks so far make sense

Comment thread CMakePresets.json
@alan-george-lk alan-george-lk changed the title Draft - clang-tidy environmental consistency clang-tidy environmental consistency Apr 28, 2026
Commit 64cb6cf inadvertently rewrote CMakePresets.json from CRLF to LF
(no content change). Restore the file to match origin/main so the PR
diff stays focused on the clang-tidy work.

Made-with: Cursor
Comment thread src/tests/unit/test_track_publication.cpp
Comment thread include/livekit/subscription_thread_dispatcher.h Outdated
Comment thread include/livekit/subscription_thread_dispatcher.h Outdated
Comment thread scripts/clang-tidy.sh
Comment thread scripts/clang-tidy.sh
Copy link
Copy Markdown
Collaborator

@stephen-derosa stephen-derosa left a comment

Choose a reason for hiding this comment

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

in general lgtm, a few questions/comments

@alan-george-lk alan-george-lk merged commit 332008c into main Apr 29, 2026
15 checks passed
@alan-george-lk alan-george-lk deleted the bugfix/clang-tidy branch April 29, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants