chore: add DeepSource configuration#3
Conversation
|
Warning Review limit reached
More reviews will be available in 47 minutes and 38 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window. Please see our Fair Usage Limits Policy for further information. 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 |
There was a problem hiding this comment.
Code Review
This pull request adds a .deepsource.toml configuration file to enable DeepSource's Rust analyzer. The review feedback suggests specifying an explicit minimum supported Rust version (msrv = '1.81') to align with the project's configuration, and correcting the cyclomatic_complexity_threshold value to an integer instead of a string.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| enabled = true | ||
|
|
||
| [analyzers.meta] | ||
| msrv = "stable" |
There was a problem hiding this comment.
The project's Cargo.toml specifies rust-version = "1.81". Setting msrv to "1.81" instead of "stable" ensures that DeepSource does not suggest language features or APIs that are incompatible with the project's minimum supported Rust version as the Rust stable channel advances.
| msrv = "stable" | |
| msrv = "1.81" |
|
|
||
| [analyzers.meta] | ||
| msrv = "stable" | ||
| cyclomatic_complexity_threshold = "high" |
There was a problem hiding this comment.
DeepSource's cyclomatic_complexity_threshold expects an integer value (representing the maximum cyclomatic complexity allowed for a function, with a default of 15). Providing a string like "high" may be invalid or ignored by the analyzer. Consider specifying an integer threshold instead.
| cyclomatic_complexity_threshold = "high" | |
| cyclomatic_complexity_threshold = 15 |
Summary
Validation
.deepsource.tomlwith Pythontomllib.Follow-up
2233admin/qqcli-rsin the DeepSource Dashboard after this PR merges.exclude_patternsif generated files dominate findings.