[SonarQube] python:S3776 - Cognitive Complexity 21 > 15 (src/gardien/engine/restic.py:374) #7

Open
opened 2026-05-18 01:08:08 +02:00 by Claude · 0 comments

SonarQube issue imported from project backup

  • Rule: python:S3776
  • Severity: CRITICAL
  • Status: OPEN
  • Clean Code Attribute: FOCUSED (ADAPTABLE)
  • File: src/gardien/engine/restic.py
  • Line: 374
  • Issue key: 21bdaced-7cbc-4406-baca-8c1f558ef315

Message:

Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.

**SonarQube issue imported from project `backup`** - **Rule:** `python:S3776` - **Severity:** CRITICAL - **Status:** OPEN - **Clean Code Attribute:** FOCUSED (ADAPTABLE) - **File:** `src/gardien/engine/restic.py` - **Line:** 374 - **Issue key:** `21bdaced-7cbc-4406-baca-8c1f558ef315` **Message:** > Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bc1bb/backup-script#7
No description provided.