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/api/posts.js #85

Open
Procos12 opened this issue Sep 4, 2024 · 2 comments · May be fixed by #105
Open

Refactoring code in src/api/posts.js #85

Procos12 opened this issue Sep 4, 2024 · 2 comments · May be fixed by #105
Assignees

Comments

@Procos12
Copy link

Procos12 commented Sep 4, 2024

File name: src/api/posts.js

SonarCloud warnings:
Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.

Explanation: The function starting on line 86 has too many conditional statements, to fix this some refactoring should be done to lower the number of conditionals from 18 to the limit of 15.

@Procos12
Copy link
Author

Procos12 commented Sep 4, 2024

I would like to work on this please!

Copy link

github-actions bot commented Sep 4, 2024

Great! I assigned you (@Procos12) 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
Development

Successfully merging a pull request may close this issue.

1 participant