Skip to content

Project refactoring#337

Draft
stefan-tudor wants to merge 4 commits intomasterfrom
project-refactoring
Draft

Project refactoring#337
stefan-tudor wants to merge 4 commits intomasterfrom
project-refactoring

Conversation

@stefan-tudor
Copy link
Copy Markdown
Contributor

No description provided.

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
9 Security Hotspots
48.1% Coverage on New Code (required ≥ 80%)
C Reliability Rating on New Code (required ≥ A)
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

} catch (e: IllegalArgumentException) {
_effects.tryEmit(DemoFeatureListEffect.ShowError(e.message ?: "An error occurred, please check your settings."))
} catch (e: IllegalStateException) {
_effects.tryEmit(DemoFeatureListEffect.ShowError(e.message ?: "An error occurred, please check your settings."))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we would like to make it 1-liner function to avoid duplication (line 128 and 130).

@DisplayName("Given default DeviceRenderOptions when not set, then build() succeeds")
fun buildUsesDefaultDeviceRenderOptions() {
val params = validBuilder().build()
assertNotNull(params)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like duplication of the test above.

.setBillingCountry("GB")
.setPostCode("SW1A 2AA")
.setCountryCode(826)
.setAdministrativeDivision("England")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's a detail, but maybe better provide county as administrative division, not the country. It would be "Greater London" for London. I think it would be slightly less confusing for future devs working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Crash in JudoPay 3DS2 SDK (UninitializedPropertyAccessException & NullPointerException)

4 participants