Skip to content

feat(cli): per-check prescan skip and warn overrides - #2899

Merged
riderx merged 3 commits into
mainfrom
cursor/21651f52
Aug 6, 2026
Merged

feat(cli): per-check prescan skip and warn overrides#2899
riderx merged 3 commits into
mainfrom
cursor/21651f52

Conversation

@riderx

@riderx riderx commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary (AI generated)

  • Add --prescan-skip / --prescan-warn on build request (and --skip / --warn on build prescan) so users can ignore or downgrade specific check ids without disabling the whole scan
  • Keep other checks running and failing as usual; unknown ids fail fast
  • Document the full 80-check catalog and ignore examples in cli/webdocs/prescan-checks.mdx

Motivation (AI generated)

Customers with intentional Capacitor server.url shells (e.g. Next.js remote web apps) hit ios/capacitor-server-url-shipped. Global --no-prescan / --prescan-ignore-fatal hide every other check. Per-check CLI overrides are safer than a YAML ignore file.

Business Impact (AI generated)

Unblocks legitimate remote-web Capacitor architectures for cloud builds without weakening prescan for everyone else. Reduces support friction around the Aug 14 enforcement rollout.

Test Plan (AI generated)

  • cd cli && bun test test/prescan/overrides.test.ts test/prescan/engine.test.ts
  • build request --prescan-skip ios/capacitor-server-url-shipped still runs other checks
  • build request --prescan-warn ios/capacitor-server-url-shipped turns that error into a warning
  • Unknown check id errors clearly
  • Docs page lists all checks and ignore examples

Generated with AI

Made with Cursor


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Review in cubic

Let users target individual check ids instead of disabling the whole
prescan, and document the full check catalog with ignore examples.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

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 reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 0559ba8f-ed61-4809-bfe1-1ce22b26712e

📥 Commits

Reviewing files that changed from the base of the PR and between 0fdf275 and 53e0f14.

📒 Files selected for processing (14)
  • cli/README.md
  • cli/skills/native-builds/SKILL.md
  • cli/src/build/prescan/command.ts
  • cli/src/build/prescan/engine.ts
  • cli/src/build/prescan/overrides.ts
  • cli/src/build/prescan/registry.ts
  • cli/src/build/request.ts
  • cli/src/index.ts
  • cli/src/schemas/build.ts
  • cli/src/schemas/sdk.ts
  • cli/src/sdk.ts
  • cli/test/prescan/overrides.test.ts
  • cli/webdocs/build.mdx
  • cli/webdocs/prescan-checks.mdx
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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

@cursor

cursor Bot commented Aug 6, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_7c0cbb06-2630-4296-9c04-eaf3c6a6a141)

@cubic-dev-ai cubic-dev-ai 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.

1 issue found across 13 files

Confidence score: 3/5

  • In cli/src/schemas/sdk.ts and CapgoSDK.requestBuild, prescanSkip/prescanWarn are exposed in the SDK schema but not forwarded to the build handler, so callers can set options that are silently ignored and get unexpected prescan behavior in production builds — wire both fields through requestBuild (or remove them from the public schema until supported).
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="cli/src/schemas/sdk.ts">

<violation number="1" location="cli/src/schemas/sdk.ts:383">
P2: The SDK schema now publicly advertises `prescanSkip`/`prescanWarn`, but `CapgoSDK.requestBuild` never forwards these fields into the underlying build handler (it only forwards `prescan` and `prescanIgnoreFatal`). An SDK caller who passes these overrides gets a silent no-op — the targeted check still runs and can still block the build — while the CLI path (via `--prescan-skip`/`--prescan-warn`) does honor them. Recommend forwarding the two arrays into `internalOptions` (mirroring lines 760-761) so the SDK honors per-check overrides the same way the CLI does, or dropping the fields from the schema until they're actually supported.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread cli/src/schemas/sdk.ts
@codspeed-hq

codspeed-hq Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 43 untouched benchmarks
⏩ 2 skipped benchmarks1


Comparing cursor/21651f52 (f88ae92) with main (60a641e)2

Open in CodSpeed

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (248ef1b) during the generation of this report, so 60a641e was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@cursor

cursor Bot commented Aug 6, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_6f1416b9-97bc-4bd7-91bc-0946782ba44b)

Honor per-check overrides in CapgoSDK.requestBuild so SDK callers
match the CLI path instead of silently ignoring schema fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Aug 6, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_9a02e768-7cc9-4d80-a287-3df37188116d)

@riderx
riderx merged commit 34de8fc into main Aug 6, 2026
12 of 13 checks passed
@riderx
riderx deleted the cursor/21651f52 branch August 6, 2026 20:25
@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

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