Closed zaheer-dvt closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Warnings | |
---|---|
:warning: | **Sources/PaystackUI/Charge/ChargeView.swift#L32** - TODOs should be resolved (Update once we have new design...). (`todo`) |
:warning: | **Sources/PaystackUI/Charge/ChargeViewModel.swift#L39** - TODOs should be resolved (Display a fatal error here in ...). (`todo`) |
:warning: | **Sources/PaystackUI/Charge/Models/ChargeState.swift#L3** - TODOs should be resolved (Add state for select payment c...). (`todo`) |
:warning: | **Tests/PaystackSDKTests/UI/Charge/ChargeCard/ChargeCardViewModelTests.swift#L4** - Type body should span 200 lines or less excluding comments and whitespace: currently spans 202 lines (`type_body_length`) |
:warning: | **Tests/PaystackSDKTests/UI/Charge/ChargeCard/ChargeCardViewModelTests.swift#L265** - Function should have complexity 10 or less: currently complexity equals 12 (`cyclomatic_complexity`) |
:warning: | **Tests/PaystackSDKTests/UI/Charge/ChargeViewModelTests.swift#L97** - Line should be 120 characters or less: currently 145 characters (`line_length`) |
Generated by :no_entry_sign: Danger Swift against 976962f0fc187ec53ea3c3d93d151904d933490b
Changes:
VerifyAccessCode
to be passed in a reference that comes from its original modelChargeCompletionDetails
, a container for details we want to pass on a completed result which currently only hold the referenceTransactionResult
to include arguments for error and completed (above)success
state inChargeState
to include theChargeCompletionDetails
, and then pass it through toChargeSuccessView
to be eventually returnedChargeErrorDetails
to follow a similar process withErrorView