@@ -86,48 +86,54 @@ unexpected_cfgs = { level = "warn", check-cfg = [
8686unused_qualifications = " warn"
8787
8888[workspace .lints .clippy ]
89- # The counts were generated with this command:
90- # cargo clippy --all-targets --workspace --message-format=json --quiet \
91- # | jq -r '.message.code.code | select(. != null and startswith("clippy::"))' \
92- # | sort | uniq -c | sort -h -r
93- #
89+ # Groups
9490all = { level = " warn" , priority = -1 }
9591cargo = { level = " warn" , priority = -1 }
9692pedantic = { level = " warn" , priority = -1 }
97- print_stdout = " warn" # restriction: forbid print/println macros
98- print_stderr = " warn" # restriction: forbid eprint/eprintln macros
99- use_self = " warn" # nursery lint
100- cargo_common_metadata = " allow" # 3240
101- multiple_crate_versions = " allow" # 2882
102- missing_errors_doc = " allow" # 1572
103- missing_panics_doc = " allow" # 946
104- must_use_candidate = " allow" # 322
105- match_same_arms = " allow" # 204
106- cast_possible_truncation = " allow" # 122
107- too_many_lines = " allow" # 101
108- cast_possible_wrap = " allow" # 78
109- cast_sign_loss = " allow" # 70
110- struct_excessive_bools = " allow" # 68
111- cast_precision_loss = " allow" # 52
112- cast_lossless = " allow" # 35
113- ignored_unit_patterns = " allow" # 21
114- similar_names = " allow" # 20
115- needless_pass_by_value = " allow" # 16
116- float_cmp = " allow" # 12
117- items_after_statements = " allow" # 11
118- return_self_not_must_use = " allow" # 8
119- inline_always = " allow" # 6
120- fn_params_excessive_bools = " allow" # 6
121- used_underscore_items = " allow" # 2
122- should_panic_without_expect = " allow" # 2
123-
124- doc_markdown = " allow"
125- unused_self = " allow"
126- enum_glob_use = " allow"
127- unnested_or_patterns = " allow"
128- implicit_hasher = " allow"
129- doc_link_with_quotes = " allow"
93+ perf = { level = " warn" , priority = -1 }
94+
95+ # Restrictions
96+ print_stderr = " warn"
97+ print_stdout = " warn"
98+
99+ # Casts; TODO: replace with fancy std methods when available
100+ cast_lossless = " allow"
101+ cast_possible_truncation = " allow"
102+ cast_possible_wrap = " allow"
103+ cast_precision_loss = " allow"
104+ cast_sign_loss = " allow"
105+
106+ # Others (mostly, curated nursery lints)
107+ assigning_clones = " warn"
108+ branches_sharing_code = " warn"
109+ fallible_impl_from = " warn"
110+ imprecise_flops = " warn"
111+ iter_on_empty_collections = " warn"
112+ iter_on_single_items = " warn"
113+ large_stack_frames = " warn"
114+ missing_const_for_fn = " warn"
115+ needless_collect = " warn"
116+ set_contains_or_insert = " warn"
117+ use_self = " warn"
118+ useless_let_if_seq = " warn"
119+
120+ # Shut up
121+ cargo_common_metadata = " allow"
122+ fn_params_excessive_bools = " allow"
130123format_push_string = " allow"
131- flat_map_option = " allow"
132- from_iter_instead_of_collect = " allow"
133- large_types_passed_by_value = " allow"
124+ ignored_unit_patterns = " allow"
125+ inline_always = " allow"
126+ items_after_statements = " allow"
127+ match_same_arms = " allow"
128+ missing_errors_doc = " allow"
129+ missing_panics_doc = " allow"
130+ multiple_crate_versions = " allow"
131+ must_use_candidate = " allow"
132+ needless_pass_by_value = " allow"
133+ return_self_not_must_use = " allow"
134+ should_panic_without_expect = " allow"
135+ struct_excessive_bools = " allow"
136+ too_many_lines = " allow"
137+ undocumented_unsafe_blocks = " allow"
138+ unnested_or_patterns = " allow"
139+ unused_self = " allow"
0 commit comments