Source: https://codereviewguide.fyi/perch-vs-sonarqube-cloud/

Perch vs SonarQube Cloud · reviewed 2026-10-14

# SonarQube Cloud comparison for English behavior requirements

Add Perch when the requirement is a sentence about intended application behavior. An agent can select that requirement on its working file and rerun it after a fix while existing quality and security gates continue to run.

`perch check` reads working files; `perch scan` reads Git HEAD. Relevant source is sent to TypeSafe’s hosted models. The MIT CLI does not run model inference offline.

[See the rule catch a regression](https://codereviewguide.fyi/perch-vs-sonarqube-cloud/#check)[Install the Perch CLI](https://github.com/lakeday-org/perch/blob/main/docs/install.md)

## Perch

~50¢

per mid-sized pull request · estimate

- 10¢ per 1,000 fresh rule checks
- Cached checks free
- No seat fees · $5 free usage credit
- MIT CLI · English project rules

**SonarQube Cloud**Team starts at $34/month for 100,000 private lines on the current plans page.

Perch estimate: approximately 150 methods read, based on September–October 2026 check density. [Compare billing assumptions](https://codereviewguide.fyi/perch-vs-sonarqube-cloud/#pricing).

**Run it locally**Check uncommitted files

**Keep the rule**Version it with the code

**Read each method**Within the selected parsed scope

**Pay for checks**No per-developer subscription

## Catch the fix an agent removes later.

A saved requirement makes a recurring mistake checkable. In this Perch capture from September 20, 2026, the same rule flags a missing guard and passes after the guard is restored.

### The regression

```
def refund(order, payment):
    payment.refund(order.total)
    order.status = "refunded"
    return order
```

1 check, 1 broken. Refunded orders cannot be refunded again.

### The guarded method

```
def refund(order, payment):
    if order.status == "refunded":
        return order
    payment.refund(order.total)
    order.status = "refunded"
    return order
```

1 check, nothing to report.

Source: [public order-service checkout.py at the linked commit](https://github.com/lakeday-org/perch/blob/4af67af46d76ac99398d61c7ad0a45441760d4dc/test/fixtures/order-service/checkout.py). The captured standalone file is refund.py. [Perch command output and timestamp](https://codereviewguide.fyi/perch-vs-sonarqube-cloud/refund-capture.json). This saved-rule demonstration does not measure SonarQube Cloud's detection rate.

## Perch vs SonarQube Cloud: what your team runs.

Perch turns project behavior into focused checks that agents can run before committing. Use these differences to choose the review workflow and billing model your team needs.

Published Perch capabilities and SonarQube Cloud documentation, reviewed 2026-10-14

| Capability | Perch | SonarQube Cloud |
| --- | --- | --- |
| Billing | 10¢ per 1,000 fresh rule checks. Cached checks free. No seat fees. | Team starts at $34/month for 100,000 private lines on the current plans page.[Vendor documentation ↗](https://www.sonarsource.com/plans-and-pricing/) |
| Before commit | perch check reads the files on disk, including uncommitted edits. | SonarScanner CLI runs in local and CI workflows.[Vendor documentation ↗](https://docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/scanners/sonarscanner-cli) |
| Custom requirements | English ensure rules in perch.yaml: project, file or method scope. No paid custom-rule tier. | Quality profiles, configurable analyzer rules and quality gates.[Vendor documentation ↗](https://docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-gates/managing-custom-quality-gates) |
| Coverage | Each parsed non-test application method in the selected scan scope is read, with caller and callee context. No method-count cap. | Static quality and security analysis across supported languages.[Vendor documentation ↗](https://www.sonarsource.com/products/sonarqube/cloud/) |
| Open source | MIT-licensed CLI. Hosted model analysis is a paid service. | Commercial Cloud; separate LGPLv3 Community Build.[Vendor documentation ↗](https://github.com/SonarSource/helm-chart-sonarqube/blob/master/charts/sonarqube/README.md) |

## SonarQube Cloud comparison for English behavior requirements

Use Perch to express application requirements that need semantic context alongside quality gates. Each saved ensure rule can target a project, file or method and run on uncommitted edits. Perch charges for fresh checks rather than the repository's licensed line count.

## Review before committing

SonarQube Cloud: SonarScanner CLI runs in local and CI workflows. [SonarQube Cloud workflow documentation](https://docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/scanners/sonarscanner-cli).

Perch reads the current working file with `perch check`. For a known requirement, select its rule name and method instead of requesting another broad review. A local CLI describes where the command runs; Perch sends relevant source to hosted TypeSafe models for analysis.

## How do saved requirements differ?

SonarQube Cloud: Quality profiles, configurable analyzer rules and quality gates. [SonarQube Cloud rule documentation](https://docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-gates/managing-custom-quality-gates).

Perch stores English `ensure` rules in `perch.yaml` or `.perch/rules/`. Project, file and method scopes determine what is checked. Run the named check after an edit and after the repair; a rule finding can fail the command and a CI gate. [Perch rules](https://github.com/lakeday-org/perch/blob/main/docs/rules.md) · [Working-file checks](https://github.com/lakeday-org/perch/blob/main/docs/check.md).

## What does the review bill depend on?

[Compare SonarQube Cloud's billing unit and Perch's usage estimate](https://reviewpricing.fyi/sonarqube-cloud/)

## Is the CLI open source and offline?

SonarQube Cloud: Commercial Cloud; separate LGPLv3 Community Build. [SonarQube Cloud product or license source](https://github.com/SonarSource/helm-chart-sonarqube/blob/master/charts/sonarqube/README.md).

Perch’s CLI is MIT-licensed; hosted model inference is a separate paid service included in its published check rate. It does not run the model offline. Unchanged requests can reuse cached answers for free. Fresh judgments can vary, and a passing requirement check does not prove application correctness. [Perch MIT license](https://github.com/lakeday-org/perch/blob/main/LICENSE).

## When does SonarQube Cloud fit the workflow?

SonarQube Cloud provides static quality and security analysis with repository-size tiers. Its free plan may cover the project; repository lines and product coverage must be considered before comparing a paid bill.

## Estimate the review bill

[Perch and SonarQube Cloud: pricing, allowances and workload calculator](https://reviewpricing.fyi/sonarqube-cloud/)

## Make the agent check its next edit.

### Install the CLI

```
npm install -g @lakeday/perch
```

[Perch installation and quick start](https://github.com/lakeday-org/perch/blob/main/docs/install.md)

### Save a behavior rule

```
perch rules add refund-once \
  --where refund.py --each method \
  --ensure "Refunded orders cannot be refunded again."
```

The captured rule checks the requirement shown above. [Rule syntax and selectors](https://github.com/lakeday-org/perch/blob/main/docs/rules.md)

### Check the working file

```
perch check refund.py::refund --rules refund-once
```

Run the check after an edit and after the fix. [Working-tree check documentation](https://github.com/lakeday-org/perch/blob/main/docs/check.md)

Use [perch scan](https://github.com/lakeday-org/perch/blob/main/docs/scan.md) for repository code at Git HEAD and [changed-code CI checks](https://github.com/lakeday-org/perch/blob/main/docs/ci.md) for pull requests. New model judgments can vary. Repeatability comes from cached answers for unchanged requests; a pass does not prove application correctness.

## Keep your project requirements checkable.

Choose Perch when you want an MIT CLI, English behavior rules and usage pricing that stays independent of team size. Give your coding agent a saved check it can run after every relevant edit.

[Install Perch](https://github.com/lakeday-org/perch/blob/main/docs/install.md)

## Sources and price details

Published by Perch. Vendor facts were reviewed on 2026-10-14; plans and allowances can change. Vendor marks belong to their owners.

- [www.sonarsource.com/plans-and-pricing/](https://www.sonarsource.com/plans-and-pricing/)
- [docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/managing-subscription/subscription-plans](https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/managing-subscription/subscription-plans)
- [www.sonarsource.com/products/sonarqube/cloud/](https://www.sonarsource.com/products/sonarqube/cloud/)
- [docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/scanners/sonarscanner-cli](https://docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/scanners/sonarscanner-cli)
- [github.com/SonarSource/helm-chart-sonarqube/blob/master/charts/sonarqube/README.md](https://github.com/SonarSource/helm-chart-sonarqube/blob/master/charts/sonarqube/README.md)
- [docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-profiles/understanding-quality-profiles](https://docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-profiles/understanding-quality-profiles)
- [docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-gates/managing-custom-quality-gates](https://docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-gates/managing-custom-quality-gates)
- [docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/languages](https://docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/languages)

Perch sources and example arithmetic

- [Public CLI source](https://github.com/lakeday-org/perch) · [MIT license](https://github.com/lakeday-org/perch/blob/main/LICENSE)
- [English rules](https://github.com/lakeday-org/perch/blob/main/docs/rules.md) · [Working-tree checks](https://github.com/lakeday-org/perch/blob/main/docs/check.md) · [Method scope and context](https://github.com/lakeday-org/perch/blob/main/docs/scanning.md)
- [Published Perch rate and estimate assumptions](https://codereviewguide.fyi/perch-vs-sonarqube-cloud/pricing-evidence.json)
- [September 20, 2026 refund-rule capture](https://codereviewguide.fyi/perch-vs-sonarqube-cloud/refund-capture.json)

## Compare SonarQube Cloud with other review tools

- [CodeRabbit vs SonarQube Cloud](https://codereviewguide.fyi/coderabbit-vs-sonarqube-cloud/)

[Full head-to-head library and tool selector](https://codereviewguide.fyi/tool-comparisons/)

**Code Review Guide**

Tools & workflows.

Published by Perch · © 2026 Verglas LLC. Code Review Guide is a Perch publication.

Perch’s MIT license covers the CLI; hosted model analysis is a paid service. Relevant source is sent to the configured model service.

[Perch CLI MIT license](https://github.com/lakeday-org/perch/blob/main/LICENSE) · [Article text](https://codereviewguide.fyi/perch-vs-sonarqube-cloud/index.md) · [Resource index](https://codereviewguide.fyi/llms.txt)
