Skip to content

use clang_tidy from aspect_rules_lint#8

Closed
phongt wants to merge 3 commits intoeclipse-score:mainfrom
phongt:apply_clang_tidy_from_aspect_rules_lint
Closed

use clang_tidy from aspect_rules_lint#8
phongt wants to merge 3 commits intoeclipse-score:mainfrom
phongt:apply_clang_tidy_from_aspect_rules_lint

Conversation

@phongt
Copy link
Copy Markdown
Contributor

@phongt phongt commented May 29, 2025

There is a problem of 7bd5428 using the bazel rules from internal //platform/aas/quality/clang_tidy:extra_checks.bzl

Propose using the open source solution from https://github.com/aspect-build/rules_lint for clang-tidy.

Run clang-tidy with bazel command eg:

bazel build --config=clang_tidy //...

@phongt phongt force-pushed the apply_clang_tidy_from_aspect_rules_lint branch from 31df588 to 8004529 Compare May 29, 2025 13:35
Signed-off-by: Phong Tran <tranmanphong@gmail.com>
phongt referenced this pull request May 29, 2025
It seems that such checks were forgotten to be migrated to
the safe-posix-platform repo as part of mw/com.

Issue: SWP-175649
GIT_ORIGIN_SPP_REV_ID: 0985aca9b95ece3a939a9b253c1dc3ae82aac900
Signed-off-by: Phong Tran <tranmanphong@gmail.com>
@phongt phongt force-pushed the apply_clang_tidy_from_aspect_rules_lint branch from 8004529 to 33e3f2e Compare May 29, 2025 13:55
Add config build with clang as optional and apply to clang-tidy.

Signed-off-by: Phong Tran <tranmanphong@gmail.com>
@phongt phongt force-pushed the apply_clang_tidy_from_aspect_rules_lint branch from bd3613e to 3107462 Compare May 29, 2025 14:42
@castler
Copy link
Copy Markdown
Contributor

castler commented Jun 2, 2025

Thank you for your contribution!

In general, if you want to contribute something to S-CORE you have to sign the Eclipse ECA agreement.

For this particular proposal, when we created our clang-tidy aspects, the open source one did not exist yet. We are planning to open source ours, and are checking if we can maybe integrate our extended features to the already open sourced one you mentioned.

But right now we would have no plan to relay on this module.

@phongt
Copy link
Copy Markdown
Contributor Author

phongt commented Jun 2, 2025

@castler thank you for your feedback of the proposal . I close the PR now as the issue already addressed b60e1af#diff-ddfd00285269d0a8d1275f566736ac678491641b79cf6451b463984571b9cf34R15

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.

2 participants