Coverage for lintro / ai / enums / sanitize_mode.py: 100%
6 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
1"""Sanitize mode for prompt injection detection."""
3from __future__ import annotations
5from enum import StrEnum, auto
8class SanitizeMode(StrEnum):
9 """Controls how detected prompt injection patterns are handled.
11 Attributes:
12 WARN: Log a warning but continue processing (default).
13 BLOCK: Skip fix generation for files with detected patterns.
14 OFF: Disable injection pattern detection entirely.
15 """
17 WARN = auto()
18 BLOCK = auto()
19 OFF = auto()