-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
lint: fix lints of new Rust version #6102
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
21d6eab
lint: fix lint `clippy::suspicious_open_options`
Krysztal112233 63d92cd
lint: fix `clippy::useless_vec` in `unit_tests.rs`
Krysztal112233 0bb1793
lint: fix `clippy::bool_assert_comparison` in `perms.rs`
Krysztal112233 72b7266
lint: allow `clippy::needless_borrow` in `perms.rs`
Krysztal112233 b66d6df
lint: fix `clippy::needless_borrows_for_generic_args` in `perms.rs`
Krysztal112233 eb3fac3
lint: fix `clippy::needless_borrows_for_generic_args` in `perms.rs`
Krysztal112233 ee09f27
lint: fix `clippy::useless_format` in `test_cksum.rs`
Krysztal112233 fd36404
lint: fix `clippy::unnecessary_to_owned` in `test_cksum.rs`
Krysztal112233 2b5e7ca
lint: fix `clippy::manual_str_repeat` in `parse_glob.rs`
Krysztal112233 48e376e
lint: allow `clippy::suspicious_open_options` in `sort.rs`
Krysztal112233 35c39a6
Merge branch 'uutils:main' into main
Krysztal112233 ef8c379
lint: fix `clippy::redundant_clone` of `test_dd.rs` `test_cp.rs`
Krysztal112233 d21dc12
lint: fix `clippy::suspicious_open_options` of project.
Krysztal112233 1484d06
lint: fix `clippy::manual_main_separator_str` for `util.rs` on Window…
Krysztal112233 6f5dfa3
lint: fix `unused_imports` of `util.rs`
Krysztal112233 a61761f
util: fix compile failed on Windows.
Krysztal112233 29d14cb
lint: fix `unused_imports` on freebsd target.
Krysztal112233 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
msrv = "1.70.0" | ||
cognitive-complexity-threshold = 10 | ||
cognitive-complexity-threshold = 24 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Wait this was super low all this time??? No wonder it was so annoying. Let's just remove this line; the default value is 25 according to the documentation
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.
@sylvestre I see that you introduced the lower value. I think 10 is a bit too low, but I'm happy to compromise on something inbetween as well. I think the problem with 10 is that it's a good hint that a function is too complex, but too restrictive to enforce.
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.
sure, it was to identify too long/complex functions. I am happy where we are now with 25
thanks