Suppressing False Positives
Inline suppression
Section titled “Inline suppression”Add a # llmarmor: ignore comment to suppress a finding on a specific line:
# Suppress all rules on the next line# llmarmor: ignoreresponse = client.chat.completions.create(model="gpt-4", messages=messages)
# Suppress only LLM07 on this lineSYSTEM_PROMPT = "You are a helpful assistant." # llmarmor: ignore[LLM07]
# Suppress multiple rulesresult = eval(user_code) # llmarmor: ignore[LLM05,LLM01]The comment can be placed on the finding’s own line or on the line immediately above it.
.llmarmorignore
Section titled “.llmarmorignore”Skip entire files or directories using gitignore-style patterns:
tests/fixtures/**build/**dist/**scripts/dev_seed.pyPer-rule configuration
Section titled “Per-rule configuration”Disable specific rules in .llmarmor.yaml:
rules: LLM07: enabled: falseSee Configuration for the full config reference.