CMU-313 / NodeBB

GNU General Public License v3.0
0 stars 225 forks source link

Refactoring code in src/middleware/user.js (Adaptability) #342

Open bencondemi opened 2 weeks ago

bencondemi commented 2 weeks ago

Refactoring code in src/middleware/user.js to reduce its Cognitive Complexity from 18 to the 15 allowed. Cognitive Complexity is a measure of how hard it is to understand the control flow of a unit of code. Code with high cognitive complexity is hard to read, understand, test, and modify. As a rule of thumb, high cognitive complexity is a sign that the code should be refactored into smaller, easier-to-manage pieces (sonarcloud link).

bencondemi commented 2 weeks ago

I would like to work on this please!

github-actions[bot] commented 2 weeks ago

Great! I assigned you (@bencondemi) to the issue. Have fun working on it!