-
https://sonarcloud.io/project/issues?cleanCodeAttributeCategories=ADAPTABLE&directories=src%2Ftopics&issueStatuses=OPEN%2CCONFIRMED&id=CMU-313_NodeBB&open=AZFmjAFlybYwxy-_uEaQ
-
Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed.
Link: https://sonarcloud.io/project/issues?open=AZFmjAMvybYwxy-_uEdj&id=CMU-313_NodeBB
-
File path: src/user/data.js
Sonarcloud warning - Reducing the cognitive complexity of the file as there are a bunch of if statements that make it kind of difficult to understand/read.
-
Working on fixing the three SonarCloud warnings in file src/middleware/render. I need to:
- Reduce cognitive complexity of processRender function from 16 to 15
- Reduce cognitive complexity of loadC…
-
Refactor this code to not nest functions more than 4 levels deep.
Sonar Link: https://sonarcloud.io/project/issues?open=AZFmjAGCybYwxy-_uEaf&id=CMU-313_NodeBB
-
### NodeBB version
_No response_
### NodeBB git hash
_No response_
### NodeJS version
_No response_
### Installed NodeBB plugins
_No response_
### Database type
_No response_
### Database ve…
-
**Issue:** The function `Groups.update` in file [`src/groups/update.js`](https://github.com/CMU-17313Q/NodeBB/blob/f24/src/groups/update.js) has a complex control flow, causing its Cognitive Complexit…
-
### Environment
Node version: 20.16.0
npm version: 10.8.1
Local ESLint version: 9.8.0
Global ESLint version: -
Operating System: Windows 11
Vite version: 5.3.5 (maybe it help)
### What pars…
-
src/user/admin.js
Refactor this code to not nest functions more than 4 levels deep.
-
### Description
src/user/uploads.js
[Refactor this code to not nest functions more than 4 levels deep]
### Community forum reference
_No response_