CMU-17313Q / NodeBB

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

Refactoring code in src/flags.js #10

Open ssaigh opened 3 months ago

ssaigh commented 3 months ago

Description: Refactoring code in src/flags.js.

File name: src/flags.js.

Sonar Warning: Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed. Explanation: There is lots of deep nesting of if and if else statements in the code, which makes it a complexity of 18. Therefore, it is important to refactor the code to accommodate it. Method: Reduce the complexity by reducing nested conditionals

ssaigh commented 3 months ago

I would like to work on this please!

github-actions[bot] commented 3 months ago

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