mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
dogfood: allow unknown lints when not running with internal
feature
This commit is contained in:
parent
cf68cadc45
commit
a96bc7af12
1 changed files with 5 additions and 1 deletions
|
@ -80,9 +80,13 @@ fn run_clippy_for_package(project: &str) {
|
||||||
.args(&["-D", "clippy::pedantic"])
|
.args(&["-D", "clippy::pedantic"])
|
||||||
.arg("-Cdebuginfo=0"); // disable debuginfo to generate less data in the target dir
|
.arg("-Cdebuginfo=0"); // disable debuginfo to generate less data in the target dir
|
||||||
|
|
||||||
// internal lints only exist if we build with the internal feature
|
|
||||||
if cfg!(feature = "internal") {
|
if cfg!(feature = "internal") {
|
||||||
|
// internal lints only exist if we build with the internal feature
|
||||||
command.args(&["-D", "clippy::internal"]);
|
command.args(&["-D", "clippy::internal"]);
|
||||||
|
} else {
|
||||||
|
// running a clippy built without internal lints on the clippy source
|
||||||
|
// that contains e.g. `allow(clippy::invalid_paths)`
|
||||||
|
command.args(&["-A", "unknown_lints"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
let output = command.output().unwrap();
|
let output = command.output().unwrap();
|
||||||
|
|
Loading…
Add table
Reference in a new issue