@@ -110,3 +110,73 @@ set-version = ["cli"]
110110cli = [" color" , " clap" ]
111111color = [" concolor-control/auto" ]
112112test-external-apis = []
113+
114+ [lints .rust ]
115+ rust_2018_idioms = { level = " warn" , priority = -1 }
116+ unnameable_types = " warn"
117+ unreachable_pub = " warn"
118+ unsafe_op_in_unsafe_fn = " warn"
119+ unused_lifetimes = " warn"
120+ unused_macro_rules = " warn"
121+ unused_qualifications = " warn"
122+
123+ [lints .clippy ]
124+ bool_assert_comparison = " allow"
125+ branches_sharing_code = " allow"
126+ checked_conversions = " warn"
127+ collapsible_else_if = " allow"
128+ create_dir = " warn"
129+ dbg_macro = " warn"
130+ debug_assert_with_mut_call = " warn"
131+ doc_markdown = " warn"
132+ empty_enum = " warn"
133+ enum_glob_use = " warn"
134+ expl_impl_clone_on_copy = " warn"
135+ explicit_deref_methods = " warn"
136+ explicit_into_iter_loop = " warn"
137+ fallible_impl_from = " warn"
138+ filter_map_next = " warn"
139+ flat_map_option = " warn"
140+ float_cmp_const = " warn"
141+ fn_params_excessive_bools = " warn"
142+ from_iter_instead_of_collect = " warn"
143+ if_same_then_else = " allow"
144+ implicit_clone = " warn"
145+ imprecise_flops = " warn"
146+ inconsistent_struct_constructor = " warn"
147+ inefficient_to_string = " warn"
148+ infinite_loop = " warn"
149+ invalid_upcast_comparisons = " warn"
150+ large_digit_groups = " warn"
151+ large_stack_arrays = " warn"
152+ large_types_passed_by_value = " warn"
153+ let_and_return = " allow" # sometimes good to name what you are returning
154+ linkedlist = " warn"
155+ lossy_float_literal = " warn"
156+ macro_use_imports = " warn"
157+ mem_forget = " warn"
158+ mutex_integer = " warn"
159+ needless_continue = " allow"
160+ needless_for_each = " warn"
161+ negative_feature_names = " warn"
162+ path_buf_push_overwrite = " warn"
163+ ptr_as_ptr = " warn"
164+ rc_mutex = " warn"
165+ redundant_feature_names = " warn"
166+ ref_option_ref = " warn"
167+ rest_pat_in_fully_bound_structs = " warn"
168+ result_large_err = " allow"
169+ same_functions_in_if_condition = " warn"
170+ self_named_module_files = " allow" # false positive
171+ semicolon_if_nothing_returned = " warn"
172+ str_to_string = " warn"
173+ string_add = " warn"
174+ string_add_assign = " warn"
175+ string_lit_as_bytes = " warn"
176+ string_to_string = " warn"
177+ todo = " warn"
178+ trait_duplication_in_bounds = " warn"
179+ uninlined_format_args = " warn"
180+ verbose_file_reads = " warn"
181+ wildcard_imports = " warn"
182+ zero_sized_map_values = " warn"
0 commit comments