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 #294

Merged
merged 1 commit into from
May 31, 2024

Conversation

vault087
Copy link

  • Initialization for OmiseError.APIErrorCode.BadRequestReason was refactored to fix SonarCloud warning "Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed"
  • Added unit tests

@vault087 vault087 merged commit e92bcac into develop May 31, 2024
4 checks passed
@vault087 vault087 deleted the fix/MIT-2552-SonarCloud-OmiseError branch May 31, 2024 04:02
@vault087 vault087 changed the title Fix SonarCloud "Cognitive Complexity" warning in BadRequestReason Fix SonarCloud "Cognitive Complexity" warning in OmiseError's BadRequestReason Jun 17, 2024
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