Skip to content

Commit 37ba461

Browse files
committedAug 24, 2024··
Merge branch 'global-lints'
2 parents db147b9 + 7083b7a commit 37ba461

File tree

102 files changed

+300
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+300
-77
lines changed
 

‎.cargo/config.toml

-22
This file was deleted.

‎Cargo.toml

+78
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
lints.workspace = true
2+
13
[package]
24
name = "gitoxide"
35
description = "A command-line application for interacting with git repositories"
@@ -311,3 +313,79 @@ features = ["document-features", "max"]
311313
[package.metadata.binstall]
312314
pkg-url = "{ repo }/releases/download/v{ version }/gitoxide-max-pure-v{ version }-{ target }{ archive-suffix }"
313315
bin-dir = "gitoxide-max-pure-v{ version }-{ target }/{ bin }{ binary-ext }"
316+
317+
[workspace.lints.rust]
318+
# TODO: enable this
319+
# unused_qualifications = "warn"
320+
321+
[workspace.lints.clippy]
322+
pedantic = { level = "warn", priority = -1 }
323+
#
324+
# Reviewed and allowed lints
325+
enum_glob_use = "allow" # x97
326+
missing_errors_doc = "allow" # x1792
327+
missing_panics_doc = "allow" # x447
328+
module_name_repetitions = "allow" # x125
329+
must_use_candidate = "allow" # x1696
330+
#
331+
# Lints that we may want to forbid in the future
332+
default_trait_access = "allow" # x709
333+
doc_markdown = "allow" # x552
334+
cast_possible_truncation = "allow" # x216
335+
needless_pass_by_value = "allow" # x205
336+
return_self_not_must_use = "allow" # x204
337+
unreadable_literal = "allow" # x169
338+
items_after_statements = "allow" # x164
339+
single_match_else = "allow" # x162
340+
too_many_lines = "allow" # x161
341+
unnecessary_wraps = "allow" # x110
342+
match_same_arms = "allow" # x99
343+
cast_lossless = "allow" # x91
344+
ignored_unit_patterns = "allow" # x80
345+
used_underscore_binding = "allow" # x75
346+
needless_raw_string_hashes = "allow" # x75
347+
implicit_clone = "allow" # x70
348+
manual_let_else = "allow" # x64
349+
cast_precision_loss = "allow" # x56
350+
trivially_copy_pass_by_ref = "allow" # x43
351+
redundant_else = "allow" # x42
352+
if_not_else = "allow" # x37
353+
match_wildcard_for_single_variants = "allow" # x35
354+
cast_sign_loss = "allow" # x35
355+
similar_names = "allow" # x32
356+
struct_excessive_bools = "allow" # x29
357+
cast_possible_wrap = "allow" # x26
358+
explicit_iter_loop = "allow" # x24
359+
explicit_into_iter_loop = "allow" # x22
360+
explicit_deref_methods = "allow" # x22
361+
inconsistent_struct_constructor = "allow" # x18
362+
range_plus_one = "allow" # x17
363+
inefficient_to_string = "allow" # x14
364+
from_iter_instead_of_collect = "allow" # x13
365+
unused_self = "allow" # x10
366+
many_single_char_names = "allow" # x10
367+
manual_string_new = "allow" # x10
368+
iter_not_returning_iterator = "allow" # x10
369+
option_option = "allow" # x9
370+
inline_always = "allow" # x8
371+
manual_assert = "allow" # x7
372+
iter_without_into_iter = "allow" # x6
373+
copy_iterator = "allow" # x6
374+
should_panic_without_expect = "allow" # x5
375+
transmute_ptr_to_ptr = "allow" # x4
376+
match_wild_err_arm = "allow" # x4
377+
manual_is_variant_and = "allow" # x4
378+
bool_to_int_with_if = "allow" # x4
379+
struct_field_names = "allow" # x3
380+
wildcard_imports = "allow" # x2
381+
needless_for_each = "allow" # x2
382+
naive_bytecount = "allow" # x2
383+
mut_mut = "allow" # x2
384+
match_bool = "allow" # x2
385+
fn_params_excessive_bools = "allow" # x2
386+
filter_map_next = "allow" # x2
387+
checked_conversions = "allow" # x2
388+
borrow_as_ptr = "allow" # x2
389+
unnecessary_join = "allow" # x1
390+
stable_sort_primitive = "allow" # x1
391+
no_effect_underscore_binding = "allow" # x1

0 commit comments

Comments
 (0)
Please sign in to comment.