@@ -52,11 +52,70 @@ panic = 'abort'
52
52
overflow-checks = false
53
53
54
54
[features ]
55
-
56
55
default = [" cmd" , " config_file" , " database" , " dotenv" , " music" , " spotify" ]
57
56
cmd = [" dep:clap" , " dep:clap_complete" ]
58
57
config_file = [" dep:directories" , " dep:taplo" ]
59
58
database = [" dep:directories" , " dep:sqlx" , " music" ]
60
59
dotenv = [" dep:dotenvy" ]
61
60
music = [" dep:songbird" ]
62
61
spotify = [" dep:serde" , " music" ]
62
+
63
+ # Clippy lints (last check 1.70.0)
64
+ # The ones commented with forbit are waiting for clippy to ignore external crate
65
+ # macros when checking for them
66
+ [lints .clippy ]
67
+ cargo = " warn"
68
+ cargo_common_metadata = " allow" # Not going tp release on crates.io
69
+ complexity = " warn"
70
+ correctness = " deny"
71
+ nursery = " warn"
72
+ pedantic = " warn"
73
+ unreadable_literal = " allow" # Only used for colors
74
+ perf = " warn"
75
+ restriction = " allow" # Enabling everything is not recomanded
76
+ allow_attributes_without_reason = " warn" # Not stable yet # force
77
+ allow_attributes = " warn" # Not stable yet # force
78
+ as_underscore = " warn" # forbid
79
+ clone_on_ref_ptr = " warn"
80
+ deref_by_slicing = " warn"
81
+ dbg_macro = " warn" # forbid
82
+ disallowed_script_idents = " warn"
83
+ empty_drop = " warn" # forbid
84
+ empty_structs_with_brackets = " warn"
85
+ exhaustive_structs = " warn"
86
+ exit = " warn"
87
+ # expect_used = "warn"
88
+ format_push_string = " warn"
89
+ fn_to_numeric_cast_any = " warn"
90
+ if_then_some_else_none = " warn"
91
+ impl_trait_in_params = " warn" # forbid
92
+ large_include_file = " warn"
93
+ large_stack_arrays = " warn"
94
+ let_underscore_must_use = " warn"
95
+ lossy_float_literal = " warn"
96
+ map_err_ignore = " warn" # forbid
97
+ min_ident_chars = " warn" # forbid
98
+ missing_docs_in_private_items = " warn"
99
+ mixed_read_write_in_expression = " warn"
100
+ multiple_inherent_impl = " warn"
101
+ mutex_atomic = " warn"
102
+ pub_without_shorthand = " warn" # forbid
103
+ rc_mutex = " warn" # forbid
104
+ redundant_type_annotations = " warn"
105
+ rest_pat_in_fully_bound_structs = " warn"
106
+ same_name_method = " warn"
107
+ self_named_module_files = " warn"
108
+ str_to_string = " warn" # forbid
109
+ string_to_string = " warn" # forbid
110
+ tests_outside_test_module = " warn" # forbid
111
+ undocumented_unsafe_blocks = " warn" # forbid
112
+ unnecessary_self_imports = " warn"
113
+ unneeded_field_pattern = " warn"
114
+ unseparated_literal_suffix = " warn" # forbid
115
+ unwrap_in_result = " warn"
116
+ # unwrap_used = "warn"
117
+ style = " warn"
118
+ suspicious = " warn"
119
+
120
+ [lints .rustdoc ]
121
+ private_intra_doc_links = " allow"
0 commit comments