-
Notifications
You must be signed in to change notification settings - Fork 11
Configuration
gus edited this page Feb 27, 2026
·
1 revision
Aguara can be configured per-project using a .aguara.yml file in the project root.
aguara initThis creates a .aguara.yml with sensible defaults.
# Minimum severity to report (default: info)
severity: medium
# Exit code 1 if findings at or above this severity (CI mode)
fail_on: high
# File patterns to ignore during scanning
ignore:
- "vendor/**"
- "node_modules/**"
- "*.test.md"
- "docs/examples/**"
# Additional custom rules directory
rules_dir: ./custom-rules
# Rule-specific overrides
rule_overrides:
CRED_004:
severity: low # Downgrade severity
EXTDL_004:
disabled: true # Disable this rule entirely
MCP_007:
severity: critical # Upgrade severity| Field | Type | Default | Description |
|---|---|---|---|
severity |
string | info |
Minimum severity threshold for reporting |
fail_on |
string | — | Exit 1 if findings at or above this severity |
ignore |
list | [] |
Glob patterns for files/dirs to skip |
rules_dir |
string | — | Path to additional custom rules |
rule_overrides |
map | {} |
Per-rule severity overrides or disabling |
Each override is keyed by rule ID:
rule_overrides:
RULE_ID:
severity: <new_severity> # Optional: change severity
disabled: true # Optional: disable the ruleYou can also disable rules via the CLI:
aguara scan . --disable-rule CRED_004,EXTDL_004Glob patterns that skip files during directory scanning:
ignore:
- "vendor/**" # All files under vendor/
- "**/*.test.md" # All test markdown files
- "docs/examples/**" # Example files- CLI flags override
.aguara.yml -
--disable-ruleis additive with configrule_overrides -
--severityoverrides configseverity -
--fail-onoverrides configfail_on
GitHub | Releases | Aguara Watch | Go Docs
Getting Started
Usage
Rules
Developer
Reference