fix: correct YAML syntax in background_tasks rules

Fixed anti_patterns regex that used brackets inside single quotes,
which YAML interpreted as flow sequence syntax.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-21 21:03:36 +01:00
parent 583a52bffb
commit 4f97c00860

View File

@@ -100,9 +100,9 @@ background_task_rules:
- "error" -> "failed" - "error" -> "failed"
severity: warning severity: warning
anti_patterns: anti_patterns:
- pattern: 'status.*=.*["\']processing["\']' - pattern: "status.*=.*processing"
message: "Use 'running' instead of 'processing'" message: "Use 'running' instead of 'processing'"
- pattern: 'status.*=.*["\']fetching["\']' - pattern: "status.*=.*fetching"
message: "Use 'running' instead of 'fetching'" message: "Use 'running' instead of 'fetching'"
suggestion: | suggestion: |
Use the standard status enum: Use the standard status enum: