Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIntegrate clippy into Servo; cleanup some of script #7224
Conversation
40d2629
to
c20f970
|
r? @jdm |
|
Reviewed 6 of 6 files at r1, 2 of 2 files at r2, 1 of 1 files at r3, 1 of 1 files at r4. components/script/dom/node.rs, line 2091 [r9] (raw file): components/script/dom/range.rs, line 341 [r9] (raw file): Comments from the review on Reviewable.io |
|
The single_match lint probably could be improved to suggest using (I just blindly copied those changes from Clippy's output, verifying that they were correct, but not thinking more about it |
|
Review status: 3 of 21 files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. components/script/dom/range.rs, line 341 [r10] (raw file): components/script/dom/treewalker.rs, line 195 [r10] (raw file): Comments from the review on Reviewable.io |
|
Review status: 3 of 21 files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. components/script/dom/range.rs, line 341 [r10] (raw file): components/script/dom/treewalker.rs, line 195 [r10] (raw file): (We're tweaking clippy to suggest Comments from the review on Reviewable.io |
|
|
|
|
|
Reviewed 1 of 6 files at r1, 2 of 2 files at r2, 1 of 2 files at r6, 1 of 3 files at r8, 9 of 11 files at r9, 11 of 11 files at r11. components/script/dom/node.rs, line 278 [r11] (raw file): Comments from the review on Reviewable.io |
|
-S-awaiting-review -S-needs-rebase +S-needs-squash Reviewed 1 of 1 files at r12. Comments from the review on Reviewable.io |
… URL, VirtualMethods
|
@bors-servo r=Ms2ger |
|
|
|
erwha |
|
@bors-servo r- |
|
@bors-servo r=Ms2ger 19241c9 |
|
|
|
@bors-servo r=Ms2ger |
|
|
Integrate clippy into Servo; cleanup some of script The integration is off by default for now. You can try it out with `./mach build --features "script/plugins/clippy"`. We're using a branch of clippy with some of the lints changed to Allow, either because they don't apply to us, or because they're noisy and dwarf other warnings (but still should be fixed) After going through the rest of Servo's warnings I'll figure out which lints we should be keeping. There's a cargo bug with optional deps that makes it hard for this to work with Cargo.lock -- so this PR contains no changes to lockfiles (and running the build with clippy on may dirty the lockfile, though it gets fixed later) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7224) <!-- Reviewable:end -->
Manishearth commentedAug 15, 2015
The integration is off by default for now. You can try it out with
./mach build --features "script/plugins/clippy".We're using a branch of clippy with some of the lints changed to Allow, either because they don't apply to us, or because they're noisy and dwarf other warnings (but still should be fixed)
After going through the rest of Servo's warnings I'll figure out which lints we should be keeping.
There's a cargo bug with optional deps that makes it hard for this to work with Cargo.lock -- so this PR contains no changes to lockfiles (and running the build with clippy on may dirty the lockfile, though it gets fixed later)