CMU-313 / NodeBB

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

Refactor code in src/flag.js #333

Open tu2463 opened 2 months ago

tu2463 commented 2 months ago

Refactor Flags.validate in src/flag.js to reduce its Cognitive Complexity from 18 to the 15 allowed. https://sonarcloud.io/project/issues?open=AZFmjARHybYwxy-_uEfq&id=CMU-313_NodeBB

This is different from #316 because it tackles a Flags.validate, while the other issue refactors Flags.getFlagIdsWithFilters.

tu2463 commented 2 months ago

I would like to work on this please!

github-actions[bot] commented 2 months ago

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