@@ -16,6 +16,87 @@ include = [
1616 " examples/**/*"
1717]
1818
19+ [workspace .lints .rust ]
20+ missing_docs = " warn"
21+ rust_2018_idioms = " warn"
22+ unreachable_pub = " warn"
23+ unsafe-op-in-unsafe-fn = " warn"
24+ unsafe_code = " warn"
25+ unused-crate-dependencies = " warn"
26+ unused-lifetimes = " warn"
27+ unused-macro-rules = " warn"
28+ unused-qualifications = " warn"
29+
30+ [workspace .lints .clippy ]
31+ bool_assert_comparison = " allow"
32+ branches_sharing_code = " allow"
33+ checked_conversions = " warn"
34+ collapsible_else_if = " allow"
35+ create_dir = " warn"
36+ dbg_macro = " warn"
37+ debug_assert_with_mut_call = " warn"
38+ doc_markdown = " warn"
39+ empty_enum = " warn"
40+ enum_glob_use = " warn"
41+ exhaustive_enums = " warn"
42+ exhaustive_structs = " warn"
43+ exit = " warn"
44+ expl_impl_clone_on_copy = " warn"
45+ explicit_deref_methods = " warn"
46+ explicit_into_iter_loop = " warn"
47+ fallible_impl_from = " warn"
48+ filter_map_next = " warn"
49+ flat_map_option = " warn"
50+ float_cmp_const = " warn"
51+ fn_params_excessive_bools = " warn"
52+ from_iter_instead_of_collect = " warn"
53+ if_same_then_else = " allow"
54+ implicit_clone = " warn"
55+ imprecise_flops = " warn"
56+ inconsistent_struct_constructor = " warn"
57+ inefficient_to_string = " warn"
58+ infinite_loop = " warn"
59+ invalid_upcast_comparisons = " warn"
60+ items_after_statements = " warn"
61+ large_digit_groups = " warn"
62+ large_stack_arrays = " warn"
63+ large_types_passed_by_value = " warn"
64+ let_and_return = " allow" # sometimes good to name what you are returning
65+ linkedlist = " warn"
66+ lossy_float_literal = " warn"
67+ macro_use_imports = " warn"
68+ match_wildcard_for_single_variants = " warn"
69+ mem_forget = " warn"
70+ mutex_integer = " warn"
71+ needless_continue = " warn"
72+ needless_for_each = " warn"
73+ negative_feature_names = " warn"
74+ path_buf_push_overwrite = " warn"
75+ print_stderr = " warn"
76+ print_stdout = " warn"
77+ ptr_as_ptr = " warn"
78+ rc_mutex = " warn"
79+ redundant_feature_names = " warn"
80+ ref_option_ref = " warn"
81+ rest_pat_in_fully_bound_structs = " warn"
82+ return_self_not_must_use = " warn"
83+ same_functions_in_if_condition = " warn"
84+ self_named_module_files = " warn"
85+ semicolon_if_nothing_returned = " warn"
86+ single_match_else = " warn"
87+ str_to_string = " warn"
88+ string_add = " warn"
89+ string_add_assign = " warn"
90+ string_lit_as_bytes = " warn"
91+ string_to_string = " warn"
92+ tests_outside_test_module = " warn"
93+ todo = " warn"
94+ trait_duplication_in_bounds = " warn"
95+ unwrap_used = " warn"
96+ verbose_file_reads = " warn"
97+ wildcard_imports = " warn"
98+ zero_sized_map_values = " warn"
99+
19100[package ]
20101name = " PROJECT"
21102version = " 0.0.1"
@@ -46,3 +127,6 @@ default = []
46127[dependencies ]
47128
48129[dev-dependencies ]
130+
131+ [lints ]
132+ workspace = true
0 commit comments