mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
Merge pull request #8771 from cakebaker/clippy_lints_workspace_uucore
clippy: add missing `[lints] workspace = true` to `uucore/Cargo.toml`
This commit is contained in:
commit
40d0cf0aa5
2 changed files with 28 additions and 1 deletions
26
Cargo.toml
26
Cargo.toml
|
|
@ -637,7 +637,7 @@ pedantic = { level = "deny", priority = -1 }
|
|||
# Eventually the clippy settings from the `[lints]` section should be moved here.
|
||||
# In order to use these, all crates have `[lints] workspace = true` section.
|
||||
[workspace.lints.rust]
|
||||
unused_qualifications = "warn"
|
||||
#unused_qualifications = "warn" // TODO: fix warnings in uucore, then re-enable this lint
|
||||
|
||||
[workspace.lints.clippy]
|
||||
# The counts were generated with this command:
|
||||
|
|
@ -682,3 +682,27 @@ inline_always = "allow" # 6
|
|||
fn_params_excessive_bools = "allow" # 6
|
||||
used_underscore_items = "allow" # 2
|
||||
should_panic_without_expect = "allow" # 2
|
||||
|
||||
doc_markdown = "allow"
|
||||
unused_self = "allow"
|
||||
map_unwrap_or = "allow"
|
||||
enum_glob_use = "allow"
|
||||
ptr_cast_constness = "allow"
|
||||
if_not_else = "allow"
|
||||
borrow_as_ptr = "allow"
|
||||
ptr_as_ptr = "allow"
|
||||
manual_let_else = "allow"
|
||||
unnecessary_semicolon = "allow"
|
||||
bool_to_int_with_if = "allow"
|
||||
needless_raw_string_hashes = "allow"
|
||||
unreadable_literal = "allow"
|
||||
unnested_or_patterns = "allow"
|
||||
semicolon_if_nothing_returned = "allow"
|
||||
implicit_hasher = "allow"
|
||||
struct_field_names = "allow"
|
||||
doc_link_with_quotes = "allow"
|
||||
single_char_pattern = "allow"
|
||||
format_push_string = "allow"
|
||||
flat_map_option = "allow"
|
||||
from_iter_instead_of_collect = "allow"
|
||||
large_types_passed_by_value = "allow"
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@ version.workspace = true
|
|||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[lib]
|
||||
path = "src/lib/lib.rs"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue