-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Add lint for copyright headers to 'tidy' tool #57520
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
This comment has been minimized.
This comment has been minimized.
Looks to be working. I’ll fix those files shortly. |
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? |
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.
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. |
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.
@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. |
@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.) |
Okay one last nit that I noticed, r=me now I think we haven't re-deployed bors yet so the configuration hasn't been reloaded. For now, @bors delegate+ |
✌️ @alexreg can now approve this pull request |
@Mark-Simulacrum Ah, that makes sense. Thanks for delegating. @bors r+ p=1 |
📌 Commit e46028aca974c8d7a9ca4e0336268d4023fa212c has been approved by |
Oops, I meant @bors r=@Mark-Simulacrum p=1 |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit e46028aca974c8d7a9ca4e0336268d4023fa212c has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors retry |
📌 Commit 60c8837fde3a9c219c4434eec1e45b120382451f has been approved by |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors r- (since Travis failed) |
@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. |
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? |
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! |
@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