Skip to content

[CI] Refactore copyright-check script#16411

Merged
mhs4670go merged 1 commit intoSamsung:masterfrom
hseok-oh:copyright-check-file
Feb 27, 2026
Merged

[CI] Refactore copyright-check script#16411
mhs4670go merged 1 commit intoSamsung:masterfrom
hseok-oh:copyright-check-file

Conversation

@hseok-oh
Copy link
Copy Markdown
Contributor

This commit refactores copyright-check script to accept files as command-line arguments instead of searching for files internally.
The pre-commit hook now handles file pattern matching and exclusion logic for C/C++ source files (*.c, *.cc, *.cpp, *.cl, *.h, *.hpp), filtering out 3rd-party code.
It will reduce commit creation time by removing pre-commit's duplicated copyright check.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh hseok82.oh@samsung.com

This commit refactores copyright-check script to accept files as command-line arguments instead of searching for files internally.
The pre-commit hook now handles file pattern matching and exclusion logic for C/C++ source files (*.c, *.cc, *.cpp, *.cl, *.h, *.hpp), filtering out 3rd-party code.
It will reduce commit creation time by removing pre-commit's duplicated copyright check.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
@hseok-oh hseok-oh added the PR/ready for review It is ready to review. Please review it. label Feb 27, 2026
Copy link
Copy Markdown
Collaborator

@mhs4670go mhs4670go left a comment

Choose a reason for hiding this comment

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

LGTM

@mhs4670go mhs4670go merged commit 114b12a into Samsung:master Feb 27, 2026
2 checks passed
@hseok-oh hseok-oh deleted the copyright-check-file branch February 27, 2026 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR/ready for review It is ready to review. Please review it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants