CMU-313 / NodeBB

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

Refactoring code in src/flags.js #367

Open radom1789 opened 3 months ago

radom1789 commented 3 months ago

Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed. File path: src/flags.js Sonarcloud: https://sonarcloud.io/project/issues?cleanCodeAttributeCategories=ADAPTABLE&directories=src&issueStatuses=OPEN%2CCONFIRMED&id=CMU-313_NodeBB&open=AZFmjARHybYwxy-_uEfu

This is different from #316 and #333 because it tackles a different function. This function starts on line 707 in the file.

My andrewID is tracyy if there is any confusion on my name. I made it a couple years ago for a different class, and I've just been using this account.

radom1789 commented 3 months ago

I would like to work on this please!

github-actions[bot] commented 3 months ago

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