1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #7709 from nyurik/workspace-clippy

Consolidate lint management with workspaces
This commit is contained in:
Daniel Hofstetter 2025-04-09 10:50:11 +02:00 committed by GitHub
commit 75a04c9cc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
103 changed files with 318 additions and 0 deletions

View file

@ -584,3 +584,13 @@ manual_let_else = "warn"
all = { level = "deny", priority = -1 }
cargo = { level = "warn", priority = -1 }
pedantic = { level = "deny", priority = -1 }
# This is the linting configuration for all crates.
# 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"
[workspace.lints.clippy]
all = { level = "deny", priority = -1 }
#cargo = { level = "warn", priority = -1 }

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/arch.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/base32.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/base64.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/basename.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/basenc.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/cat.rs"

View file

@ -12,6 +12,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/chcon.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/chgrp.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/chmod.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/chown.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/chroot.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/cksum.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/comm.rs"

View file

@ -17,6 +17,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/cp.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/csplit.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/cut.rs"

View file

@ -14,6 +14,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/date.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/dd.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/df.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/dir.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/dircolors.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/dirname.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/du.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/echo.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/env.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/expand.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/expr.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[build-dependencies]
num-traits = { workspace = true } # used in src/numerics.rs, which is included by build.rs

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/false.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/fmt.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/fold.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/groups.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/hashsum.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/head.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/hostid.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/hostname.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/id.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/install.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/join.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/kill.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/link.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/ln.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/logname.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/ls.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/mkdir.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/mkfifo.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
name = "uu_mknod"
path = "src/mknod.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/mktemp.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/more.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/mv.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/nice.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/nl.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/nohup.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/nproc.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/numfmt.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/od.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/paste.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/pathchk.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/pinky.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/pr.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/printenv.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/printf.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/ptx.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/pwd.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/readlink.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/realpath.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/rm.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/rmdir.rs"

View file

@ -12,6 +12,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/runcon.rs"

View file

@ -34,6 +34,11 @@ uucore = { workspace = true, features = [
name = "seq"
path = "src/main.rs"
# FIXME: this is the only crate that has a separate lints configuration,
# which for now means a full copy of all clippy and rust lints here.
[lints.clippy]
all = { level = "deny", priority = -1 }
# Allow "fuzzing" as a "cfg" condition name
# https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html
[lints.rust]

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/shred.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/shuf.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/sleep.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/sort.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/split.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/stat.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/stdbuf.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/stty.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/sum.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/sync.rs"

View file

@ -15,6 +15,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/tac.rs"

View file

@ -14,6 +14,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/tail.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/tee.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/test.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/timeout.rs"

View file

@ -14,6 +14,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/touch.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/tr.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/true.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/truncate.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/tsort.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/tty.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/uname.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/unexpand.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/uniq.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/unlink.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/uptime.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/users.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/vdir.rs"

View file

@ -13,6 +13,9 @@ edition = "2024"
readme.workspace = true
[lints]
workspace = true
[lib]
path = "src/wc.rs"

Some files were not shown because too many files have changed in this diff Show more