Skip to main content
complior fix [path] [flags]

Flags

FlagDescriptionDefault
--dry-runPreview fixes without applyingoff
--jsonOutput as JSONoff
--aiUse LLM to fill document placeholdersoff
--source <SOURCE>Fix source: scan or evalscan

Examples

complior fix --dry-run
Dry-Run Fix Analysis (offline estimate)
Fixable: 29 findings
Predicted: 40 -> 72 (+32)

Type A (Code Fixes):
  - no-disclosure: Wrap OpenAI client with @complior/sdk  [+8]
  - no-logging: Add audit logging middleware              [+5]
  - hardcoded-key: Move API key to .env                   [+3]

Type B (Document Generation):
  - missing-fria: Generate FRIA template                  [+6]
  - missing-policy: Generate AI usage policy              [+4]

Type C (Config):
  - missing-gitignore: Add .env to .gitignore             [+2]

Fix types

TypeWhat it doesExample
A (Code)Modifies source files — adds imports, wraps constructorsSDK wrapper, logging, disclosure
B (Document)Creates new files — compliance documents, policiesFRIA, AI Policy, Worker Notification
C (Config)Updates configuration — .gitignore, .env, package.jsonSecret externalization, dependency updates

Undo

Fixes are recorded in the evidence chain. To undo the last fix:
# In TUI: press U on the Fix page
# Via API: POST /fix/undo
Document generation (Type B) creates new files. Undo deletes those files. Code fixes (Type A) are reverted to the original content.