TAREA #22313
abierta[SonarQube on tca-node-front - CRITICAL] Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.
0%
Descripción
SonarQube Issue Detected
- Message: Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.
- Severity: CRITICAL
- Rule: javascript:S3776
- Component: tca-node-front:src/pages/CoordinationPage.jsx
- Line: 106
- Effort/Debt: 14min
Flows / Execution Path (Steps to reproduce the bug):
Flow 1:
1. [src/pages/CoordinationPage.jsx:107] +1
Flow 2:
1. [src/pages/CoordinationPage.jsx:107] +1
Flow 3:
1. [src/pages/CoordinationPage.jsx:109] +2 (incl. 1 for nesting)
Flow 4:
1. [src/pages/CoordinationPage.jsx:116] +2 (incl. 1 for nesting)
Flow 5:
1. [src/pages/CoordinationPage.jsx:119] +3 (incl. 2 for nesting)
Flow 6:
1. [src/pages/CoordinationPage.jsx:134] +2 (incl. 1 for nesting)
Flow 7:
1. [src/pages/CoordinationPage.jsx:137] +3 (incl. 2 for nesting)
Flow 8:
1. [src/pages/CoordinationPage.jsx:139] +3 (incl. 2 for nesting)
Flow 9:
1. [src/pages/CoordinationPage.jsx:153] +1
Flow 10:
1. [src/pages/CoordinationPage.jsx:153] +1
Flow 11:
1. [src/pages/CoordinationPage.jsx:155] +2 (incl. 1 for nesting)
Flow 12:
1. [src/pages/CoordinationPage.jsx:159] +3 (incl. 2 for nesting)
---
View in SonarQube:
http://localhost:9000/project/issues?id=tca-node-front&issues=e82ecb78-d4f6-46c0-af0c-c83573da0907
Ningún dato disponible