-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: address a few clippy lints that break API #7697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
GNU testsuite comparison:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are a bit pedantic, but I guess they're fine. I'd merge this without the clippy config changes, but I'll wait for other maintainers' opinions on those before doing that.
thx @tertsdiepraam - do note that you already have these pedantic lints enabled in the main Cargo.toml -- the reason they were not fixed was because Clippy skips many lints which are "public" - but since uutils goal does not seem to be primarily a library, but rather an executable, it makes no sense to skip so many clippy lints just because the items happen to be exported. Thus, I would highly recommend enabling it in the Clippy.toml to keep the codebase consistent |
I kind of agree, but there is a library component to uutils, which is used by nushell for example. |
thx, didn't know about that. The issue still remains - if you do not enable it in Clippy.toml, new PRs will not be checked by Clippy if they are public - potentially missing some important notifications. The issue with nushell should be solved with the semver checker - which would flag these changes to go into the breaking changes release. |
Since every release is currently breaking, I guess it's more of a thing of not changing things too much arbitrarily. But for a proper long term solution, you are right of course! |
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
* Disabled `avoid-breaking-exported-api` and sorted items in Clippy.toml * Renamed `BSD` -> `Bsd`, `SYSV` -> `SysV`, and `CRC` -> `Crc` to match Rust naming rules * Renamed items in `BackupMode` and `UpdateMode` because they repeated the same word in every item - making it redundant and harder to read
GNU testsuite comparison:
|
avoid-breaking-exported-api
and sorted items in Clippy.tomlBSD
->Bsd
,SYSV
->SysV
, andCRC
->Crc
to match Rust naming rulesBackupMode
andUpdateMode
because they repeated the same word in every item - making it redundant and harder to read