mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-02 07:53:55 +03:00
79 lines
2.4 KiB
TOML
79 lines
2.4 KiB
TOML
# https://github.com/ericseppanen/cargo-cranky
|
|
# cargo install cargo-cranky && cargo cranky
|
|
|
|
deny = [
|
|
"clippy::all",
|
|
"clippy::perf",
|
|
"clippy::correctness",
|
|
"clippy::complexity",
|
|
"clippy::style",
|
|
"clippy::pedantic",
|
|
# selection from clippy::restriction (see https://rust-lang.github.io/rust-clippy/master/index.html#/?groups=restriction)
|
|
"clippy::as_underscore",
|
|
"clippy::assertions_on_result_states",
|
|
"clippy::clone_on_ref_ptr",
|
|
"clippy::create_dir",
|
|
"clippy::dbg_macro",
|
|
"clippy::decimal_literal_representation",
|
|
"clippy::default_numeric_fallback",
|
|
"clippy::empty_drop",
|
|
"clippy::empty_structs_with_brackets",
|
|
"clippy::exit",
|
|
"clippy::filetype_is_file",
|
|
"clippy::float_cmp_const",
|
|
"clippy::fn_to_numeric_cast_any",
|
|
"clippy::format_push_string",
|
|
"clippy::get_unwrap",
|
|
"clippy::integer_division",
|
|
"clippy::lossy_float_literal",
|
|
"clippy::mem_forget",
|
|
"clippy::mixed_read_write_in_expression",
|
|
"clippy::mutex_atomic",
|
|
"clippy::needless_raw_strings",
|
|
"clippy::non_ascii_literal",
|
|
"clippy::panic",
|
|
"clippy::print_stderr",
|
|
"clippy::pub_without_shorthand",
|
|
"clippy::rc_buffer",
|
|
"clippy::rc_mutex",
|
|
"clippy::redundant_type_annotations",
|
|
"clippy::ref_patterns",
|
|
"clippy::rest_pat_in_fully_bound_structs",
|
|
"clippy::same_name_method",
|
|
"clippy::string_add",
|
|
"clippy::string_lit_chars_any",
|
|
"clippy::string_slice",
|
|
"clippy::string_to_string",
|
|
"clippy::suspicious_xor_used_as_pow",
|
|
"clippy::todo",
|
|
"clippy::try_err",
|
|
"clippy::unimplemented",
|
|
"clippy::unnecessary_self_imports",
|
|
"clippy::unneeded_field_pattern",
|
|
"clippy::unseparated_literal_suffix",
|
|
"clippy::if_then_some_else_none",
|
|
"clippy::use_debug",
|
|
#TODO:
|
|
# "clippy::partial_pub_fields"
|
|
# "clippy::print_stdout"
|
|
# "clippy::unwrap_used"
|
|
# "clippy::unwrap_in_result"
|
|
]
|
|
|
|
allow = [
|
|
# reason = "noise and or false-positives"
|
|
"clippy::missing_errors_doc",
|
|
"clippy::used_underscore_binding",
|
|
"clippy::must_use_candidate",
|
|
"clippy::module_name_repetitions",
|
|
"clippy::missing_panics_doc",
|
|
"clippy::too_many_lines",
|
|
"clippy::implicit_hasher",
|
|
"clippy::if_not_else",
|
|
"clippy::return_self_not_must_use",
|
|
"clippy::inconsistent_struct_constructor",
|
|
"clippy::match_wildcard_for_single_variants",
|
|
"clippy::unnested_or_patterns",
|
|
"clippy::similar_names",
|
|
]
|