Skip to content

chore: add DeepSource configuration#3

Open
2233admin wants to merge 1 commit into
masterfrom
chore/deepsource-config-20260623183044
Open

chore: add DeepSource configuration#3
2233admin wants to merge 1 commit into
masterfrom
chore/deepsource-config-20260623183044

Conversation

@2233admin

Copy link
Copy Markdown
Owner

Summary

  • Add repository-local DeepSource configuration.
  • Enabled analyzers: rust.
  • Exclude generated, dependency, and build output paths to keep first-run findings actionable.

Validation

  • Parsed .deepsource.toml with Python tomllib.
  • Existing CI/CodeQL/Dependabot configuration is unchanged.

Follow-up

  • Enable 2233admin/qqcli-rs in the DeepSource Dashboard after this PR merges.
  • Review first analysis and tune exclude_patterns if generated files dominate findings.

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@2233admin, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2c195a9f-aa4d-4223-953d-bcc4ef43d539

📥 Commits

Reviewing files that changed from the base of the PR and between 44366d8 and 30ba901.

📒 Files selected for processing (1)
  • .deepsource.toml

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .deepsource.toml
enabled = true

[analyzers.meta]
msrv = "stable"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

Suggested change
msrv = "stable"
msrv = "1.81"

Comment thread .deepsource.toml

[analyzers.meta]
msrv = "stable"
cyclomatic_complexity_threshold = "high"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

Suggested change
cyclomatic_complexity_threshold = "high"
cyclomatic_complexity_threshold = 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant