-
Notifications
You must be signed in to change notification settings - Fork 3k
travis: license check for new files #13586
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
Conversation
@0xc0170, thank you for your changes. |
ebec495
to
2a03918
Compare
@adbridge Please review (see the failures), it works as expected. I'll rebase and squash once reviewed to let this green. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK as far as I can tell
Fail if new file does not contain SPDX identifier. We only checked for changed files, and warn if any found. This is not sufficient because new files should follow our license guide. This fixes the problem.
dfee8a2
to
36bb124
Compare
Rebased to squash the commits and remove testing commits. Ready for CI |
Pull request has been modified.
CI started |
@adbridge if approved, please merge. I'll rebase and fix the other pull request related to Travis I created yesterday. |
Summary of changes
We only warned about SPDX identifiers. We should error if new file is not properly licensed. I added travis check for new files and exclude from the current check. Thus we run 2 checks within one status. we warn for modified files (still clean up required) and error for new files.
I'll test some commits to verify this works. If this works, I can apply the same to astyle - also for new files it is mandatory to be following our style (3rd party could be added to astyleignore).
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers