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

# Review and activate suggested rules

> Learn how Qodo surfaces suggested rules from your codebase and pull request history, and how to review and activate them.

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>

Suggested rules help you formalize standards that already exist in your codebase and review process. They are not enforced until explicitly reviewed and approved by an admin. Qodo surfaces them as recommendations, giving you visibility into recurring review feedback and best practices, while leaving the decision to review, adjust, and activate each rule in your hands.

<Frame>
  <img src="https://mintcdn.com/qodo/8f9QSVoLIbSaCs56/images/code-review/suggested-rules-table.avif?fit=max&auto=format&n=8f9QSVoLIbSaCs56&q=85&s=fff8575a43220c97754d5598b6859eb6" alt="Suggested rules table showing AI-generated rule recommendations awaiting admin approval" width="1200" height="507" data-path="images/code-review/suggested-rules-table.avif" />
</Frame>

## What are suggested rules?

They appear under **Rules > Suggestions** and act as a recommendation layer between informal practices and enforced standards.

Suggested rules help teams:

* Capture repeated review feedback as formal rules
* Align enforcement with real codebase behavior
* Reduce reliance on tribal knowledge and reviewer memory

## What you see in the Suggestions table

Each suggested rule appears as a pending rule in the Suggestions table, along with the key details you need to evaluate it. This information helps you quickly assess context, relevance, and priority before deciding whether to activate the rule.

## Sources of suggestions

Suggested rules are generated from your organization’s pull request history in two ways:

| Source                                                                           | How it works                                                                                                                                                                                                                                                       |
| -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **[Rule Miner](/governance/rule-enforcement/rule-miner)**                        | Runs automatically on a schedule. Analyzes PR discussions across your repositories and generates suggested rules continuously as new pull requests are merged.                                                                                                     |
| **[User-created rules](/governance/rule-enforcement/generate-and-manage-rules)** | Users (non-admins) can generate rules in the portal. Their rules appear here for admin review before activation, unless an admin has enabled [Auto-approve user suggestions](/install-and-configure/configuration-overview/portal-configuration#review-standards). |

<Warning>
  The `/scan_repo_discussions` command has been deprecated and is no longer available. Rule discovery is now handled automatically by [Rule Miner](/governance/rule-enforcement/rule-miner) on a recurring schedule. No manual trigger is required.
</Warning>

## Reviewing and activating suggestions

To review suggested rules:

<Steps>
  <Step>
    Go to **Rules > Suggestions.**
  </Step>

  <Step>
    Open a suggestion.
  </Step>

  <Step>
    Review the rule content, examples, and source.
  </Step>

  <Step>
    Set the scope of the rule. See [Rule scope](/governance/rule-enforcement/generate-and-manage-rules#anatomy-of-a-rule) for the available options.
  </Step>

  <Step>
    Edit the rule if needed.
  </Step>

  <Step>
    Click **Accept & activate** or **Dismiss.**
  </Step>
</Steps>

Suggestions can also be accepted from the **actions menu (⋮)** in the Suggestions table.

Once accepted, a suggested rule becomes a standard rule and follows the same lifecycle as any other rule.

## Accept or dismiss suggestions in bulk

Select the checkbox next to each suggestion in the Suggestions table, then choose **Accept & activate** or **Dismiss** to process them all at once. To select every suggestion at once, select the checkbox in the table's top row. When you dismiss suggestions, you must confirm the action in a dialog before it is applied.

<Frame>
  <img src="https://mintcdn.com/qodo/z19oMmp1ci9J3Os1/images/governance/suggestions-bulk-actions-toolbar.png?fit=max&auto=format&n=z19oMmp1ci9J3Os1&q=85&s=d780f762bb8dc2afb3eff46da1250342" alt="Suggestions table with multiple rows selected, showing the bulk actions toolbar with Dismiss and Accept & Activate options" width="2568" height="260" data-path="images/governance/suggestions-bulk-actions-toolbar.png" />
</Frame>

## Next steps

* [Rule Miner](/governance/rule-enforcement/rule-miner): Understand how suggested rules are generated automatically.
* [Generate and manage rules](/governance/rule-enforcement/generate-and-manage-rules): Create rules manually and manage active rules.
