[SonarQube] python:S3776 - Cognitive Complexity 17 > 15 (src/gardien/core/lock.py:162) #2

Open
opened 2026-05-18 01:07:51 +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/core/lock.py
  • Line: 162
  • Issue key: 9a7ff077-ba5b-4dfc-be87-79a53006b743

Message:

Refactor this function to reduce its Cognitive Complexity from 17 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/core/lock.py` - **Line:** 162 - **Issue key:** `9a7ff077-ba5b-4dfc-be87-79a53006b743` **Message:** > Refactor this function to reduce its Cognitive Complexity from 17 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#2
No description provided.