|
1 | 1 | # coreutils (uutils) |
2 | 2 | # * see the repository LICENSE, README, and CONTRIBUTING files for more information |
3 | 3 |
|
4 | | -# spell-checker:ignore (libs) bigdecimal datetime serde bincode fundu gethostid kqueue libselinux mangen memmap procfs uuhelp |
| 4 | +# spell-checker:ignore (libs) bigdecimal datetime serde bincode fundu gethostid kqueue libselinux mangen memmap procfs uuhelp startswith constness expl |
5 | 5 |
|
6 | 6 | [package] |
7 | 7 | name = "coreutils" |
@@ -599,13 +599,74 @@ pedantic = { level = "deny", priority = -1 } |
599 | 599 | unused_qualifications = "warn" |
600 | 600 |
|
601 | 601 | [workspace.lints.clippy] |
602 | | -all = { level = "deny", priority = -1 } |
603 | | -#cargo = { level = "warn", priority = -1 } |
604 | | -cognitive_complexity = "warn" |
605 | | -default_trait_access = "warn" |
606 | | -implicit_clone = "warn" |
607 | | -manual_string_new = "warn" |
608 | | -match_bool = "warn" |
609 | | -range-plus-one = "warn" |
610 | | -redundant-clone = "warn" |
611 | | -ref_option = "warn" |
| 602 | +# The counts were generated with this command: |
| 603 | +# cargo clippy --all-targets --workspace --message-format=json --quiet \ |
| 604 | +# | jq -r '.message.code.code | select(. != null and startswith("clippy::"))' \ |
| 605 | +# | sort | uniq -c | sort -h -r |
| 606 | +# |
| 607 | +# TODO: |
| 608 | +# remove large_stack_arrays when https://github.com/rust-lang/rust-clippy/issues/13774 is fixed |
| 609 | +# |
| 610 | +all = { level = "warn", priority = -1 } |
| 611 | +cargo = { level = "warn", priority = -1 } |
| 612 | +pedantic = { level = "warn", priority = -1 } |
| 613 | +cargo_common_metadata = "allow" # 3240 |
| 614 | +multiple_crate_versions = "allow" # 2314 |
| 615 | +missing_errors_doc = "allow" # 1504 |
| 616 | +missing_panics_doc = "allow" # 946 |
| 617 | +must_use_candidate = "allow" # 322 |
| 618 | +doc_markdown = "allow" # 267 |
| 619 | +match_same_arms = "allow" # 212 |
| 620 | +unnecessary_semicolon = "allow" # 156 |
| 621 | +redundant_closure_for_method_calls = "allow" # 133 |
| 622 | +cast_possible_truncation = "allow" # 118 |
| 623 | +too_many_lines = "allow" # 81 |
| 624 | +cast_possible_wrap = "allow" # 76 |
| 625 | +trivially_copy_pass_by_ref = "allow" # 74 |
| 626 | +cast_sign_loss = "allow" # 70 |
| 627 | +struct_excessive_bools = "allow" # 68 |
| 628 | +single_match_else = "allow" # 66 |
| 629 | +redundant_else = "allow" # 58 |
| 630 | +map_unwrap_or = "allow" # 54 |
| 631 | +cast_precision_loss = "allow" # 52 |
| 632 | +unnested_or_patterns = "allow" # 40 |
| 633 | +inefficient_to_string = "allow" # 38 |
| 634 | +unnecessary_wraps = "allow" # 37 |
| 635 | +cast_lossless = "allow" # 33 |
| 636 | +ignored_unit_patterns = "allow" # 29 |
| 637 | +needless_continue = "allow" # 28 |
| 638 | +items_after_statements = "allow" # 22 |
| 639 | +similar_names = "allow" # 20 |
| 640 | +wildcard_imports = "allow" # 18 |
| 641 | +used_underscore_binding = "allow" # 16 |
| 642 | +large_stack_arrays = "allow" # 14 |
| 643 | +float_cmp = "allow" # 12 |
| 644 | +# semicolon_if_nothing_returned = "allow" # 9 |
| 645 | +used_underscore_items = "allow" # 8 |
| 646 | +return_self_not_must_use = "allow" # 8 |
| 647 | +needless_pass_by_value = "allow" # 8 |
| 648 | +# manual_let_else = "allow" # 8 |
| 649 | +# needless_raw_string_hashes = "allow" # 7 |
| 650 | +match_on_vec_items = "allow" # 6 |
| 651 | +inline_always = "allow" # 6 |
| 652 | +# format_push_string = "allow" # 6 |
| 653 | +fn_params_excessive_bools = "allow" # 6 |
| 654 | +# single_char_pattern = "allow" # 4 |
| 655 | +# ptr_cast_constness = "allow" # 4 |
| 656 | +# match_wildcard_for_single_variants = "allow" # 4 |
| 657 | +# manual_is_variant_and = "allow" # 4 |
| 658 | +# explicit_deref_methods = "allow" # 4 |
| 659 | +# enum_glob_use = "allow" # 3 |
| 660 | +# unnecessary_literal_bound = "allow" # 2 |
| 661 | +# stable_sort_primitive = "allow" # 2 |
| 662 | +should_panic_without_expect = "allow" # 2 |
| 663 | +# ptr_as_ptr = "allow" # 2 |
| 664 | +# needless_for_each = "allow" # 2 |
| 665 | +if_not_else = "allow" # 2 |
| 666 | +expl_impl_clone_on_copy = "allow" # 2 |
| 667 | +# cloned_instead_of_copied = "allow" # 2 |
| 668 | +# borrow_as_ptr = "allow" # 2 |
| 669 | +bool_to_int_with_if = "allow" # 2 |
| 670 | +# ref_as_ptr = "allow" # 2 |
| 671 | +# unreadable_literal = "allow" # 1 |
| 672 | +uninlined_format_args = "allow" # ? |
0 commit comments