lintcheck: warn if checking a program results in bad exit status
This commit is contained in:
parent
6ee14697d4
commit
225f7e0617
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user