Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring code in src/flags.js #10

Open
ssaigh opened this issue Aug 29, 2024 · 2 comments · May be fixed by #60
Open

Refactoring code in src/flags.js #10

ssaigh opened this issue Aug 29, 2024 · 2 comments · May be fixed by #60
Assignees

Comments

@ssaigh
Copy link

ssaigh commented Aug 29, 2024

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
Copy link
Author

ssaigh commented Aug 29, 2024

I would like to work on this please!

@ssaigh ssaigh closed this as completed Aug 29, 2024
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant