Skip to content

Enable cr_checker copyright check via pre-commit hook#265

Draft
Subramanian-K812 wants to merge 4 commits into
eclipse-score:mainfrom
qorix-group:Subramanian-K166_enable_cr_checker_precommit
Draft

Enable cr_checker copyright check via pre-commit hook#265
Subramanian-K812 wants to merge 4 commits into
eclipse-score:mainfrom
qorix-group:Subramanian-K166_enable_cr_checker_precommit

Conversation

@Subramanian-K812

@Subramanian-K812 Subramanian-K812 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Closes #166

Summary

  • Enables copyright header enforcement in CI via the copyright pre-commit hook from eclipse-score/tooling, bypassing the broken Bazel //:copyright target.
  • Fixes copyright headers across 20 source files that were either missing a header or using the wrong comment style for their file type.

Changes

Enabler

File Change
.pre-commit-config.yaml New — copyright hook from eclipse-score/tooling rev 31ff8eee
.github/workflows/copyright.yml New — CI job running pre-commit run copyright --all-files on every PR and merge group

Verification

# Copyright hook — all files pass
pre-commit run copyright --all-files
# → Passed

@Subramanian-K812 Subramanian-K812 force-pushed the Subramanian-K166_enable_cr_checker_precommit branch from 0ca2285 to 25e11de Compare June 17, 2026 11:30
Comment thread BUILD Outdated
# @score_process/@score_platform; those are dev_dependencies in the score modules
# and so are not visible when reference_integration aggregates them.
# Tracked in https://github.com/eclipse-score/reference_integration/issues/166.
copyright_checker(

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.

remove then if not needed anymore

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.

Removed.

@Subramanian-K812 Subramanian-K812 force-pushed the Subramanian-K166_enable_cr_checker_precommit branch from 7aec564 to 6fa5c19 Compare June 18, 2026 05:27
@AlexanderLanin

Copy link
Copy Markdown
Member

LGTM; copyright checking is an unsolved problem. However the pre-commit version is better than the bazel version as can be observed in this PR.

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.

Enable cr_checker in CI in ref_int

3 participants