CMU-17313Q / NodeBB

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

Refactoring code in src/flags.js #10

Open ssaigh opened 1 month ago

ssaigh commented 1 month 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 1 month ago

I would like to work on this please!

github-actions[bot] commented 1 month ago

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