Create and manage custom review rules through CodeAnt AI Dashboard
These rules extend CodeAnt’s default bug and security detection with company-specific coding practices, naming conventions, and standards.
Navigate to your Dashboard settings:
Choose which repositories should apply this rule:
Rule Description (Required)
File Patterns (Required)
No Console Logs in Production:
Function Complexity Limits:
Dead Code Detection:
REST API Conventions:
Pattern | Description |
---|---|
src/**/*.{js,ts} | All JavaScript/TypeScript in src |
**/*.test.* | All test files |
src/components/**/*.tsx | React components only |
!**/node_modules/** | Exclude dependencies |
{api,routes}/**/*.js | API and route files |
src/{models,entities}/**/* | Data models |
**/*.{css,scss,less} | Stylesheets |
src/utils/**/*.ts | Utility functions |
Pattern | Description | |
---|---|---|
`src/**/!(*.test | .spec).` | Source files excluding tests |
**/*.{config,conf}.{js,ts} | Configuration files | |
{src,lib,app}/**/*.ts | Multiple source directories | |
**/*{Controller,Service,Repository}.* | Specific class types | |
src/**/*.{gql,graphql} | GraphQL files |
Custom rules work alongside CodeAnt’s built-in detection, providing comprehensive code review coverage tailored to your team’s specific needs.
Create and manage custom review rules through CodeAnt AI Dashboard
These rules extend CodeAnt’s default bug and security detection with company-specific coding practices, naming conventions, and standards.
Navigate to your Dashboard settings:
Choose which repositories should apply this rule:
Rule Description (Required)
File Patterns (Required)
No Console Logs in Production:
Function Complexity Limits:
Dead Code Detection:
REST API Conventions:
Pattern | Description |
---|---|
src/**/*.{js,ts} | All JavaScript/TypeScript in src |
**/*.test.* | All test files |
src/components/**/*.tsx | React components only |
!**/node_modules/** | Exclude dependencies |
{api,routes}/**/*.js | API and route files |
src/{models,entities}/**/* | Data models |
**/*.{css,scss,less} | Stylesheets |
src/utils/**/*.ts | Utility functions |
Pattern | Description | |
---|---|---|
`src/**/!(*.test | .spec).` | Source files excluding tests |
**/*.{config,conf}.{js,ts} | Configuration files | |
{src,lib,app}/**/*.ts | Multiple source directories | |
**/*{Controller,Service,Repository}.* | Specific class types | |
src/**/*.{gql,graphql} | GraphQL files |
Custom rules work alongside CodeAnt’s built-in detection, providing comprehensive code review coverage tailored to your team’s specific needs.