Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1350 +/- ##
==========================================
+ Coverage 44.14% 47.62% +3.48%
==========================================
Files 24 24
Lines 2286 2117 -169
==========================================
- Hits 1009 1008 -1
+ Misses 1277 1109 -168
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fe09ddc to
984d5ac
Compare
f854a13 to
baae88d
Compare
|
This looks pretty good! Can't we ignore/allow Unrelated, we should pass the GITHUB_TOKEN to the "Run profiler" job. It's failing due to rate limit. |
I re-checked the lint configuration and behavior around According to the
When looking at how this plays out in
Specifically, I do agree that managing this at the workspace /
If you have a specific approach in mind that I'm missing, I'd be very happy to try it.
I will file another PR for this! |
|
Oh what I mean was adding this entry to [workspace.lints.clippy]
unnecessary_debug_formatting = "allow" |
I believe with that approach the CLI flags would still take precedence. When running In that case we would still get warnings like: warning: unnecessary `Debug` formatting in `debug!` args
--> git-cliff-core/src/config.rs:522:62
|
522 | log::debug!("Using configuration file from: {supported_path:?}");
| ^^^^^^^^^^^^^^
|
= help: use `Display` formatting and change this to `supported_path.display()`
= note: switching to `Display` formatting will change how the value is shown; escaped characters will no longer be escaped and surrounding quotes will be removed
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_debug_formatting
= note: `-W clippy::unnecessary-debug-formatting` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::unnecessary_debug_formatting)]`So unless we adjust the CI |
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
baae88d to
95f941f
Compare
|
As a side note, due to the changes introduced in this commit, I believe the current |
|
Oh okay, didn't realize enabling the pedantic lint would override that configuration. I was under the impression that config would take precedence over the CLI... Then let's just adjust the CLI for this |
I had the same impression, so this is a bit confusing indeed.
For cargo clippy --tests --verbose -- -D warningseverything is already passing today, so I don't think we need to add any special configuration in On the other hand, cargo clippy --all-targets --verbose -- -W clippy::pedanticdoes currently emit a few warnings, but I think they're all addressable ones, including those covered by this PR. So as a policy, how about not adding any explicit lint configuration to |
|
Yup, that sounds reasonable. We should also make a one-line note before the CLI invocation so that the reason why we are doing that is clear 👍🏼 I'd be fine with doing that in this PR |
Description
This PR fixes a subset of existing
clippy::pedanticlints in the codebase.The changes are intentionally scoped to a limited number of clippy lints to keep the review manageable and to allow reviewers to evaluate each fix incrementally, commit by commit.
See also:
Motivation and Context
Applying
clippy::pedanticon the existing codebase currently produces a large number of warnings, which makes it difficult for contributors to identify actionable issues.This PR reduces that noise by incrementally fixing selected pedantic lints, so that future contributors can more easily surface meaningful feedback from
clippy::pedanticduring development.How Has This Been Tested?
cargo clippy --all-targets -- -W clippy::pedanticcargo testScreenshots / Logs (if applicable)
N/A
Types of Changes
Checklist:
cargo +nightly fmt --allcargo clippy --tests --verbose -- -D warningscargo test