lintcheck: warn if checking a program results in bad exit status

This commit is contained in:
Matthias Krüger 2021-03-31 14:36:56 +02:00
parent 6ee14697d4
commit 225f7e0617

View File

@ -294,6 +294,14 @@ fn run_clippy_lints(
});
let stdout = String::from_utf8_lossy(&all_output.stdout);
let stderr = String::from_utf8_lossy(&all_output.stderr);
let status = &all_output.status;
if !status.success() {
eprintln!(
"\nWARNING: bad exit status after checking {} {} \n",
self.name, self.version
);
}
if fix {
if let Some(stderr) = stderr