-
Notifications
You must be signed in to change notification settings - Fork 326
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
Implemented copyright checker for new and modified files #3890
Conversation
838c12d
to
885b4bf
Compare
885b4bf
to
082b101
Compare
Hi @lauraherzog
as far I can see all files of |
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.
see above
@chfsx I don't think you are doing anything wrong. I just think that my script is not bulletproof so we need to find the error :) I see that you modified Services/ActiveRecord with this Rectorthing (which I don't know). Could you give me an example of two or three modified files (just the header with the copyright statement)? Best, Laura |
Hi @lauraherzog i changes the line 20 in copyright-checker.sh to just check Services/ActiveRecord like this: |
082b101
to
ac2e8ec
Compare
Hey @chfsx I reworked the checkmodel by removing whitespace, stars and slashes. My tests worked with the copyright notice from above. Additionally I tested with notices where I added stars and slashes. So the test is a bit weaker. Does that satisfy our needs? |
19f1c6d
to
c1c4c34
Compare
we are almost there :-) I made a branch with your checker and changes a lot of files with the license header. the action runs und succeeds, but have a look at the step "Copyright Check" here it doesn't seem to run:
no Idea where this comes from, maybe just because it's not yet part of the repo? |
@lauraherzog @chfsx What's the status here? |
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.
Hi @lauraherzog, thanks a lot for the implementation, seems to work as expected now!
Thank you very much @lauraherzog ! |
Ok the new check is quite hard :) I have my first failed test now |
I implemented a check if the copyright lines are at a correct place and contain the exact wording. For every modified and new file the lines are defined as:
They need to start at line 2 or 3.