-
Notifications
You must be signed in to change notification settings - Fork 20
Fix remaining error lints and tweak rule #458
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
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #458 +/- ##
==========================================
+ Coverage 76.92% 78.26% +1.34%
==========================================
Files 270 275 +5
Lines 25582 27444 +1862
==========================================
+ Hits 19678 21479 +1801
- Misses 5904 5965 +61 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
.github/workflows/lint.yml
Outdated
run: cargo install cargo-dylint dylint-link --version 4.1.0 --locked | ||
|
||
- name: Cargo dylint | ||
run: cargo dylint --all |
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.
Should this instead be like this so it tests feature flagged code and doctests/examples?
run: cargo dylint --all | |
run: cargo dylint --all -- --all-features --all-targets |
Same thing on the readme and lint staged file too
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.
True, I removed clippy since dylint includes clippy.
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.
I don't think that's true, for me dylint only seems to be checking it's own lints. It's not warning about other clippy lints.
For example, add this in any file:
let _ = 'a'..'z';
Clippy will warn against it but dylint will not
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.
You're correct. Re-added clippy.
|
…or lints and tweak rule (bitwarden/sdk-internal#458)
🎟️ Tracking
📔 Objective
Error
variants in non error enums.⏰ Reminders before review
team
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes