Skip to content

Commit 1e5ac1d

Browse files
committed
cargo dev crater: add more crates to be checked
1 parent 728dc06 commit 1e5ac1d

File tree

2 files changed

+281
-43
lines changed

2 files changed

+281
-43
lines changed

clippy_dev/src/crater.rs

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,16 @@ impl Krate {
7878
let all_output = std::process::Command::new(cargo_clippy_path)
7979
// lint warnings will look like this:
8080
// src/cargo/ops/cargo_compile.rs:127:35: warning: usage of `FromIterator::from_iter`
81-
.args(&["--", "--message-format=short", "--", "--cap-lints=warn"])
81+
.args(&[
82+
"--",
83+
"--message-format=short",
84+
"--",
85+
"--cap-lints=warn",
86+
/* "--",
87+
"-Wclippy::pedantic",
88+
"--",
89+
"-Wclippy::cargo", */
90+
])
8291
.current_dir(&self.path)
8392
.output()
8493
.unwrap();
@@ -121,7 +130,28 @@ pub fn run() {
121130
let cargo_clippy_path: PathBuf = PathBuf::from("target/debug/cargo-clippy");
122131

123132
// crates we want to check:
124-
let krates: Vec<KrateSource> = vec![KrateSource::new("regex", "1.4.2"), KrateSource::new("cargo", "0.49.0")];
133+
let krates: Vec<KrateSource> = vec![
134+
// some of these are form cargotest
135+
KrateSource::new("cargo", "0.49.0"),
136+
KrateSource::new("iron", "0.6.1"),
137+
KrateSource::new("ripgrep", "12.1.1"),
138+
KrateSource::new("tokei", "12.0.4"),
139+
KrateSource::new("xsv", "0.13.0"),
140+
KrateSource::new("serde", "1.0.118"),
141+
KrateSource::new("rayon", "1.5.0"),
142+
// top 10 crates.io dls
143+
KrateSource::new("rand", "0.7.3"),
144+
KrateSource::new("syn", "1.0.54"),
145+
KrateSource::new("libc", "0.2.81"),
146+
KrateSource::new("quote", "1.0.7"),
147+
KrateSource::new("rand_core", "0.6.0"),
148+
KrateSource::new("unicode-xid", "0.2.1"),
149+
KrateSource::new("proc-macro2", "1.0.24"),
150+
KrateSource::new("bitflags", "1.2.1"),
151+
KrateSource::new("log", "0.4.11"),
152+
KrateSource::new("regex", "1.4.2")
153+
//
154+
];
125155

126156
println!("Compiling clippy...");
127157
build_clippy();

0 commit comments

Comments
 (0)