CMU-313 / NodeBB

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

Refactoring code in public/src/admin/extend/widgets.js #554

Open dhanya-cmu opened 2 months ago

dhanya-cmu commented 2 months ago

The function on line 285 (in public/src/admin/extend/widgets.js) is nested over 4 levels deep. Code must be refactored to prevent this.

This is different than #545 and #394 in the same file, since both of these have to do with reducing cognitive complexity on lines 121-136.

Sonar Cloud Issue: https://sonarcloud.io/project/issues?open=AZHAkAeb1341_VbvRHcj&id=dhanya-cmu_NodeBB

dhanya-cmu commented 2 months ago

I would like to work on this please!

github-actions[bot] commented 2 months ago

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