Skip to content

Conversation

@fbaeuerle
Copy link
Contributor

@fbaeuerle fbaeuerle commented Jan 21, 2026

Allow specifying paths that are being excluded from the copyright check.
This feature is supposed to be used for source code parts taken from
other open source projects that require correct attribution.

The exclusion file shall contain one path to a file per entry. The check
shall fail if a file listed does not exist.

Furthermore extend the test suite to cover the core functionality as well
as the newly added functionality.

Fixes: #99

@fbaeuerle fbaeuerle force-pushed the fb/cr_checker_exclusion branch 7 times, most recently from 4621a11 to 2e86112 Compare January 22, 2026 10:31
@fbaeuerle fbaeuerle marked this pull request as ready for review January 22, 2026 10:31
"rst",
]
)
def prepare_test_with_header(request, tmp_path):
Copy link
Member

Choose a reason for hiding this comment

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

Same thing here:
Function definition with a return type annotation vs Untyped function definition. Since the approach was to use first, I would say follow the code format, but if you have strong case why you do not want to use it, speak now or be silent forever ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'm changing it for the fixtures. for the test cases i'll keep it as is, because none is using those annotations.

@fbaeuerle fbaeuerle force-pushed the fb/cr_checker_exclusion branch from 2e86112 to 5e6af8a Compare January 22, 2026 15:28
Add a .bazelversion file to pin bazel version to 8.3.1. Builds fail with
version 9.0.0.
Allow specifying paths that are being excluded from the copyright check.
This feature is supposed to be used for source code parts taken from
other open source projects that require correct attribution.

The exclusion file shall contain one path to a file per entry. The check
shall fail if a file listed does not exist.
Add test cases for the cr_checker core functionality.

Fixes: eclipse-score#99
@fbaeuerle fbaeuerle force-pushed the fb/cr_checker_exclusion branch from 5e6af8a to 998a84f Compare January 22, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Draft

Development

Successfully merging this pull request may close these issues.

copyright_checker does not have tests for core functionality

2 participants