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

Fix SonarCloud "Cognitive Complexity" warning in OmiseError's BadRequestReason (2) #299

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

vault087
Copy link

  • Refactor parseBadRequestReasonsFromMessage() function of OmiseError.APIErrorCode.BadRequestReason to fix SoundCloud warning "Refactor this function to reduce its Cognitive Complexity from 29 to the 15 allowed"
  • Added unit tests

@vault087 vault087 merged commit 8369b21 into develop Jun 17, 2024
3 checks passed
@vault087 vault087 deleted the fix/MIT-2552-SonarCloud-OmiseError-2 branch June 17, 2024 07:27
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.

1 participant