-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 lint for copyright headers to 'tidy' tool #57520
Conversation
This comment has been minimized.
This comment has been minimized.
Looks to be working. I’ll fix those files shortly. |
dd58319
to
cade87c
Compare
This comment has been minimized.
This comment has been minimized.
Looks like Travis failed but this looks good to me in general - it might be worth including a check for "Rust" in the copyright line? |
cade87c
to
869ea16
Compare
Yep, I actually went further than this and made a regex for the copyright line, but let me know if that's overkill... |
This comment has been minimized.
This comment has been minimized.
869ea16
to
8faeb69
Compare
I think the regex is a bit overkill - especially because as far as I can tell it can be replaced with ~3 contains nearly equivalently. But if that's not actually the case, then let's put it in a lazy_static and call it good. |
8faeb69
to
1080464
Compare
Yeah, I thought originally I would need a more complicated regex to distinguish between Rust Developers and other sorts of copyright notices, but probably not. Let's see if this works... |
This comment has been minimized.
This comment has been minimized.
1080464
to
0ec1266
Compare
@Mark-Simulacrum Looking good now. (Tidy checks would have failed this far into the tests.) r+ if you're happy with things? |
r=me with notes fixed. Thanks for taking this on! Let's also @bors p=1 to hopefully help avoid some rebase pain. |
0ec1266
to
cbd0d86
Compare
@Mark-Simulacrum LGTM? |
@alexreg: 🔑 Insufficient privileges: Not in reviewers |
@Mark-Simulacrum Did your above r=me have any meaning to Bors or just a reminder? Also, @nikomatsakis, was I added to the reviewers list yet? I tried to do |
@alexreg: 🔑 Insufficient privileges: not in try users |
This comment has been minimized.
This comment has been minimized.
(Ugh, @bors should really ignore commands within backticks.) |
@Mark-Simulacrum Fair enough. Do you have merge rights on the Book? It turns out there are some copyright notices in the code there blocking it. rust-lang/book#1765 fixes it, so maybe you could approve that if possible (once CI passes)... |
Merged book PR. |
@Mark-Simulacrum Okay, everything should be good now. Just r+ when Travis goes green please. :-) |
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #57568) made this pull request unmergeable. Please resolve the merge conflicts. |
114ba30
to
5a9693b
Compare
This comment has been minimized.
This comment has been minimized.
@Mark-Simulacrum @Centril I don't get the above errors when running locally... what's going on? |
5a9693b
to
130d7d0
Compare
This comment has been minimized.
This comment has been minimized.
@Mark-Simulacrum @rust-lang/docs Could one of you kindly fix the links in the book, per above, so we can get this merged? Thanks. |
@alexreg The broken links in the book should be fixed now: rust-lang/book@0e9061c |
@carols10cents Thanks a lot. I'll go ahead and update the submodule in this PR then. Appreciate you working with us despite that surprising merge to your repo over the weekend! |
130d7d0
to
4d18023
Compare
@Mark-Simulacrum @Centril Okay, this should be ready to merge now... when CI passes, at least. |
@bors r=Mark-Simulacrum p=10 |
📌 Commit 4d18023 has been approved by |
Add lint for copyright headers to 'tidy' tool r? @Mark-Simulacrum CC @Centril
☀️ Test successful - checks-travis, status-appveyor |
r? @Mark-Simulacrum
CC @Centril