Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reusable format and linting CI action for C++ projects #52

Open
eeberhard opened this issue Jan 15, 2025 · 0 comments
Open

Reusable format and linting CI action for C++ projects #52

eeberhard opened this issue Jan 15, 2025 · 0 comments
Assignees

Comments

@eeberhard
Copy link
Member

Prompted by @bpapaspyros, we should start to apply formatting and linting checks in the CI for C++ projects, to encourage safer and more efficient co-development and review.

The most ubiquitous resource for C++ is the clang family of tools (clang-format, clang-tidy).

From the marketplace of pre-built actions, I identified https://github.com/cpp-linter/cpp-linter-action as an interesting candidate.

My plan is to make a reusable wrapper action in .github that checks out the .clang-format file from our organization into the workspace and adds some inputs to specify the source path in the repo. In this wrapper we might also consider invoking cmake for compile_commands.json to give clang-tidy the necessary information it needs.

I will test things on a local fork and then make a PR.

@eeberhard eeberhard self-assigned this Jan 15, 2025
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

No branches or pull requests

1 participant