Skip to content

Adopt clang-tidy support from @score_cpp_policies#77

Merged
rmaddikery merged 1 commit into
eclipse-score:mainfrom
RSingh1511:rs/clang_tidy
Jun 17, 2026
Merged

Adopt clang-tidy support from @score_cpp_policies#77
rmaddikery merged 1 commit into
eclipse-score:mainfrom
RSingh1511:rs/clang_tidy

Conversation

@RSingh1511

Copy link
Copy Markdown
Contributor

Notes for Reviewer

Pre-Review Checklist for the PR Author

  • PR title is short, expressive and meaningful
  • Commits are properly organized
  • Relevant issues are linked in the References section
  • Tests are conducted
  • Unit tests are added

Checklist for the PR Reviewer

  • Commits are properly organized and messages are according to the guideline
  • Unit tests have been written for new behavior
  • Public API is documented
  • PR title describes the changes

Post-review Checklist for the PR Author

  • All open points are addressed and tracked via issues

References

Closes #

@github-actions

github-actions Bot commented Mar 25, 2026

Copy link
Copy Markdown

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.3.0) and connecting to it...
INFO: Invocation ID: 70390681-84b5-41ef-af11-c3217ca2de42
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 4 packages loaded
Loading: 4 packages loaded
    currently loading: 
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:license-check': no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/logging/logging/BUILD
ERROR: no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/logging/logging/BUILD
INFO: Elapsed time: 6.631s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@RSingh1511 RSingh1511 requested a review from rmaddikery March 25, 2026 06:31
@RSingh1511 RSingh1511 requested a review from mobileinfo April 14, 2026 11:11
Comment thread .github/workflows/clang_tidy.yml Outdated
Comment thread tools/lint/BUILD.bazel Outdated

exports_files(
["linters.bzl"],
visibility = ["//visibility:public"],

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.

visibility to the existing package should be sufficient and not public.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Comment thread .bazelrc Outdated
test:tsan --@score_cpp_policies//sanitizers/flags:sanitizer=tsan
test:tsan --run_under=@score_cpp_policies//sanitizers:wrapper

# Clang-tidy: bazel test --config=clang-tidy //score/mw/...

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.

Suggested change
# Clang-tidy: bazel test --config=clang-tidy //score/mw/...
# Clang-tidy: bazel test --config=clang-tidy //score/...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Comment thread MODULE.bazel
Comment thread MODULE.bazel Outdated
bazel_dep(name = "score_tooling", version = "1.1.2")
bazel_dep(name = "score_rust_policies", version = "0.0.3")

# TODO(https://github.com/eclipse-score/baselibs/issues/266)

@rmaddikery rmaddikery Jun 11, 2026

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.

Suggested change
# TODO(https://github.com/eclipse-score/baselibs/issues/266)
# Due to incoming transitive deps from baselibs flatbuffers module.
# FIXME: To be removed after https://github.com/eclipse-score/baselibs/issues/266 is resolved

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Comment thread score/mw/log/detail/common/BUILD
Comment thread .bazelrc Outdated
Comment thread .github/workflows/clang_tidy.yml Outdated
- name: Run clang-tidy
# Scope limited to //score/mw/... because Rust/QNX targets are not yet
# validated against this configuration. Expand once they pass.
run: bazel test --config=clang-tidy --lockfile_mode=error //score/mw/log/... //score/datarouter/...

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.

Include only cpp for now

bazel test --config=clang-tidy --lockfile_mode=error //score/mw/log/... //score/datarouter/... -///score/mw/log/rust/...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Fix review comments for clang-tidy PR adoption

address review comments on visibility and clang-tidy scope

Fix review comments on grpc-java and clang-tidy scope

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

Integration tests will be fixed here: #152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants