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

Refactor code in src/groups/update.js #26

Merged
merged 5 commits into from
Sep 18, 2024

Conversation

mohamed-elzeni
Copy link
Member

Issue: The function Groups.update in file src/groups/update.js has a complex control flow, causing its Cognitive Complexity on SonarCloud to reach 27, which is higher than the allowed 15.

Fix: This reduces the Cognitive Complexity of Groups.update by refactoring it into smaller, easier-to-manage pieces. This was tested by the linting and testing suite and SonarCloud.

Copy link

@aattiyah aattiyah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good. The implementation is clean, and I didn't find any issues. It also passes all the tests.

Copy link

@tatougueye tatougueye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mohamed-elzeni mohamed-elzeni merged commit 464293a into f24 Sep 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants