Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copyright checking #957

Closed
wants to merge 3 commits into from
Closed

Conversation

aprokop
Copy link
Contributor

@aprokop aprokop commented Oct 11, 2023

This adds a scripts/check_copyright.sh script to check whether the files in the PR have correct license. Correct license here means that it can only differ from the standard license form in one way: it could have 'XXXX-YYYY' year range, and the license file would only have 'YYYY'.

Caveats:

  • Only C++ files are checked (through filtering file extensions)
  • Only files that are modified, renamed or added are checked
  • It may not work well with locally (as it checks against origin/master that could be outdated, or origin could be named differently)
  • It only works with cloned code (as it needs origin/master)

I've also run the script to find all license discrepancies in the files that were modified this year (since 8d6dedb), and fixed them.

@aprokop aprokop force-pushed the check-copyright branch 4 times, most recently from 875e7ba to fa00114 Compare October 11, 2023 22:46
@aprokop aprokop marked this pull request as ready for review October 11, 2023 22:46
@aprokop aprokop force-pushed the check-copyright branch 2 times, most recently from 3af488d to b0aa577 Compare October 11, 2023 23:20
scripts/check_copyright.sh Outdated Show resolved Hide resolved
@aprokop
Copy link
Contributor Author

aprokop commented Oct 26, 2023

If we ever want to improve the script, we could look at git-clang-format. Seems like an overkill right now.

@aprokop aprokop added the testing Anything to do with tests and CI label Oct 31, 2023
@aprokop
Copy link
Contributor Author

aprokop commented Jan 9, 2024

Closing for now. Will make it part of the ArborX 2.0 when we go through the copyright again.

@aprokop aprokop closed this Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Anything to do with tests and CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants