Proyecto

General

Perfil

Acciones

TAREA #22325

abierta

[SonarQube on tca-node-front - CRITICAL] Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed.

Añadido por Juan Zapata hace 25 días.

Estado:
Nueva
Prioridad:
Alta
Asignado a:
-
Versión prevista:
-
Fecha de inicio:
Fecha fin:
% Realizado:

0%

Tiempo estimado:

Descripción

SonarQube Issue Detected

  • Message: Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed.
  • Severity: CRITICAL
  • Rule: javascript:S3776
  • Component: tca-node-front:src/hooks/useConfig.js
  • Line: 20
  • Effort/Debt: 12min

Flows / Execution Path (Steps to reproduce the bug):

Flow 1:
1. [src/hooks/useConfig.js:22] +1

Flow 2:
1. [src/hooks/useConfig.js:31] +1

Flow 3:
1. [src/hooks/useConfig.js:35] +1

Flow 4:
1. [src/hooks/useConfig.js:40] +1

Flow 5:
1. [src/hooks/useConfig.js:42] +2 (incl. 1 for nesting)

Flow 6:
1. [src/hooks/useConfig.js:43] +2 (incl. 1 for nesting)

Flow 7:
1. [src/hooks/useConfig.js:44] +2 (incl. 1 for nesting)

Flow 8:
1. [src/hooks/useConfig.js:46] +3 (incl. 2 for nesting)

Flow 9:
1. [src/hooks/useConfig.js:46] +1

Flow 10:
1. [src/hooks/useConfig.js:51] +4 (incl. 3 for nesting)

Flow 11:
1. [src/hooks/useConfig.js:77] +2 (incl. 1 for nesting)

Flow 12:
1. [src/hooks/useConfig.js:85] +1

Flow 13:
1. [src/hooks/useConfig.js:93] +1

---
View in SonarQube:
http://localhost:9000/project/issues?id=tca-node-front&issues=dd20e2bb-e1a5-4b2f-9136-c4b67070f981

Ningún dato disponible

Acciones

Exportar a: Atom PDF