> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qodo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Rule analytics

> Rules analytics provides visibility into how rules are applied across pull requests in the Qodo portal. It helps teams understand rule effectiveness, monitor violations, and track how often issues are resolved before code is merged.

export const AzureIcon = () => <svg className="azure-icon" viewBox="0 0 18 18" width="12" height="12" style={{
  display: "inline",
  verticalAlign: "middle",
  flexShrink: 0,
  background: "transparent"
}}>
    <defs>
      <linearGradient id="azure-gradient" x1="9" y1="16.97" x2="9" y2="1.03" gradientUnits="userSpaceOnUse">
        <stop offset="0" stopColor="currentColor" />
        <stop offset="0.16" stopColor="currentColor" />
        <stop offset="0.53" stopColor="currentColor" />
        <stop offset="0.82" stopColor="currentColor" />
        <stop offset="1" stopColor="currentColor" />
      </linearGradient>
    </defs>
    <path d="M17,4v9.74l-4,3.28-6.2-2.26V17L3.29,12.41l10.23.8V4.44Zm-3.41.49L7.85,1V3.29L2.58,4.84,1,6.87v4.61l2.26,1V6.57Z" fill="url(#azure-gradient)" />
  </svg>;

<div style={{ display: "flex", alignItems: "center", gap: "6px" }}>
  <Badge color="outline-purple" size="sm" shape="pill">Beta</Badge>
  <Badge color="outline-provider" size="sm" shape="pill" icon="github">GitHub</Badge>
  <Badge color="outline-provider" size="sm" shape="pill" icon="bitbucket">Bitbucket</Badge>
  <Badge color="outline-provider" size="sm" shape="pill"><AzureIcon />Azure DevOps</Badge>
</div>

Rule analytics are available at two levels in the Qodo portal. All metrics reflect activity from the last 30 days.

## Aggregated rules analytics

Aggregated rules analytics provide a high-level view of how rules are applied across pull requests in the Qodo portal. These analytics reflect rule activity from the last 30 days and are available at the top of the Review Standards page.

<Frame>
  <img src="https://mintcdn.com/qodo/8f9QSVoLIbSaCs56/images/code-review/rules-analytics-aggregated.avif?fit=max&auto=format&n=8f9QSVoLIbSaCs56&q=85&s=39b8da45d02d517554af9017eacb0af5" alt="Aggregated rules analytics showing passed evaluations, detected violations, and merged violations" width="1200" height="131" data-path="images/code-review/rules-analytics-aggregated.avif" />
</Frame>

To access aggregated analytics:

<Steps>
  <Step>
    Open the [**Qodo portal**](https://app.qodost.st.qodo.ai/).
  </Step>

  <Step>
    Select **Review Standards** from the left navigation.
  </Step>

  <Step>
    View the analytics summary displayed at the top of the Review Standards page.
  </Step>
</Steps>

The metrics are shown as summary cards:

* **Passed (no violations)** – The number of evaluations where no rule violations were detected
* **Detected violations** – The total number of rule violations identified during pull request reviews
* **Merged violations** – The number of PRs that were merged with one or more unresolved rule violations

These metrics help teams understand how frequently rules are triggered, how often violations are resolved before merge, and where rule enforcement may need attention.

### Exporting analytics

Merged violations analytics can be exported as a CSV file using the **⬇︎ download icon** in the top-right corner of the Review Standards page. The exported file includes merged violations metrics from the last 30 days and can be used to perform offline analysis, share insights with stakeholders, and track trends over time outside the portal.

## Individual rule analytics

Individual Rule Analytics provide detailed insights into how a specific rule behaves across pull requests.

<Frame>
  <img src="https://mintcdn.com/qodo/8f9QSVoLIbSaCs56/images/code-review/rules-analytics-individual.png?fit=max&auto=format&n=8f9QSVoLIbSaCs56&q=85&s=94acb9fa80330238297a940d38c30748" alt="Individual rule analytics page showing detailed violation statistics and resolution trends" width="640" height="169" data-path="images/code-review/rules-analytics-individual.png" />
</Frame>

To access individual rule analytics:

<Steps>
  <Step>
    Open the [**Qodo portal**](https://app.qodost.st.qodo.ai/).
  </Step>

  <Step>
    Select **Review Standards** from the left navigation.
  </Step>

  <Step>
    Click a rule from the **Rules** tab.
  </Step>
</Steps>

This opens the rule’s full definition along with rule-level analytics.

Each rule’s analytics show:

* How often the rule was found compliant
* How often the rule is violated
* How frequently violations are merged

These insights help teams identify noisy or ineffective rules, understand developer behavior around specific rule types, and decide whether a rule requires tuning, disabling, or stronger enforcement.
