-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #391 - ecstatic-morse:clippy-mode, r=pietroalbini
Add a new `clippy` mode to crater to test lint regressions Resolves #388. This adds a new mode, `clippy`, to crater which runs clippy on crates (duh :). I had to add some new options to minicrater, as well as change the invocation of `docker create`. See the commit messages for more info. This is still a work in progress as I'd like to add some documentation for the feature, but should be enough for a meaningful review.
- Loading branch information
Showing
15 changed files
with
187 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "clippy-warn" | ||
version = "0.1.0" | ||
authors = ["Dylan MacKenzie <[email protected]>"] | ||
edition = "2018" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() { | ||
// Trigger `clippy::print_with_newline` | ||
print!("Hello, world!\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[server] | ||
bot-acl = [ | ||
"pietroalbini", | ||
] | ||
|
||
[server.labels] | ||
remove = "^S-" | ||
experiment-queued = "S-waiting-on-crater" | ||
experiment-completed = "S-waiting-on-review" | ||
|
||
[demo-crates] | ||
crates = [] | ||
github-repos = [] | ||
local-crates = ["build-pass", "clippy-warn"] | ||
|
||
[sandbox] | ||
memory-limit = "512M" | ||
build-log-max-size = "2M" | ||
build-log-max-lines = 1000 | ||
|
||
[crates] | ||
|
||
[github-repos] | ||
|
||
[local-crates] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"crates": [ | ||
{ | ||
"name": "build-pass (local)", | ||
"res": "test-pass", | ||
"runs": [ | ||
{ | ||
"log": "stable/local/build-pass", | ||
"res": "test-pass" | ||
}, | ||
{ | ||
"log": "stable%2Brustflags=-Dclippy::all/local/build-pass", | ||
"res": "test-pass" | ||
} | ||
], | ||
"url": "https://github.com/rust-lang-nursery/crater/tree/master/local-crates/build-pass" | ||
}, | ||
{ | ||
"name": "clippy-warn (local)", | ||
"res": "regressed", | ||
"runs": [ | ||
{ | ||
"log": "stable/local/clippy-warn", | ||
"res": "test-pass" | ||
}, | ||
{ | ||
"log": "stable%2Brustflags=-Dclippy::all/local/clippy-warn", | ||
"res": "build-fail:unknown" | ||
} | ||
], | ||
"url": "https://github.com/rust-lang-nursery/crater/tree/master/local-crates/clippy-warn" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters