Skip to content

Configuration

bmahkib edited this page Feb 2, 2026 · 1 revision

Configuration

RMA can be configured using a rma.toml file in your project root.

Quick Start

config_version = 1

[analysis]
severity = "warning"
skip_tests = true
parallel = true

[rules]
enabled = ["security", "quality"]
disabled = ["style/line-length"]

[paths]
include = ["src/", "lib/"]
exclude = ["vendor/", "node_modules/", "target/"]

Analysis Settings

[analysis]
severity = "warning"        # critical, error, warning, info
skip_tests = true           # Skip test files (security rules still apply)
skip_tests_all = false      # Skip ALL findings in test files
cross_file = false          # Enable cross-file analysis
parallel_workers = 0        # 0 = auto-detect CPU cores
profile = "balanced"        # fast, balanced, strict

Rule Configuration

[rules]
enabled = ["security", "quality", "performance"]
disabled = ["style/line-length", "generic/todo-comment"]

[rules.overrides."rust/unwrap-on-user-input"]
severity = "error"

Path Configuration

[paths]
include = ["src/**", "lib/**"]
exclude = ["node_modules/**", "vendor/**", "target/**"]

Profiles

rma scan . --profile fast       # Quick scans, high-confidence only
rma scan . --profile balanced   # Default, good balance
rma scan . --profile strict     # Maximum coverage, all rules

Inline Suppressions

// rma-ignore-next-line js/no-console
console.log('Debug');
# rma-ignore-next-line python/bare-except
// rma-ignore-next-line rust/unwrap-on-user-input reason="validated"

Environment Variables

  • RMA_CONFIG - Path to config file
  • RMA_LOG - Log level (error, warn, info, debug)
  • NO_COLOR - Disable colors

Clone this wiki locally