You want to read every rule before it blocks a merge
Open catalog rules with IDs, severities, and fixtures. No opaque "Sonar way" profile you cannot diff in git.
Compare
SonarQube is the category reference for quality gates, coverage, and broad language support. Critiq is an open source CLI with a readable rules catalog for teams that want deterministic PR checks without standing up a Sonar server first.
Where SonarQube shines
SonarQube earned its place with deep quality analytics, enterprise governance, and decades of language coverage. Critiq does not try to replicate that full platform on day one.
Side by side
Both can comment on pull requests. The trade-off is inspectable OSS rules and a lightweight CLI vs a full quality platform with dashboards and gate policies.
| Feature | Critiq | SonarQube |
|---|---|---|
| Open source core you can fork and audit | Yes. CLI, rules catalog, and GitHub Action are OSS. | Partial. Community Edition exists; many teams run SonarCloud or commercial tiers for full features. |
| Runs locally without a review server | Yes. `npx @critiq/cli check` on your machine or in CI. | Yes with SonarScanner, but analysis is typically tied to a SonarQube or SonarCloud project. |
| Inline PR comments on the diff | Yes via the open source critiq-action GitHub Action. | Yes via PR decoration and quality gate status on supported SCMs. |
| Rule inspectability (read the check, run the fixture) | Yes. YAML rules in `@critiq/rules` with RuleSpec tests in the repo. | Partial. Rules and profiles exist, but teams often treat Sonar as a black-box gate rather than a catalog they edit. |
| Coverage, duplication, and complexity gates | Not today. Critiq focuses on rule-backed security and quality findings. | Yes. This is Sonar's default strength and "Sonar way" reference gate. |
| Dependency / SCA and SBOM at platform scale | Planned on the Pro dependency path, not shipped as a suite yet. | Yes with Advanced Security and dependency risk features on supported tiers. |
| AI-generated review or autofix | No AI reviewer shipped. Deterministic rules only; optional AI layers are roadmap. | Optional AI CodeFix and agentic remediation on supported findings. |
When Critiq fits
Critiq is a code review CLI and public rules catalog, not a replacement for Sonar's enterprise quality program. It fits teams that want reproducible PR checks they can read and tune.
Open catalog rules with IDs, severities, and fixtures. No opaque "Sonar way" profile you cannot diff in git.
Install the CLI, run a diff scan locally, then wire critiq-action without provisioning SonarQube Server or SonarCloud org setup first.
Analysis runs where you invoke the CLI. You decide what leaves the machine; there is no required hosted analysis plane for OSS.
Many teams pair a lightweight rule-based backstop with Sonar quality gates. Critiq does not ask you to rip out Sonar on day one.
From the blog

Open source static analysis rules: the Critiq engine, DSL, and 435+ OSS catalog you can run locally, inspect, and tune before CI.
Read article
Compare linting vs rule-based code review: style and syntax from ESLint and friends, security and correctness from inspectable Critiq rules.
Read articleGo deeper
Install Critiq, scan a diff locally, and inspect the catalog before you wire it into CI.