fix(ci): add DeepSource config so TS modules are not analyzed as scripts - #111
Conversation
|
Deployment failed with the following error: Learn More: https://vercel.com/adevloper152s-projects?upgradeToPro=build-rate-limit |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded ChangesDeepSource configuration
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| JavaScript | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Shell | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Secrets | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Docker | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Python | Jul 31, 2026 9:42p.m. | Review ↗ | |
| CSS | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Rust | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Ruby | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Swift | Jul 31, 2026 9:42p.m. | Review ↗ | |
| PHP | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Lua | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Java | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Go | Jul 31, 2026 9:42p.m. | Review ↗ | |
| C & C++ | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Ansible | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Apex | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Elixir | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Groovy | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Objective-C | Jul 31, 2026 9:42p.m. | Review ↗ | |
| PowerShell | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Terraform | Jul 31, 2026 9:42p.m. | Review ↗ | |
| VB.NET | Jul 31, 2026 9:42p.m. | Review ↗ | |
| SQL | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Scala | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Perl | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Kotlin | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Helm | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Erlang | Jul 31, 2026 9:42p.m. | Review ↗ | |
| Dart | Jul 31, 2026 9:42p.m. | Review ↗ | |
| C# | Jul 31, 2026 9:42p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
|
The following comment was made by an LLM, it may be inaccurate: |
Issue for this PR
Closes #110
Type of change
What does this PR do?
The DeepSource JavaScript check fails on every open PR (#101, #103, #107). The repo has no
.deepsource.toml, so the analyzer runs with defaults, parses our ESM TypeScript files as scripts, and flags every top-levelfunctiondeclaration as JS-0067 ("function declaration in the global scope"). Any PR touching a TS file "introduces" occurrences and goes red.This adds a config telling the analyzer what the codebase actually is:
It also declares test patterns (so test-specific rules relax there), excludes generated SDK output (
packages/sdk/js/src/gen,packages/sdk/js/src/v2/gen) anddist, and keeps the docker, shell, and secrets analyzers active.Note for the reviewer: metric thresholds (e.g. the Documentation Coverage metric DeepSource reports at 4.9%) and per-issue blocking severity are dashboard settings; if runs still fail on metrics after this lands, those need adjusting at app.deepsource.com.
How did you verify your code works?
Config-only change validated against the DeepSource config schema (version 1, analyzer names and meta keys per their docs). The DeepSource run on this PR itself will confirm the JS-0067 flood disappears.
Screenshots / recordings
Not a UI change.
Checklist
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is enabled.Summary by CodeRabbit