Skip to content

Conversation

@nyurik
Copy link
Contributor

@nyurik nyurik commented Apr 9, 2025

At the moment, most crates rely on build scripts and other methods to keep lint-consistency. As of recent, Rust can use workspaces to globally set all the lint configurations.

This PR only adds lint configuration to each crate, but it does not introduce any changes to the code or lint configuration. In the subsequent PRs, I plan to gradually move lints from uucore to workspace, making all code consistent.

Note that seq relies on a custom lint config - which means its configuration may need to be managed by hand until Cargo introduces per-crate overrides.

@nyurik nyurik force-pushed the workspace-clippy branch from bac057d to 3b1bea9 Compare April 9, 2025 07:14
@nyurik
Copy link
Contributor Author

nyurik commented Apr 9, 2025

P.S. I think some other values in each crate can be consolidated - i.e. each cargo toml would simply have these lines, and everything like versions will be controlled from the central Cargo.toml

authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
readme.workspace = true
version.workspace = true

P.S. I did this in #7710

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

At the moment, most crates rely on build scripts and other methods to keep lint-consistency. As of recent, Rust can use workspaces to globally set all the lint configurations.

This PR only adds lint configuration to each crate, but it does not introduce any changes to the code or lint configuration. In the subsequent PRs, I plan to gradually move lints from `uucore` to workspace, making all code consistent.

Note that `seq` relies on a custom lint config - which means its configuration may need to be managed by hand until Cargo introduces per-crate overrides.
@nyurik nyurik force-pushed the workspace-clippy branch from 3b1bea9 to 2413dc9 Compare April 9, 2025 07:59
@github-actions
Copy link

github-actions bot commented Apr 9, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/misc/stdbuf (fails in this run but passes in the 'main' branch)

@cakebaker cakebaker merged commit 75a04c9 into uutils:main Apr 9, 2025
69 checks passed
@cakebaker
Copy link
Contributor

That makes sense, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants