pass ignored lints after manual ones
Previously, when passing lint rules manually using `x clippy ..`, ignored lints would override manual ones. This change corrects the order by passing ignored lints after the manual ones. Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
b43dc065dd
commit
1945e8f1f6
1 changed files with 1 additions and 1 deletions
|
|
@ -64,8 +64,8 @@ fn args(builder: &Builder<'_>) -> Vec<String> {
|
|||
let all_args = std::env::args().collect::<Vec<_>>();
|
||||
|
||||
args.extend(strings(&["--", "--cap-lints", "warn"]));
|
||||
args.extend(ignored_lints.iter().map(|lint| format!("-Aclippy::{}", lint)));
|
||||
args.extend(get_clippy_rules_in_order(&all_args, allow, deny, warn, forbid));
|
||||
args.extend(ignored_lints.iter().map(|lint| format!("-Aclippy::{}", lint)));
|
||||
args.extend(builder.config.free_args.clone());
|
||||
args
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue