@@ -60,15 +60,23 @@ fn dogfood() {
60
60
const DENY_LINTS : & [ & str ] = & [
61
61
"unfulfilled_lint_expectations" ,
62
62
"clippy::all" ,
63
+ "clippy::nursery" ,
63
64
"clippy::pedantic" ,
64
65
"clippy::dbg_macro" ,
65
66
"clippy::decimal_literal_representation" ,
66
- "clippy::derive_partial_eq_without_eq" ,
67
- "clippy::iter_on_single_items" ,
68
- "clippy::needless_pass_by_ref_mut" ,
69
- "clippy::significant_drop_tightening" ,
70
- "clippy::tuple_array_conversions" ,
71
- "clippy::useless_let_if_seq" ,
67
+ ] ;
68
+
69
+ const ALLOW_LINTS : & [ & str ] = & [
70
+ "clippy::equatable_if_let" ,
71
+ "clippy::iter_on_empty_collections" ,
72
+ "clippy::iter_with_drain" ,
73
+ "clippy::missing_const_for_fn" ,
74
+ "clippy::option_if_let_else" ,
75
+ "clippy::or_fun_call" ,
76
+ "clippy::redundant_clone" ,
77
+ "clippy::redundant_pub_crate" ,
78
+ "clippy::too_long_first_doc_paragraph" ,
79
+ "clippy::use_self" ,
72
80
] ;
73
81
74
82
#[ must_use]
@@ -101,6 +109,10 @@ fn run_clippy_for_package(project: &str) -> bool {
101
109
command. args ( [ "-D" , lint] ) ;
102
110
}
103
111
112
+ for lint in ALLOW_LINTS {
113
+ command. args ( [ "-A" , lint] ) ;
114
+ }
115
+
104
116
if !cfg ! ( feature = "internal" ) {
105
117
// running a clippy built without internal lints on the clippy source
106
118
// that contains e.g. `allow(clippy::symbol_as_str)`
0 commit comments