Skip to main content
These rules extend CodeAnt’s default bug and security detection with company-specific coding practices, naming conventions, and standards.
The same settings page also offers pre-built review agents you can enable per repository. See Agent Personas.

Accessing Dashboard Rules

Navigate to your Dashboard settings:
  1. Go to app.codeant.ai/x/settings/ai-rules
  2. Select Rules from the dropdown menu
  3. Click Add New to create a new custom rule

Creating Rules

Step 1: Select Repositories

Choose which repositories should apply this rule:
  • Use the search bar to find specific repositories
  • Select multiple repositories using checkboxes
  • All selected repositories will receive the same rule

Step 2: Configure Rule

Rule Description (Required)
  • Provide a clear, specific description of what this rule enforces
  • Explain the reasoning behind the rule for team clarity
File Patterns (Required)
  • Specify which files this rule applies to using glob patterns
  • Click Add to include multiple patterns
  • Use minimatch syntax for pattern matching

Rule Categories

Code Quality Rules

No Console Logs in Production:
Function Complexity Limits:
Dead Code Detection:

API and Architecture Rules

REST API Conventions:

Pattern Examples

Common File Patterns

Advanced Patterns

Custom rules work alongside CodeAnt’s built-in detection, providing comprehensive code review coverage tailored to your team’s specific needs.