-
Notifications
You must be signed in to change notification settings - Fork 13
chore: enable pedantic clippy lints #50
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
Greptile OverviewGreptile SummaryThis PR enables Key improvements:
Lint configuration:
The PR includes comprehensive allows for lints that would be too verbose or don't fit the project's coding style. All changes are verified by Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Clippy as Clippy Linter
participant Code as Codebase
Dev->>Code: Enable pedantic & nursery lints
Dev->>Code: Add allow overrides for style preferences
Clippy->>Code: Scan for lint violations
Note over Clippy,Code: Code Quality Improvements
Clippy->>Code: Flag unreadable numeric literals
Dev->>Code: Add separators (1700000000 → 1_700_000_000)
Clippy->>Code: Flag type name repetition
Dev->>Code: Use Self instead of type names
Clippy->>Code: Flag redundant clones in tests
Dev->>Code: Remove unnecessary .clone() calls
Clippy->>Code: Flag uninlined format args
Dev->>Code: Inline format arguments
Clippy->>Code: Flag bool-to-int pattern
Dev->>Code: Use i64::from(bool)
Clippy->>Code: Flag Default trait pattern
Dev->>Code: Use Arc::default()
Clippy->>Code: Re-scan with new config
Note over Clippy,Code: All warnings resolved ✓
|
Enable clippy::pedantic and clippy::nursery lint groups with reasonable allows for style preferences, intentional casts, and documentation verbosity. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Addresses clippy::unreadable_literal warnings by adding underscore separators to improve readability of large numbers. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Addresses clippy::use_self warnings by replacing explicit type names with Self where applicable. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Addresses clippy::redundant_clone warnings by removing unnecessary clone() calls where values are not used after the clone. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Addresses clippy::uninlined_format_args warnings by using inline variable syntax in format! and assert! macros. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Addresses clippy::bool_to_int_with_if warning by using From trait instead of if/else. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Addresses clippy::default_trait_access warning by using explicit type default method. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Allow lints for code style preferences where the existing patterns are acceptable: - trivially_copy_pass_by_ref: &self pattern on small Copy types - manual_let_else: complex tuple destructuring - unnecessary_wraps: Result wrapper for API consistency - unused_async: async keyword for trait/interface compatibility Also fix typo in lint name (passable -> pass). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
## 🤖 New release * `cachey`: 0.9.2 -> 0.9.3 <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.9.3](0.9.2...0.9.3) - 2026-02-01 ### Other - enable pedantic clippy lints ([#50](#50)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
No description provided.