refactor: use stricter linting rules#353
Conversation
WalkthroughThis PR refactors lint policies from scattered module-level denials into centralized crate-level configuration, expands Rustdoc coverage across error types and CLI structures, improves error handling in RestClient by replacing unwrap calls with proper Result propagation, adds three new public RestClient methods for logging support, validates added-line numbers via NonZeroU32 in FileObj, and changes the git module from public to private. ChangesLint policy centralization, documentation, and error handling
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #353 +/- ##
==========================================
- Coverage 92.89% 92.74% -0.16%
==========================================
Files 22 22
Lines 3380 3403 +23
==========================================
+ Hits 3140 3156 +16
- Misses 240 247 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- mandates no panicking code (eg. `unwrap()`, `expect()`, `panic!()`, etc) used in production; tests are allowed to panic. - ensures all public API has a doc comment. Any public API missing a doc comment now has a one. - collapsed single-file submodules into a normal submodule (eg. `common_fs/mod.rs` becomes just `common_fs.rs`)
unwrap(),expect(),panic!(), etc) used in production; tests are allowed to panic.common_fs/mod.rsbecomes justcommon_fs.rs)Summary by CodeRabbit
New Features
Bug Fixes / Improvements
Documentation
Refactor