Skip to content

Commit

Permalink
Fix manually suppressed TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
jreij committed Mar 18, 2024
1 parent f700c6e commit 5789f1f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class CardView @JvmOverloads constructor(
)
setDualBrandedCardImages(detectedCardTypes, cardOutputData.cardNumberState.validation)

// TODO: 29/01/2021 get this logic from OutputData
// TODO 29/01/2021 get this logic from OutputData
val isAmex = detectedCardTypes.any { it.cardBrand == CardBrand(cardType = CardType.AMERICAN_EXPRESS) }
binding.editTextCardNumber.setAmexCardFormat(isAmex)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data class VoucherAction(
var alternativeReference: String? = null,
var merchantName: String? = null,
var merchantReference: String? = null,
// TODO: remove url when it's fixed from backend side
// TODO remove url when it's fixed from backend side
var url: String? = null,
var downloadUrl: String? = null,
var instructionsUrl: String? = null,
Expand Down
9 changes: 0 additions & 9 deletions config/detekt/detekt-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,5 @@
<ManuallySuppressedIssues>
</ManuallySuppressedIssues>
<CurrentIssues>
<ID>ForbiddenComment:Logger.kt$Logger$// TODO: 14/02/2019 The idea is for this class to have a system where we can send a stream of logs to the merchant</ID>
<ID>ForbiddenComment:CardView.kt$CardView$// TODO: 29/01/2021 get this logic from OutputData</ID>
<ID>ForbiddenComment:VoucherAction.kt$VoucherAction$// TODO: remove url when it's fixed from backend side</ID>
<ID>ForbiddenComment:ActionComponentDialogFragment.kt$ActionComponentDialogFragment$// TODO: trigger download image flow when user accept storage permission after checking permission type</ID>
<ID>ForbiddenComment:ActionComponentDialogFragment.kt$ActionComponentDialogFragment$// TODO: checkout_rationale_title_storage_permission and checkout_rationale_message_storage_permission</ID>
<ID>ForbiddenComment:ActionComponentDialogFragment.kt$ActionComponentDialogFragment$// TODO: can be reused based on required permission</ID>
<ID>ForbiddenComment:DefaultVoucherDelegate.kt$DefaultVoucherDelegate$// TODO: remove action.url when it's fixed from backend side</ID>
<ID>ForbiddenComment:CheckoutSessionInitializer.kt$CheckoutSessionInitializer$// TODO: Once Backend provides the correct amount in the SessionSetupResponse use that in SessionDetails instead of</ID>
<ID>ForbiddenComment:SessionDetails.kt$// TODO: Once Backend provides the correct amount in the SessionSetupResponse use that in SessionDetails</ID>
</CurrentIssues>
</SmellBaseline>
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal class CheckoutSessionInitializer(
private val sessionService = SessionService(httpClient)
private val sessionRepository = SessionRepository(sessionService, clientKey)

// TODO: Once Backend provides the correct amount in the SessionSetupResponse use that in SessionDetails instead of
// TODO Once Backend provides the correct amount in the SessionSetupResponse use that in SessionDetails instead of
// override Amount
suspend fun setupSession(overrideAmount: Amount?): CheckoutSessionResult = withContext(coroutineDispatcher) {
sessionRepository.setupSession(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ internal class DefaultVoucherDelegate(
action: VoucherAction,
config: VoucherPaymentMethodConfig
) {
// TODO: remove action.url when it's fixed from backend side
// TODO remove action.url when it's fixed from backend side
val downloadUrl = action.downloadUrl ?: action.url
val storeAction = downloadUrl?.let { url ->
VoucherStoreAction.DownloadPdf(url)
Expand Down

0 comments on commit 5789f1f

Please sign in to comment.