Skip to content

chore: add DeepSource configuration - #8

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

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

Conversation

@2233admin

Copy link
Copy Markdown
Owner

Summary

  • Add repository-local DeepSource configuration.
  • Enabled analyzers: cxx, shell.
  • 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/CICADA 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 46 minutes and 16 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: 799374b3-1be6-4c2d-9b7d-da4415e0d8ae

📥 Commits

Reviewing files that changed from the base of the PR and between 283a42d and 3c06c22.

📒 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 analyzers for C++ and Shell. Feedback suggests removing the unsupported [analyzers.meta] block for the shell analyzer to prevent schema validation errors, and narrowing down the test_patterns glob **/*test* to avoid misclassifying production assets as test code.

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
Comment on lines +29 to +34
[[analyzers]]
name = "shell"
enabled = true

[analyzers.meta]
dialect = "bash"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The DeepSource shell analyzer does not support any meta options (such as dialect). Specifying an invalid or unsupported meta option will cause a schema validation error in DeepSource, preventing the analysis from running.

ShellCheck (which powers the shell analyzer) automatically detects the shell dialect from the shebang line (e.g., #!/bin/bash in your scripts) or via inline directives. We should remove the [analyzers.meta] block for the shell analyzer.

Suggested change
[[analyzers]]
name = "shell"
enabled = true
[analyzers.meta]
dialect = "bash"
[[analyzers]]
name = "shell"
enabled = true

Comment thread .deepsource.toml
Comment on lines +3 to +8
test_patterns = [
"tests/**",
"test/**",
"**/*test*",
"**/*.test.*",
]

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 pattern **/*test* is extremely broad and will match any file or directory path containing the substring "test". In this repository, this matches production assets such as assets/bundled_skills/test-helper/skill.md.

This can cause DeepSource to misclassify production files/assets as test code, which applies different (often less strict) analysis rules. Consider removing **/*test* or replacing it with more specific patterns.

test_patterns = [
  "tests/**",
  "test/**",
  "**/*.test.*",
]

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