Analysis & detection
What is Custom Rule Authoring?
Writing your own analysis rules for conventions, internal frameworks or organisation-specific risks.
Every codebase has rules no vendor ships: use this internal HTTP client, never call that deprecated helper, all handlers must check this permission. Custom rules turn tribal knowledge and repeated review comments into automated checks.
The deciding factor is authoring cost. A rule language you can write in an afternoon gets used; one requiring a compiler plugin and a week of study does not, however powerful it is.
Top 19 Custom Rule Authoring tools
Every tool in the directory documented as supporting Custom Rule Authoring, 16 fully, 3 partially, with what its own documentation says.
Support is not the same as parity, since some implementations are narrower in scope, gated to a higher plan tier, or maintained only for existing customers. The note under each tool is what its own documentation describes.
- 1
Custom scan rules, patterns and org-wide coding standards via UI or .codacy.yml.
- 2
Nested AGENTS.md '## Code Review Rules', custom review instructions, --scan-prompt-file, knowledge-base docs.
- 3Checkmarx OneCode Security Platform
SAST Query Editor/Auditor writes and edits queries with an AI Query Builder GPT; custom presets for SAST and IaC.
- 4Claude CodeAgent Coding Tool
REVIEW.md, hierarchical CLAUDE.md, and up to 50 custom regex patterns in security-patterns.yaml.
- 5CodeAnt AIPR Review
Custom review rules, code review instructions, agent personas and global repository configuration
- 6
ast-grep YAML rules and shareable packages; natural-language Custom Checks require Pro+
- 7
PolicyIQ UI or corgea.yaml policies; YAML needs Scale/Enterprise; Custom Rules named at Scale
- 8
Team Rules, .cursor/BUGBOT.md, learned rules and glob-scoped manual rules merged by precedence.
- 9
Natural-language styleguide.md in .gemini/, per repository or managed across repos from Cloud console.
- 10GitHub Advanced SecurityCode Security PlatformAdd-on: Code Security and Secret Protection (free on public repos for CodeQL)
Custom CodeQL query suites and packs, model packs (preview), custom secret patterns, custom auto-triage rules
- 11GreptilePR Review
Dashboard rules plus .greptile/ folder (config.json, rules.md, files.json) and legacy greptile.json
- 12
ast-grep and Semgrep YAML rules plus ripgrep regex checks, with qlty.toml triage overrides
- 13
Natural-language Review Standards, best_practices.md, pr_compliance_checklist.yaml, REVIEW.md
- 14SemgrepCode Security Platform
YAML pattern rules in web Editor or locally, tested with ruleid:/ok: annotations; CE includes custom rules.
- 15
Snyk Code sanitizer Rule Extensions, IaC custom-rule SDK, custom secret regex; custom rules need Ignite or Enterprise.
- 16
Buyers author custom regex secret rules plus Rego container and IaC policies.
- 17
Customizable Code Health rules, custom quality gates and thresholds; no rule-authoring language or custom checks documented
- 18
No custom rule authoring documented; third-party SARIF analyzers plug in via the Community Analyzer framework.
- 19
Custom quality profiles configure language rule sets on Team and Enterprise; authoring new rules not documented.
What to look for
- The rule language and how steep the learning curve really is
- Whether rules live in your repository and go through code review
- Testing support for rules before rolling them out
- Whether custom rules are available on your plan tier
Related terms
FAQ
What is Custom Rule Authoring?
Writing your own analysis rules for conventions, internal frameworks or organisation-specific risks.
How many tools support Custom Rule Authoring?
19 of the 20 tools tracked in this directory support Custom Rule Authoring, 16 fully and 3 partially, including Codacy, ChatGPT / Codex, Checkmarx One, Claude Code, CodeAnt AI. Support is not the same as parity, since some implementations are narrower in scope, gated to a higher plan tier, or maintained only for existing customers. The note under each tool is what its own documentation describes.
What should you look for in Custom Rule Authoring?
The rule language and how steep the learning curve really is. Whether rules live in your repository and go through code review. Testing support for rules before rolling them out. Whether custom rules are available on your plan tier.