Skip to content

Update licenseck.py to not check for copyright #21489

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

Closed
wants to merge 1 commit into from
Closed

Update licenseck.py to not check for copyright #21489

wants to merge 1 commit into from

Conversation

iKevinY
Copy link
Contributor

@iKevinY iKevinY commented Jan 22, 2015

This PR is meant to be merged alongside #21481 in order to prevent licenseck.py from looking for the copyright notices at the top of each file. Some other changes are included to make the code more Pythonic as well.

@rust-highfive
Copy link
Contributor

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@huonw
Copy link
Member

huonw commented Jan 22, 2015

r? @brson

@rust-highfive rust-highfive assigned brson and unassigned huonw Jan 22, 2015

# Xfail check
firstlineish = contents[:100]
if firstlineish.find("ignore-license") != -1:
if "ignore-license" in firstlineish:
return True

# License check
boilerplate = contents[:500]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the copyright lines do get removed, 500 can probably be decreased to 350, but doing so in this PR causes a failing build since the copyright lines are currently still there.

@brson
Copy link
Contributor

brson commented Jan 22, 2015

Pending further review of #21481 per my comment there.

@iKevinY
Copy link
Contributor Author

iKevinY commented Jan 22, 2015

Closing as per the official response regarding copyright notices in #21481.

@iKevinY iKevinY closed this Jan 22, 2015
@iKevinY iKevinY deleted the no-copyright-check branch January 22, 2015 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants