{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"]}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentHandler._handleAuthenticationForCurrentAction (cyclomatic 68): STPPaymentHandler._handleAuthenticationForCurrentAction has cyclomatic complexity 68 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"803067f767e4add07a94f0afe6a9008ec250b3d8ff6ff436dd3b787501ac892c"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentMethodType.makeImage (cyclomatic 60): STPPaymentMethodType.makeImage has cyclomatic complexity 60 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e118491e93f45dd7d8ae9960d41e4e48ee96b0f9c6a0b8363ec507f636f20ae4"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentHandler._retrieveAndCheckIntentForCurrentAction (cyclomatic 51): STPPaymentHandler._retrieveAndCheckIntentForCurrentAction has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"69036e7a30fb72f2cad9c9819dfe1b9c137b8f84e9e4e5ae8d1e17b494166ae7"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeFlowController.swift.CreatePaneViewController (cyclomatic 42): NativeFlowController.swift.CreatePaneViewController has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b768d7e68912fd592d6434c0d676cb59adf8b0bc4c2ae81d8d3c5f62f9709f9"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentCardTextField.recalculateSubviewLayout (cyclomatic 39): STPPaymentCardTextField.recalculateSubviewLayout has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5331afcb850aa3482ef4f0d9a208c3ff8aac0bcc7df61cce5cc5cb3f21ae4a9"}},{"ruleId":"D1","level":"warning","message":{"text":"HostedAuthUrlBuilder.build (cyclomatic 38): HostedAuthUrlBuilder.build has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d200cf3e3b2e0119d3aecefc5cda860fc120891c2a414ae583454daea3b14c"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfirmButton.update (cyclomatic 36): ConfirmButton.update has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/ConfirmButton.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3bcfec5211517f5cb33f57ce6b8719f13ee6184a315718f18a04eada7e30a8"}},{"ruleId":"D1","level":"warning","message":{"text":"STPDecodingContainerProtocol.castFromNSObject (cyclomatic 35): STPDecodingContainerProtocol.castFromNSObject has cyclomatic complexity 35 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Coder/StripeJSONDecoder.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c84f8b625379fac6ee6d4ea32c830856b2bddfd9fd53136cb9f0a5a48c3f02a"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheet.confirmAfterHandlingLocalActions (cyclomatic 35): PaymentSheet.confirmAfterHandlingLocalActions has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"17dca01c5e452844124d799263d8c0a21bec01e591300f7e12d870d15191f952"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheetVerticalViewController.calculateInitialSelection (cyclomatic 35): PaymentSheetVerticalViewController.calculateInitialSelection has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"102bb675cb186c03fb72a00249fa2a3a5f9676f1e1b8b86eb15b5d54ad3fd6b5"}},{"ruleId":"D1","level":"warning","message":{"text":"STPIntentAction.decodedObject (cyclomatic 35): STPIntentAction.decodedObject has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"765ad557c79416876c55ee2b6fbe12f07132e91a03be4a05e4e89e91e8c4c22d"}},{"ruleId":"D1","level":"warning","message":{"text":"STPApplePayContext._completePayment (cyclomatic 33): STPApplePayContext._completePayment has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12361a10d15b0679d29b7a5337d7fcaef9ae28b1e1b822f71a50504d7fbc41c"}},{"ruleId":"D1","level":"warning","message":{"text":"CheckoutController.confirmCheckoutSession (cyclomatic 33): CheckoutController.confirmCheckoutSession has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc83458cf9059c21c3d1c2422e20147531c3cc058541acbafd060f59371d802"}},{"ruleId":"D1","level":"warning","message":{"text":"STPIntentAction.description (cyclomatic 33): STPIntentAction.description has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3d229974b9b6a477ad3e4e94b3567876fdbe238bc808b272800e07548a2a79"}},{"ruleId":"D1","level":"warning","message":{"text":"CardVerifyAccurateStateMachine.transition (cyclomatic 30): CardVerifyAccurateStateMachine.transition has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/CardVerifyStateMachine.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e476e52fe6b7321cd5eb1c45c10ab2a27ef5b344bd42c51b09b2b15209ee9b"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheetAnalyticsHelper.logPayment (cyclomatic 30): PaymentSheetAnalyticsHelper.logPayment has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Analytics/PaymentSheetAnalyticsHelper.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a82eb2ed17987b91b181e04b2373852c067e135d05b4038d1b144ce39a086a6"}},{"ruleId":"D1","level":"warning","message":{"text":"StripeEncodingContainer.castToNSObject (cyclomatic 26): StripeEncodingContainer.castToNSObject has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Coder/StripeJSONEncoder.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd7ce1c1c3928796713d947d3dc7ae115c1a5499ed865bf9a06ba3ffed69739"}},{"ruleId":"D1","level":"warning","message":{"text":"Appearance.init (cyclomatic 25): Appearance.init has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PaymentMethodMessagingElement.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fbf779637d1f42749c9417bedf6ac7f6a731d98eb5aa0dcdbc1a29635fd8bf"}},{"ruleId":"D1","level":"warning","message":{"text":"EmbeddedPaymentElement.performUpdate (cyclomatic 24): EmbeddedPaymentElement.performUpdate has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddc28729bb941a0a360a051a402ac3cdf95def552ce887595d3b848f631ef04"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheetFormFactory.makeCard (cyclomatic 24): PaymentSheetFormFactory.makeCard has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: PaymentSheetFormFactory.makePaymentMethodForm (cyclomatic 32) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4880bb022ac74db68f56af84654093626b2de5aa3257b1d2f4d78eb9c86ef37"}},{"ruleId":"D1","level":"warning","message":{"text":"LinkAccountPickerViewController.didSelectConnectAccounts (cyclomatic 22): LinkAccountPickerViewController.didSelectConnectAccounts has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerViewController.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7003569e771e7892eb5def6dcb2053b37b785caa76f9ae3c72313cea957468c2"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentCardTextField.paymentMethodParams (cyclomatic 22): STPPaymentCardTextField.paymentMethodParams has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"278100cdb4bf07d3e54d7bbdeadbf6fc721b62d9531a2764b969c490d20142ba"}},{"ruleId":"D1","level":"warning","message":{"text":"STPAPIClient.makeElementsSessionsParams (cyclomatic 21): STPAPIClient.makeElementsSessionsParams has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9072d886707db35da26c89ac53b1a4308010d0c02001dea10c5197408b81cc"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountPickerViewController.pollAuthSessionAccounts (cyclomatic 21): AccountPickerViewController.pollAuthSessionAccounts has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerViewController.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d4b87b5c0fac81c4d1cceaf240a0374d5b483210c1df1ee0ac945482b55962"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentHandler._handleRedirect (cyclomatic 21): STPPaymentHandler._handleRedirect has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e4dffc5153d0daeaeeb42943e279fd75af25f103b51c8989d59e380cb9fa9d"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeFlowController.closeAuthFlow (cyclomatic 20): NativeFlowController.closeAuthFlow has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"e330d7d33be58b55e10b41a95402678dc8dff50d4ec3d32e5b715b1e4bab451c"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomerSession.decoded (cyclomatic 20): CustomerSession.decoded has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/CustomerSession.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8e88f555a2ef8d13d4bcb40f6c6ccaf24abd0106a06ed8b5b0465d55b5814b"}},{"ruleId":"D1","level":"warning","message":{"text":"STPElementsSession.decodedObject (cyclomatic 20): STPElementsSession.decodedObject has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/STPElementsSession.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab158b82ad0216c1de225c097fe26e16d43a8d157f0ecf1059cc8684cf33f1eb"}},{"ruleId":"D1","level":"warning","message":{"text":"VerificationSheetFlowController.nextViewController (cyclomatic 19): VerificationSheetFlowController.nextViewController has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/VerificationSheetFlowController.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"622c440c7c47c6022c2c100d79a30ded8bc9edd8d41013bb135b110c513820cb"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentCaptureViewController.scanningTextWithNoInput (cyclomatic 19): DocumentCaptureViewController.scanningTextWithNoInput has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf3b0a1f4847419129ef37a7c4827a6d4d25ec51d127071850e9f74a0b4bb25"}},{"ruleId":"D1","level":"warning","message":{"text":"STPAnalyticsEventTranslator.translateEvent (cyclomatic 18): STPAnalyticsEventTranslator.translateEvent has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Analytics/Eventing/STPAnalyticsEventTranslator.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb03407d72b7facd9ed1dee45c7881e96fceb5f0a30104ae416cb61079d8f0e"}},{"ruleId":"D1","level":"warning","message":{"text":"ErrorViewController.viewDidLoad (cyclomatic 18): ErrorViewController.viewDidLoad has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Error/ErrorViewController.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"588c5196478648c7c78c07f96dc65fdff53e971e7899851179a2dee039dea718"}},{"ruleId":"D1","level":"warning","message":{"text":"PartnerAuthViewController.openInstitutionAuthenticationWebView (cyclomatic 18): PartnerAuthViewController.openInstitutionAuthenticationWebView has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/PartnerAuth/PartnerAuthViewController.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99ae6786bc7dbcc4c059b6479b5870dc7515b193f68b7d5123b7e0359e48958"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentSide.instruction (cyclomatic 18): DocumentSide.instruction has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/DocumentSide.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4738adb5c17ecdb392c532714fbe15824cb56a16a950e62d1e0127c0f0a2c10e"}},{"ruleId":"D1","level":"warning","message":{"text":"STPImageLibrary.brandImage (cyclomatic 18): STPImageLibrary.brandImage has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Helpers/STPImageLibrary.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fb3a4114f153327aa3dd4683bbf1a00b2b13af6f92c62b97bca2bd7a47f50d"}},{"ruleId":"D1","level":"warning","message":{"text":"STPFormView.configureFooter (cyclomatic 18): STPFormView.configureFooter has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFormView.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7defd46a7c9ded34b0a792101be46d05dc0822a315eb79f2934588f0e037fc"}},{"ruleId":"D1","level":"warning","message":{"text":"STPConnectAccountIndividualParams.description (cyclomatic 18): STPConnectAccountIndividualParams.description has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountIndividualParams.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3e7bbcabb0fb6d816ac60df1cdc4142e30a53f6e77338fe83c9f740fd1cef3"}},{"ruleId":"D1","level":"warning","message":{"text":"FinancialConnectionsWebFlowViewController.startAuthenticationSession (cyclomatic 17): FinancialConnectionsWebFlowViewController.startAuthenticationSession has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac21ed4b0cbed4d2237fa9f4377cab3c41bab0ca0c3e771ec4f3cb319298693"}},{"ruleId":"D1","level":"warning","message":{"text":"PayWithLinkViewController.launchFinancialConnections (cyclomatic 17): PayWithLinkViewController.launchFinancialConnections has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"330143c94df5a562f3cdea7e175351d7c597dbe6089cec2263589f484ade2c03"}},{"ruleId":"D1","level":"warning","message":{"text":"Intent.fulfilledRequirements (cyclomatic 17): Intent.fulfilledRequirements has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Intent.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff5ca638946af193287903a8465b300af3108db6c168fd82bc969a561a91544"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheet.createConfirmationTokenParams (cyclomatic 17): PaymentSheet.createConfirmationTokenParams has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"616f142308db54634a3a35b76d9cf3ad597dd30e92bd06ac0a73df46ecc7ae52"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheet.handleDeferredIntentConfirmation (cyclomatic 17): PaymentSheet.handleDeferredIntentConfirmation has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c6db2983422d821532010d4f5f95470cbd1258888d42d48131c897eb7f23fb"}},{"ruleId":"D1","level":"warning","message":{"text":"STPFormTextField.autoFormattingBehavior (cyclomatic 17): STPFormTextField.autoFormattingBehavior has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b73203597b5ca8179d16ba43cbd61f9f609a281a65b83adc2052739ddcbe71"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentCardTextField.formTextFieldTextDidChange (cyclomatic 17): STPPaymentCardTextField.formTextFieldTextDidChange has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8eb0ff901ef319e6fef6bf819a68bbe32ed16b5a3e79486acfade819b5400a"}},{"ruleId":"D1","level":"warning","message":{"text":"STPCustomer.sources (cyclomatic 17): STPCustomer.sources has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/STPCustomer.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fef15ac9dd10a5e131fbc988b773457bbaed5ba690781f18ab69fc92a1980b2"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentIntent.decodedObject (cyclomatic 17): STPPaymentIntent.decodedObject has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntent.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"618c12879681b395d694fb0b9c8751003b1b63e81f453f7a4268e6e4597096bd"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentHandler.confirmPaymentIntent (cyclomatic 17): STPPaymentHandler.confirmPaymentIntent has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edfab524a4455104553d173bd7e778ab6a065f90280e925e280d58434c12f17"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentHandler.handleNextAction (cyclomatic 17): STPPaymentHandler.handleNextAction has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"913e46f628e0c116e3e3d71479ceaae119cb6315d966a3426597e369a81f7269"}},{"ruleId":"D1","level":"warning","message":{"text":"AddressSectionElement.updateAddressFields (cyclomatic 17): AddressSectionElement.updateAddressFields has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Factories/Address/AddressSectionElement.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"020d42fc1fc6c088e8228fb14f698349b0eb294ec92410ab1134e3801b7e45b6"}},{"ruleId":"D1","level":"warning","message":{"text":"StackViewWithSeparator.layoutSubviews (cyclomatic 17): StackViewWithSeparator.layoutSubviews has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Helpers/StackViewWithSeparator.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c912e6e534086566ff5ed87d53fe59fb0abae35e43df49d86a018b880d5873"}},{"ruleId":"D1","level":"warning","message":{"text":"STPCardScanner.processVNRequest (cyclomatic 16): STPCardScanner.processVNRequest has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Helpers/STPCardScanner.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"618d0e32040a3c32817c617b5bd0d3b9dcaa60b68992f9c6570030c1f9a41e1f"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheet.handleDeferredIntentConfirmation_confirmationToken (cyclomatic 16): PaymentSheet.handleDeferredIntentConfirmation_confirmationToken has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f658d384f8c5d306f73b9f280fb6cd9c2cc5f9f6b4bea6b675efa0de85fd5906"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheetVerticalViewController.selectedPaymentOption (cyclomatic 16): PaymentSheetVerticalViewController.selectedPaymentOption has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84ee8a2523fdfb1f5bb3948dd125206a371e9b2c7a93e1743f6dc0c5534ea5c"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentMethodFormViewController.handleCollectBankAccount (cyclomatic 16): PaymentMethodFormViewController.handleCollectBankAccount has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fda0839942f4151a45e6dacf28f296b3cdd1019cb28351567e88ad9095a511c"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentMethodFormViewController.handleCollectInstantDebits (cyclomatic 16): PaymentMethodFormViewController.handleCollectInstantDebits has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"7319457b13a3b2f72833441b58364850c1517d34407ab2e2274689049b583068"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheetFlowControllerViewController.init (cyclomatic 16): PaymentSheetFlowControllerViewController.init has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd470d33cb796799586ecf76d8fa70c6733ef436fb2dacdd1bd6c31d5accbc7"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentSheetViewController.updateUI (cyclomatic 16): PaymentSheetViewController.updateUI has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"78405327b80d494dffbccc9266662130f094c0eb531044843897899ab5b4a588"}},{"ruleId":"D1","level":"warning","message":{"text":"STPTextFieldDelegateProxy.textField (cyclomatic 16): STPTextFieldDelegateProxy.textField has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92e9920f715a2a7d30a9d6fb799be9e2f158db98158d0409973c86c758e83ce"}},{"ruleId":"D1","level":"warning","message":{"text":"STPCardExpiryInputTextFieldFormatter.isAllowedInput (cyclomatic 16): STPCardExpiryInputTextFieldFormatter.isAllowedInput has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardExpiryInputTextFieldFormatter.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6e1d10d01d4920f24ba1df3fbb3f79a131d2ade65df64c7c5b315bbd2a9358"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentCardTextField.updateImage (cyclomatic 16): STPPaymentCardTextField.updateImage has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":2168}}}],"partialFingerprints":{"codehealthFindingId/v1":"190d9d202234c5dc563f8b211315a351e378594e53d4daee6ef3ee774ad81266"}},{"ruleId":"D1","level":"warning","message":{"text":"STPPaymentHandler.confirmSetupIntent (cyclomatic 16): STPPaymentHandler.confirmSetupIntent has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6efdf3c48b89a6c2e48ba8192a7278b8f4be5daa364162b5863afcbe42b8a7b"}},{"ruleId":"D1","level":"warning","message":{"text":"SectionContainerView.updateUI (cyclomatic 16): SectionContainerView.updateUI has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Section/SectionContainerView.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"f959b32365ffcddd6898002aeb1e5d5a29a2a13c719656093ef95999d55c6826"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentHandler._handleAuthenticationForCurrentAction (cognitive 139): STPPaymentHandler._handleAuthenticationForCurrentAction has cognitive complexity 139 (threshold 15). Drivers by points: if/else 57 (126 pts), ternaries 2 (8 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 77). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5e641f30a952a141f680b81dd174f737c00c393fb8999ef83c8febb9c332ac"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentHandler._retrieveAndCheckIntentForCurrentAction (cognitive 107): STPPaymentHandler._retrieveAndCheckIntentForCurrentAction has cognitive complexity 107 (threshold 15). Drivers by points: if/else 32 (80 pts), boolean chains 27 (nesting depth added 48). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77277002ffd92cceede56df5495eb78c5f6dcc3b157d8ee2d6725ff1196247d"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentCardTextField.recalculateSubviewLayout (cognitive 86): STPPaymentCardTextField.recalculateSubviewLayout has cognitive complexity 86 (threshold 15). Drivers by points: if/else 34 (56 pts), loops 5 (19 pts), ternaries 4 (7 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e3a32de544b4dcfdd8a412d021b49f497d28e5a58a91af469b59dc7f7bc6ca"}},{"ruleId":"D2","level":"warning","message":{"text":"HostedAuthUrlBuilder.build (cognitive 69): HostedAuthUrlBuilder.build has cognitive complexity 69 (threshold 15). Drivers by points: if/else 21 (53 pts), boolean chains 15, ternaries 1 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b5ca727d1e64b24ed4c355377aab6377b1d09b17adaab1db97971efb76fb4e"}},{"ruleId":"D2","level":"warning","message":{"text":"STPApplePayContext._completePayment (cognitive 52): STPApplePayContext._completePayment has cognitive complexity 52 (threshold 15). Drivers by points: if/else 27 (42 pts), boolean chains 6, error handling 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca199fa894f50126c022b9ef48bb496fa6441f685e964975e256ca8fd6f3eeb2"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheet.confirmAfterHandlingLocalActions (cognitive 45): PaymentSheet.confirmAfterHandlingLocalActions has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (27 pts), match/switch 6 (11 pts), ternaries 2 (6 pts), boolean chains 1 (nesting depth added 26). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d3d7fdc1b1d048c09b9d5a8af8e30fac65bfab105611b5886c38ee50267edf"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeFlowController.swift.CreatePaneViewController (cognitive 44): NativeFlowController.swift.CreatePaneViewController has cognitive complexity 44 (threshold 15). Drivers by points: if/else 26 (38 pts), boolean chains 5, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d28b8ab6829ffd8cb7eb2fae6fc281642e52d722415cd67abe7bf193870976"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetAnalyticsHelper.logPayment (cognitive 44): PaymentSheetAnalyticsHelper.logPayment has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 9 (26 pts), if/else 8 (12 pts), match/switch 4 (6 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Analytics/PaymentSheetAnalyticsHelper.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7048f50247ce32964565a1160135ddeb06dfa23f620468344b041c4651fca2"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckoutController.confirmCheckoutSession (cognitive 44): CheckoutController.confirmCheckoutSession has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (21 pts), match/switch 7 (15 pts), error handling 4 (8 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03b7f6111736dafe5a0377302335ae23617a38313dedd952abde6aabe516a8b"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetVerticalViewController.calculateInitialSelection (cognitive 42): PaymentSheetVerticalViewController.calculateInitialSelection has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 10, match/switch 3 (5 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"757b27b456791d9f7b29513cb4cabcd670c0afdd509336809e227a931f78838a"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheet.handleDeferredIntentConfirmation (cognitive 41): PaymentSheet.handleDeferredIntentConfirmation has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (36 pts), match/switch 2 (4 pts), error handling 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06da03c92cf9dadb6aa3f012b32a586a7c7f1f4c6a7fc88907c6f91ee8cbf30"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorViewController.viewDidLoad (cognitive 40): ErrorViewController.viewDidLoad has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (29 pts), ternaries 2 (6 pts), boolean chains 5 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Error/ErrorViewController.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"773ead516ff27262920dfb148cc67999e77e07aafab2a05019b3ceb3e71e7f75"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeFlowController.closeAuthFlow (cognitive 38): NativeFlowController.closeAuthFlow has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (28 pts), match/switch 2 (6 pts), boolean chains 3, ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"085ba48a3c7f31749f8bb1de149170ad3b86aeb166206a476dce4fdd3bb27956"}},{"ruleId":"D2","level":"warning","message":{"text":"STPDecodingContainerProtocol.castFromNSObject (cognitive 36): STPDecodingContainerProtocol.castFromNSObject has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 3 (5 pts), boolean chains 4, loops 2 (4 pts), error handling 1 (2 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Coder/StripeJSONDecoder.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7326ef417db05208b53afe2cfaf17210149aa7fb016a815160e4da161ab82e5"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkAccountPickerViewController.didSelectConnectAccounts (cognitive 36): LinkAccountPickerViewController.didSelectConnectAccounts has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (26 pts), match/switch 3 (7 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerViewController.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7995c919ea48f2a09a149e94b15560b3558c592e50c086182203f1b019eee3"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheet.handleDeferredIntentConfirmation_confirmationToken (cognitive 36): PaymentSheet.handleDeferredIntentConfirmation_confirmationToken has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (30 pts), match/switch 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c317c3a00a155652ac45b9a26ccdb1bdcce299909ad45834f54c010c41f5be3c"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentHandler._handleRedirect (cognitive 36): STPPaymentHandler._handleRedirect has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"798b3a1240eae5c42799532e2a74be868b418f33e5227ed3baa52bb06fa0f37a"}},{"ruleId":"D2","level":"warning","message":{"text":"StackViewWithSeparator.layoutSubviews (cognitive 36): StackViewWithSeparator.layoutSubviews has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 2 (8 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Helpers/StackViewWithSeparator.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc4fc7e6bc7535f56c6e40a8504d9eaade51624e7467dd8d54505bf27ec1aa1"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountPickerViewController.pollAuthSessionAccounts (cognitive 34): AccountPickerViewController.pollAuthSessionAccounts has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 8, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerViewController.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce44694a09f6057f8a555881ed79feb90752129080f980055e930d44272e0cb"}},{"ruleId":"D2","level":"warning","message":{"text":"STPCustomer.sources (cognitive 34): STPCustomer.sources has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (26 pts), boolean chains 7, loops 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/STPCustomer.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ebc1643e41f58916da3efeda877b3960f546efcdab4cab2c0c4d7186300cc0"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountPickerNoAccountEligibleErrorView.init (cognitive 33): AccountPickerNoAccountEligibleErrorView.init has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22 (33 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerNoAccountEligibleErrorView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b8258bf6c27ef9514386bf914350057ddfe7d4a087e2a889db3b4bcfb42760"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentCardTextField.formTextFieldTextDidChange (cognitive 33): STPPaymentCardTextField.formTextFieldTextDidChange has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 1, match/switch 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41929dca20fe5e9fa2baaa300512c8b6127c51c7afeb6b30b42b3a8e92571fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ElementsCustomer.parsePaymentMethods (cognitive 31): ElementsCustomer.parsePaymentMethods has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/ElementsCustomer.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc25138e39188031c58ec134fd92fe345814010544327a7d6d1bfcf80c2ab3bd"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfirmButton.update (cognitive 31): ConfirmButton.update has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 5 (8 pts), match/switch 5 (6 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/ConfirmButton.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a76cf26cf1d8269172d87a3b92273ac27a3e6c13c52db953714a1421139d17"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentCardTextField.paymentMethodParams (cognitive 31): STPPaymentCardTextField.paymentMethodParams has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc05a099d3da9a49af6918ecbe05d8d92e434d2d5086b731bda155530ce2b10"}},{"ruleId":"D2","level":"warning","message":{"text":"STPIntentAction.decodedObject (cognitive 31): STPIntentAction.decodedObject has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 1, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed53ee25a628a16fda7d4dddb428a42d0e6ce5d3eccc624f79b89c0217030b7d"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkAccountPickerViewController.linkAccountPickerBodyView (cognitive 30): LinkAccountPickerViewController.linkAccountPickerBodyView has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerViewController.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"5813a4ca873c6aab0091ac11613e36d7357ff7cf0f8a4165d0a4249565b512ed"}},{"ruleId":"D2","level":"warning","message":{"text":"STPIntentAction.description (cognitive 29): STPIntentAction.description has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (28 pts), match/switch 1 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64d7fe5fdb79f20e9ac2fe15d61bdd9c9ca3d34cab1e426f025d364fc970249"}},{"ruleId":"D2","level":"warning","message":{"text":"STPAPIClient.updatePaymentMethodParameters (cognitive 28): STPAPIClient.updatePaymentMethodParameters has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (28 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ce05cfee336c276fa053c47a96eeb637e4ff578adbb061e1aa438522d28114"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentSide.instruction (cognitive 28): DocumentSide.instruction has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 4 (11 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/DocumentSide.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd8642c67311a50b3d9037970de78ab80ea34484d8af43f6912e67cb3159a4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Appearance.init (cognitive 28): Appearance.init has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21 (23 pts), boolean chains 3, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PaymentMethodMessagingElement.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"582603efa0b404f750a94794210211c9414a0f444fee026b73aee9190653a16c"}},{"ruleId":"D2","level":"warning","message":{"text":"PartnerAuthViewController.openInstitutionAuthenticationWebView (cognitive 27): PartnerAuthViewController.openInstitutionAuthenticationWebView has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/PartnerAuth/PartnerAuthViewController.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a80c762ee2cbad5759f30f373aa0a728a0ddd19f054eac52b728afc399795a"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentCaptureViewController.scanningTextWithNoInput (cognitive 27): DocumentCaptureViewController.scanningTextWithNoInput has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 8 (9 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0973ed8cf37576469abe05c3bbb66ce0141c3598a974437bb49c1b49387ccd2"}},{"ruleId":"D2","level":"warning","message":{"text":"STPFormTextField.autoFormattingBehavior (cognitive 27): STPFormTextField.autoFormattingBehavior has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 2 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5a8fbb242ebfc3160897790a40be9973db3c54422aeb7ead0866477ecdae34"}},{"ruleId":"D2","level":"warning","message":{"text":"STPAPIClient.makeElementsSessionsParams (cognitive 26): STPAPIClient.makeElementsSessionsParams has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 1 (4 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb2e54f1a2d3f28d1d846d9d528a7b2f137619a315e580dabe2a72ad30d632b"}},{"ruleId":"D2","level":"warning","message":{"text":"FinancialConnectionsWebFlowViewController.startAuthenticationSession (cognitive 24): FinancialConnectionsWebFlowViewController.startAuthenticationSession has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), error handling 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b98dd44248d2ee5de9449598c7b446582c3d8eb15c1c7b2c187c1dffa74a1f7"}},{"ruleId":"D2","level":"warning","message":{"text":"STPCardScanner.processVNRequest (cognitive 24): STPCardScanner.processVNRequest has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Helpers/STPCardScanner.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ea87f484dc7b5fbd7985110f13257d27f408436627997400ae5b13a4926ffa"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomerSession.decoded (cognitive 24): CustomerSession.decoded has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (11 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/CustomerSession.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc25e449a235bb56ea64fe2d976b26d91b7d39651c69a3266e948594fa61c8b"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomerSavedPaymentMethodsViewController.updateUI (cognitive 24): CustomerSavedPaymentMethodsViewController.updateUI has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 3 (8 pts), match/switch 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"169a2e9fe4c277f15f4ec91a524a2b224c8a3093a3dcc4151100a7acae6b9fb3"}},{"ruleId":"D2","level":"warning","message":{"text":"BillingDetails.init (cognitive 23): BillingDetails.init has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/Extensions/BillingDetails\u002BApplePay.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b443f371fc3722088e5324504f0f32c8f0b1f9db28c351410430f0afd2b90e"}},{"ruleId":"D2","level":"warning","message":{"text":"STPAPIClient.billingDetails (cognitive 23): STPAPIClient.billingDetails has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"045cb2fbbe604a30ec282c625a039b9531f9e5ed392f0f6bd5259c6619f22b1b"}},{"ruleId":"D2","level":"warning","message":{"text":"CryptoOnrampCoordinator.collectPaymentMethod (cognitive 23): CryptoOnrampCoordinator.collectPaymentMethod has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (4 pts), error handling 1 (2 pts) (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/CryptoOnrampCoordinator.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ade454b436e07933ab29ae093082de6b517fc206cda808feb65f588b6b07e9"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetLoader.load (cognitive 23): PaymentSheetLoader.load has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 5, ternaries 2 (4 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a561afcd0d930342c2561a4b3943fee7b5df416b17caad031771a41100573db4"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkController.authorize (cognitive 23): LinkController.authorize has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 3 (12 pts), if/else 5 (11 pts) (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9be20861223bc1b64efd52ebf0a62a89e44da4f5c463738eed2e2dedf0ac5b"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetFlowControllerViewController.updateButton (cognitive 23): PaymentSheetFlowControllerViewController.updateButton has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 2 (6 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1482d8b35039a019d72710b119dc0bded69f755c8017a8dd5eab3a69a4b2b8"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleCreditCardOcr.recognizeCard (cognitive 22): AppleCreditCardOcr.recognizeCard has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 2, loops 1 (nesting depth added 11). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/AppleCreditCardOcr.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9811e93ce997cb97e7282dde11f67fe4908d2123c0264b28aa71e98b34ec88b6"}},{"ruleId":"D2","level":"warning","message":{"text":"CryptoOnrampCoordinator.performCheckout (cognitive 22): CryptoOnrampCoordinator.performCheckout has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/CryptoOnrampCoordinator.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"778f500a8af4b59300221f6a5ba311b3c669be88af8b88822963f028df52b307"}},{"ruleId":"D2","level":"warning","message":{"text":"NSMutableAttributedString.pmmePromoString (cognitive 22): NSMutableAttributedString.pmmePromoString has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Helpers/NSAttributedString\u002BExtensions.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc704ac918bb7c1b6b3baeb902d85759d1be26c666a32325e6a927add2054c7"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetLoader.fetchElementsSessionAndIntent (cognitive 22): PaymentSheetLoader.fetchElementsSessionAndIntent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 3 (6 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13edf9e060b3fc7ed38b51d2480e43a7926895ffd1b91e510cb8e60553db844"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdatePaymentMethodViewController.update (cognitive 22): UpdatePaymentMethodViewController.update has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/UpdatePaymentMethodViewController.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3735d8d0c958eb20ace06e325190e0e2427adbdd2ae626723e6a7606d9fba4c9"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPostalCodeValidator.validationState (cognitive 22): STPPostalCodeValidator.validationState has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (22 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Helpers/STPPostalCodeValidator.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92db776625de6d091655b0597fd5fe60df175e96f312c137918c9531065392c"}},{"ruleId":"D2","level":"warning","message":{"text":"STPFormView.set (cognitive 22): STPFormView.set has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFormView.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b52c61bbaa3d57654202606f5812a9c8165d33ef62b4b4540c853b9684b644"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFieldFormatter.applyFormat (cognitive 22): TextFieldFormatter.applyFormat has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/TextField/TextFieldFormatter.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7669a5d211b0308dae679a563d239908c38ff6c182a5e47b9521b725b890fc"}},{"ruleId":"D2","level":"warning","message":{"text":"STPFakeAddPaymentPassViewController.next (cognitive 21): STPFakeAddPaymentPassViewController.next has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIssuing/StripeIssuing/Source/STPFakeAddPaymentPassViewController.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b646ec9349bce9b427e28e1f38a1ed1bd3eca7a722b52a3fbea7ad505f41da"}},{"ruleId":"D2","level":"warning","message":{"text":"PayWithLinkViewController.launchFinancialConnections (cognitive 21): PayWithLinkViewController.launchFinancialConnections has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 4 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c86e9996afe506c26cd32bb5f1f69f1e194a1c75dd39b12cd941f7b739c30d"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckoutSessionPoller.poll (cognitive 21): CheckoutSessionPoller.poll has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), error handling 1 (2 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutSessionPoller.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c400af6b379eb7fb81fc00e0173455a43f64464e69fa3a7eef11f35f671a0f09"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomerSavedPaymentMethodsViewController.didTapActionButton (cognitive 21): CustomerSavedPaymentMethodsViewController.didTapActionButton has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 2 (4 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7e6592cb794a20f8894e60da93182165466fbb4453f030594b499448fe21fb"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentMethodMessagingElement.init (cognitive 21): PaymentMethodMessagingElement.init has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PaymentMethodMessagingElement.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"684e0961ebcd76e7ca897bc39629ffa58a62a772272c53627a487324a75d0c31"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetFormFactory.makeCard (cognitive 21): PaymentSheetFormFactory.makeCard has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 5, boolean chains 4, match/switch 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c729541e34897282bc09956c1f0ef1fe6ae114d7249df255ed2fcedc8685518"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetViewController.updateUI (cognitive 21): PaymentSheetViewController.updateUI has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 4 (9 pts), match/switch 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f9f2b05559181d7b44d3ee24cd3f221a2e5a3adaf923a3e945ed9dab545d82"}},{"ruleId":"D2","level":"warning","message":{"text":"STPFormView.configureFooter (cognitive 21): STPFormView.configureFooter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, boolean chains 10. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFormView.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"131c69a02ad7a8b906419d6a5f6fa2b3546df70f21322838e943da5f1e83fd12"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentHandler.confirmSetupIntent (cognitive 21): STPPaymentHandler.confirmSetupIntent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2518039c437d296bf1a62cbeb1b1a24a3001f1b2b1f2dcba8cf03192ec71a49"}},{"ruleId":"D2","level":"warning","message":{"text":"Intent.fulfilledRequirements (cognitive 20): Intent.fulfilledRequirements has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 6, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Intent.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72072e3446ae3484b0fd7d6ea7363662ef43dc4e4144c6f0a7b6c6bb0d7f72d"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplePayContextClosureDelegate.applePayContext (cognitive 20): ApplePayContextClosureDelegate.applePayContext has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 1 (3 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/STPApplePayContext\u002BPaymentSheet.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"40942387fd825b8e2cbfdd57c0557fe7fdcb2ed9d9b9c6b7d445d919dd812b03"}},{"ruleId":"D2","level":"warning","message":{"text":"STPCardFormView.shouldAutoAdvance (cognitive 20): STPCardFormView.shouldAutoAdvance has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (20 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPCardFormView.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb90c17aee9012c1a6835d44da653dfce97b70163e1053506aea05b680a0ab43"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentHandler._markChallengeCompleted (cognitive 20): STPPaymentHandler._markChallengeCompleted has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":2228}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a512b28b353bd698b7256257ee5ba1a6137cd052015a9433b2b8c419eac460"}},{"ruleId":"D2","level":"warning","message":{"text":"SectionContainerView.updateUI (cognitive 20): SectionContainerView.updateUI has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Section/SectionContainerView.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8aeb2604bc8818f8ca83b92e0a75a4fdff0687bf33b0625dcdce226ba9d74a"}},{"ruleId":"D2","level":"warning","message":{"text":"StripeAttest._attest (cognitive 19): StripeAttest._attest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Attestation/StripeAttest.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a841f25eff0bb84b150ce18bf79f97818a972ab0612eab2bd548fa4cb73fe407"}},{"ruleId":"D2","level":"warning","message":{"text":"STPElementsSession.decodedObject (cognitive 19): STPElementsSession.decodedObject has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/STPElementsSession.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cce7211b8e2803e41c42ae9a4402b3fb94681af2a31be65192fa230fc384e4"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheet.createConfirmationTokenParams (cognitive 19): PaymentSheet.createConfirmationTokenParams has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 3, boolean chains 2 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"166e664512c6cb485445114759fe3100c14e9c5e251464726a6e74f95b6b1686"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetFlowControllerViewController.init (cognitive 19): PaymentSheetFlowControllerViewController.init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, match/switch 1 (3 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"272ac18115fb373ee83e8de2c835325051d5729bab58c1417a8672253d245aac"}},{"ruleId":"D2","level":"warning","message":{"text":"STPTextFieldDelegateProxy.textField (cognitive 19): STPTextFieldDelegateProxy.textField has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"9311737a88ffa2cd7172be8b60e1aedd8e0e6176b808bf1dd005e8d1ac6bc5c5"}},{"ruleId":"D2","level":"warning","message":{"text":"STPCardExpiryInputTextFieldFormatter.isAllowedInput (cognitive 19): STPCardExpiryInputTextFieldFormatter.isAllowedInput has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardExpiryInputTextFieldFormatter.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f3032678686178a0bbfd4da37e822f0a2b37965027b00e3828e2aacd7d7dc8"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentHandler.confirmPaymentIntent (cognitive 19): STPPaymentHandler.confirmPaymentIntent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5da014ee84e5576f6a78798f75422a9bea3dc7c1a9e1b342e0ec0aabcd4665"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentHandler.handleNextAction (cognitive 19): STPPaymentHandler.handleNextAction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"085de490feed2c95b744f2640105d7e119405f11dc1b6c514418b0eb363a9dd0"}},{"ruleId":"D2","level":"warning","message":{"text":"STPAnalyticsEventTranslator.translateEvent (cognitive 18): STPAnalyticsEventTranslator.translateEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Analytics/Eventing/STPAnalyticsEventTranslator.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01c450a103b459b00379f0c656ea25dc17569a11a31795c6fae6ee302ab14e8"}},{"ruleId":"D2","level":"warning","message":{"text":"URLEncoder.swift.queryComponents (cognitive 18): URLEncoder.swift.queryComponents has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (6 pts), if/else 4 (5 pts), ternaries 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Helpers/URLEncoder.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75522f9d367378715f7e24efe8c3f3b96fc50f2d21b040cbd6a0e9c0158a976"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountPickerViewController.didSelectLinkAccounts (cognitive 18): AccountPickerViewController.didSelectLinkAccounts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, match/switch 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerViewController.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"03abb49226fd06a2ad41175e33c3d8fb74aaf4118f8a82b955d5f3b41e582ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthenticationSessionManager.start (cognitive 18): AuthenticationSessionManager.start has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Web/AuthenticationSessionManager.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3164635dcf102b9f5676c04e9158689a36fea3e55b5219f8aa3393f600fc9c"}},{"ruleId":"D2","level":"warning","message":{"text":"STPEphemeralKey.decodedObject (cognitive 18): STPEphemeralKey.decodedObject has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIssuing/StripeIssuing/Source/STPEphemeralKey.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabc4e0f22a2a1c23650e1e6759628649b3b1fd94176ad20199ad0c86c7db56f"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkInlineSignupViewModel.action (cognitive 18): LinkInlineSignupViewModel.action has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, ternaries 2 (4 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/ViewModels/LinkInlineSignupViewModel.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"9112a5e452d596f1cbe1149320f36a711071cf8879917c82a5fe36eba661a318"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetLoader.filterSavedPaymentMethods (cognitive 18): PaymentSheetLoader.filterSavedPaymentMethods has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e9f75d3f39418e9b4bd4a91a3f09b8c378cde794b276d60ff89fe68ec6c643"}},{"ruleId":"D2","level":"warning","message":{"text":"TwoOptionSelectorView.handlePan (cognitive 18): TwoOptionSelectorView.handlePan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 5 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/TwoOptionSelectorView.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8d46a3a2d4d3287bdc73ba2fa8b4ef5dfbddf7261efba2125c80098a3af90a"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddedPaymentElement.performUpdate (cognitive 18): EmbeddedPaymentElement.performUpdate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, match/switch 2 (3 pts), ternaries 3, boolean chains 2, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff46f15c16888c0b220b0466da3b256933ad2a06b132524af11a55f592201c3"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentMethodFormViewController.paymentOption (cognitive 18): PaymentMethodFormViewController.paymentOption has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b11e288c8da4253814feac5c5d9e2ace4a7ac9926a56c3f0b95fddd6c60e0d"}},{"ruleId":"D2","level":"warning","message":{"text":"STPImageLibrary.brandImage (cognitive 18): STPImageLibrary.brandImage has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Helpers/STPImageLibrary.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba7b40e18772488a10d3c5f2aa21b907db4c3c53177c290d66af4cfddc7d633"}},{"ruleId":"D2","level":"warning","message":{"text":"STPCardValidator.validationState (cognitive 18): STPCardValidator.validationState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (6 pts), boolean chains 4, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPCardValidator.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad94042618ae9e6f31d5b75e10c94a15772f270f4b53f929d734723d9d08ee42"}},{"ruleId":"D2","level":"warning","message":{"text":"STPApplePayContext.makePaymentSummaryItems (cognitive 17): STPApplePayContext.makePaymentSummaryItems has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), loops 2 (4 pts), ternaries 1 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a8fb4c419d35c9c92081d03c999d19f0f00bde082d44ea39414a99f6fdc87f"}},{"ruleId":"D2","level":"warning","message":{"text":"FCLiteContainerViewController.completeFlow (cognitive 17): FCLiteContainerViewController.completeFlow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 1 (3 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/Controllers/FCLiteContainerViewController.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fcdcd55bc3403657a8b8faacd52f6565029a2fccfd8717fd31c92db2ff09c5"}},{"ruleId":"D2","level":"warning","message":{"text":"FinancialConnectionsWebFlowViewController.fetchSession (cognitive 17): FinancialConnectionsWebFlowViewController.fetchSession has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f235efc466ced37cbb225c74c73cc6d1e23f7dfe23b9d08d4bf6a996878a17"}},{"ruleId":"D2","level":"warning","message":{"text":"InstantDebitsOnlyAuthenticationSessionManager.start (cognitive 17): InstantDebitsOnlyAuthenticationSessionManager.start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 1 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/ACH/InstantDebitsOnlyFinancialConnectionsAuthManager.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7958a793b96d82576c3d396864e91e33a2b7e4260a9dfbae5f802b9c5c8746"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentConfirmParams.setAllowRedisplay (cognitive 17): IntentConfirmParams.setAllowRedisplay has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (17 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/IntentConfirmParams.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c945d02e07282d04965a69fd3ba74156e5ae0395fb7bfb9423c8d5b5493bc8d"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomerSheet.retrievePaymentOptionSelection (cognitive 17): CustomerSheet.retrievePaymentOptionSelection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSheet.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4c05ac382f4f5cae410fa7f188de22af589a11934a5b092919b46572673a5a"}},{"ruleId":"D2","level":"warning","message":{"text":"VerticalListMandateProvider.mandate (cognitive 17): VerticalListMandateProvider.mandate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/MandateTextProvider.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ad67e5dfe4578a9396a23d8c953744f993144496b86de04c63c1d18aa32952"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentSheetVerticalViewController.updatePrimaryButton (cognitive 17): PaymentSheetVerticalViewController.updatePrimaryButton has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 4 (7 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b56c1942e09a9fed10cd78bd6c24efa45a27c6ee116da413d441e52002993e"}},{"ruleId":"D2","level":"warning","message":{"text":"VerticalPaymentMethodListViewController.renderContent (cognitive 17): VerticalPaymentMethodListViewController.renderContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/VerticalPaymentMethodListViewController.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6c0dd3aa6e4002c969a540c0445a0a89bd7933d3676736484b9c4046a69f64"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoCompleteViewController.tableView (cognitive 17): AutoCompleteViewController.tableView has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/AutoComplete/AutoCompleteViewController.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0836cb2d56a28aa0d3d6b8692bd7ae4bc31fd2a6cc0fd7940e03cc5586cfa0"}},{"ruleId":"D2","level":"warning","message":{"text":"STPFormView.previousField (cognitive 17): STPFormView.previousField has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (STPFormView.nextInSequenceFirstResponderField) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFormView.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"2215398222e56ad0383dd4c054c433c9213812934033cbb3e0326b5b6ef0282a"}},{"ruleId":"D2","level":"warning","message":{"text":"STPFormView.nextInSequenceFirstResponderField (cognitive 17): STPFormView.nextInSequenceFirstResponderField has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (STPFormView.previousField) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFormView.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1e5cb21c564822e0f9f81ab4eb42929bcdd82bd9a80a76b009a18a176136ff"}},{"ruleId":"D2","level":"warning","message":{"text":"STPConnectAccountIndividualParams.description (cognitive 17): STPConnectAccountIndividualParams.description has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 17. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountIndividualParams.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"34359d78005c77d493d0251dc9189c4a2042e0ad62c34fe41eb469a4ec896e3f"}},{"ruleId":"D2","level":"warning","message":{"text":"STPBINController.retrieveBINRanges (cognitive 17): STPBINController.retrieveBINRanges has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBINController.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4dc685baaa14b51711ee2ae941100a16772fdae2be9ece456e0c4591f44ad1"}},{"ruleId":"D2","level":"warning","message":{"text":"AddressSectionElement.updateAddressFields (cognitive 17): AddressSectionElement.updateAddressFields has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 4, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Factories/Address/AddressSectionElement.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbbe9b5d6e567150161c9bb896b5fdb9f6eaaba42370e667ba89c646ecdaf9b"}},{"ruleId":"D2","level":"warning","message":{"text":"CreditCardUtils.determineCardType (cognitive 16): CreditCardUtils.determineCardType has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/CardUtils/CreditCardUtils.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bd5a7bab75a8f5edbb28be88ecf65299624e642fa0fe4d87f170f667c99912"}},{"ruleId":"D2","level":"warning","message":{"text":"PostDetectionAlgorithm.combineCloseBoxes (cognitive 16): PostDetectionAlgorithm.combineCloseBoxes has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 2 (6 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/PostDetectionAlgorithm.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b22274a78cdf81692c452b20e1bec3e67bdbdac1c8050b7737c124eed187a91"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoFeed.configureSession (cognitive 16): VideoFeed.configureSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/VideoFeed.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e6453a17e0694f5ffe5062518c3fbbf14e1df5402c4633894680e5c4a5f553"}},{"ruleId":"D2","level":"warning","message":{"text":"InstitutionTableView.load (cognitive 16): InstitutionTableView.load has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionTableView.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"05485bf702ce64efb16221259747725a1a9fa3bd317a03abc68eac82e3a1266f"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkAccountPickerViewController.presentAccountUpdateRequiredDrawer (cognitive 16): LinkAccountPickerViewController.presentAccountUpdateRequiredDrawer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerViewController.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"295bb765a6c6a94483fc1a1dbf3a046a2c8ab210aa69686c72245827993baed6"}},{"ruleId":"D2","level":"warning","message":{"text":"STPCardScanner.setupCamera (cognitive 16): STPCardScanner.setupCamera has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Helpers/STPCardScanner.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43c6085d215aef3c0fe090d54b2f2f06021098fbc435121e7fe9facd4974d47"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressCheckoutElementUtilities.availablePaymentMethods (cognitive 16): ExpressCheckoutElementUtilities.availablePaymentMethods has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 3, loops 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Express Checkout Element/ExpressCheckoutElementUtilities.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59a1bc726bafee7b2c9892ad03b42f1f112e9a9ef29287a6c3abb60129a60ff"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentCardTextField.textFieldDidEndEditing (cognitive 16): STPPaymentCardTextField.textFieldDidEndEditing has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bcf9486085e606183d8be32ea691fcf028e12f773779254129a6dc837ff17e"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentCardTextField.updateImage (cognitive 16): STPPaymentCardTextField.updateImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, match/switch 1 (2 pts), ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":2168}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad1aed47700c7e4f7d0d3b7ef88b69a9c5844424ca72fb759735abbe293c7f0"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentIntent.decodedObject (cognitive 16): STPPaymentIntent.decodedObject has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, ternaries 6, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntent.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe85e68caa415409b4d925e0a214306df4d5a74aa3b1320dee5e5735b447ab88"}},{"ruleId":"D2","level":"warning","message":{"text":"STPFormEncoder.formEncodableValue (cognitive 16): STPFormEncoder.formEncodableValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Internal/API Bindings/STPFormEncoder.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f18d21f5b7df08ab358deacae20d2138f02da1d4501a742b12601ccb452407b"}},{"ruleId":"D2","level":"warning","message":{"text":"STPPaymentHandler._markChallengeCanceled (cognitive 16): STPPaymentHandler._markChallengeCanceled has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bc9cb246121bb77d6cc50d8f74324edc3428ebe939500f778b475a140c513b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPPaymentHandler.logConfirmSetupIntentCompleted: MethodTooLong \u2014 logConfirmSetupIntentCompleted runs 1519 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1419 over it, 15.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8300b101d7384e92f4c3161ded442e545750147c8cee9457deef93f324fc378"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: STPAPIClient: TooManyMethods \u2014 198 methods. The bar is 30 methods; this is 168 over it, 6.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf903cf81134bf1302e7eead69b8c55a1d174411bc302641cd916ffe8218f2b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPPaymentMethodParams.nonnil_billingDetails: MethodTooLong \u2014 nonnil_billingDetails runs 550 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 450 over it, 5.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd3662abc4ca92e2775da3d95001175d7823d5bffa95d8984af9f219134b765"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DocumentCaptureViewController.titleText: MethodTooLong \u2014 titleText runs 418 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 318 over it, 4.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf60e3c9914a5462dccc80514a295dac6351eb35b6ee017cc324d562c5dc732"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: STPPaymentHandler: ClassTooLong \u2014 1519 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 1119 over it, 3.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"45dd8db7792cd7b8cd0cc2c14fa52c40910104fdbf0a82e2dee2c4676ddec17d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PaymentHandler/STPPaymentHandler.swift: FileTooLong \u2014 1797 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: STPPaymentHandler (100-2444). The bar is 500 significant lines; this is 1297 over it, 3.59\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aacc5d501387f3d615ca493393c3f4c9921b1d4aed8a3a4977c183f4f6584a0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: STPPaymentCardTextField: ClassTooLong \u2014 1390 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 400 significant lines; this is 990 over it, 3.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6164ff0022ae6f9f293e3cc75d0175d2d7a661e3afaf43505f00204126299c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: STPAnalyticsClient: TooManyMethods \u2014 104 methods. The bar is 30 methods; this is 74 over it, 3.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Analytics/STPAnalyticsClient.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e518ac23c72fbc6bfd43a167e8c229c8e4c2cbfd494b12e0393286b2762e5c87"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfirmButton.makeLinkButton: MethodTooLong \u2014 makeLinkButton runs 342 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 242 over it, 3.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/ConfirmButton.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"43efbbed0ab1e620435e6de23f97814e8fc6750fd29c365435e663f585661c5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: NativeFlowController.swift.CreatePaneViewController: FunctionTooLong \u2014 CreatePaneViewController runs 324 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 224 over it, 3.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41cc5efe551fb93bb32ee6122d77652171ca98e8b2016698fe1db829255576a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentSheetLoader.loadLink: MethodTooLong \u2014 loadLink runs 311 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 211 over it, 3.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d7109f1af66901724e3ec9896ae30c299661c893f94c046f1abbb05b3bca39"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPPaymentHandler._handleAuthenticationForCurrentAction: MethodTooLong \u2014 _handleAuthenticationForCurrentAction runs 301 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 201 over it, 3.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21136d5e038c42f26b9cc5b5263184575273d2f4d3bcc37a85ca5ae21288ca5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddressDetails.stpAddress: MethodTooLong \u2014 stpAddress runs 298 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Factories/Address/AddressSectionElement.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"743b2738878c515a61baece4e825a2d7fcf2cd988b5e1dcd0d2dd34d4d458152"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentSheetFormFactory.makeKlarna: MethodTooLong \u2014 makeKlarna runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dba21bddee0eb22dabca8715f942efc83bb754306cff20599917712358bdbc3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentSheetFormFactory.makeAfterpayClearpay: MethodTooLong \u2014 makeAfterpayClearpay runs 295 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 195 over it, 2.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb3454a524c85f9acc0bb6acc44a481385e274a6b1f1c1294d3a90d96329ff2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentSheetFormFactory.appendingAutomaticTaxAddressIfNecessary: MethodTooLong \u2014 appendingAutomaticTaxAddressIfNecessary runs 295 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 195 over it, 2.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7f81c1123746fc0376f86f78ffd7e2aa72d87fd603d6407279ea6cad543238"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentSheetFormFactory.makePix: MethodTooLong \u2014 makePix runs 294 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 194 over it, 2.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e334c926e33f0944b6292fb2a09defbc13b466c9b024f9ac014fa7e34032ecc4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentSheetFormFactory.makeEPS: MethodTooLong \u2014 makeEPS runs 292 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 192 over it, 2.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7091ce895a9acd6a3f593f9fc6646b84426e3d0239965c6f85d89c0788ce7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI Components/STPPaymentCardTextField.swift: FileTooLong \u2014 1420 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: STPPaymentCardTextField (21-2434). The bar is 500 significant lines; this is 920 over it, 2.84\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b601ea9344ea9fb1073456993b30541f0863cfb68f27b9bebf35fb85e188fb3e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NativeFlowController: TooManyMethods \u2014 82 methods. The bar is 30 methods; this is 52 over it, 2.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5dbf241ab5cf19bac74df6df2267a5483ac9200ba8ddc674344e9e5ca9c35c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PaymentSheetFormFactory: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f036377251350d0d0d3c6ebff2e7923a40c8ba07a29bf36b108ea815b347f7ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Native/NativeFlowController.swift: FileTooLong \u2014 1237 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 737 over it, 2.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85c364b0c96643f8afda98a566e589bbcffe15fa3f06feede15c421207cb1c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Result.success: MethodTooLong \u2014 success runs 245 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 145 over it, 2.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a6cef50e7406a30eb74d22542b3ce1d5a1440148bfa4ed7f6405b002b72458"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Configuration.makeAddressViewControllerConfiguration: MethodTooLong \u2014 makeAddressViewControllerConfiguration runs 243 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 143 over it, 2.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7f2ee75f8f83fb447d57ae5e331954816b5d5eb4add971c13f2e8dd4e9f5c6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: STPPaymentMethodParams: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"01985a531ea257b62dc05921de226635be34cab0288192d337f0711ae70cb899"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: STPPaymentCardTextField: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8eebf18e5eca4c2acead0b52b3dd713999be39b808e084ca7de0d1b144312e4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CheckoutController.confirmApplePay: MethodTooLong \u2014 confirmApplePay runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3f80f5368687f09821911bea1a51dd4a72002e7c43220c5293f08d1ce61da1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CheckoutController.expressCheckoutElementShouldConfirm: MethodTooLong \u2014 expressCheckoutElementShouldConfirm runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33daf7c2d128faa7e9b826a484260c14df3f0a4124ae9d26b8557bfde3ca45b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PaymentSheetFormFactory/PaymentSheetFormFactory.swift: FileTooLong \u2014 984 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 484 over it, 1.97\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"531d37a81e165935c55a4a6325b5551293ab3fb44ac7ba6f3ad3a78f2f278edd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Link/LinkController.swift: FileTooLong \u2014 974 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 474 over it, 1.95\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"909fe36be85d64b25e18aa80b0b70680d705f731af87a401086644751e7db28f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: STPPaymentHandler: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbf5bd8b5b474292fa1f88279d874a7adbfda08ffd35981573f6818802994d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SelfieCaptureViewController.initialInstructionText: MethodTooLong \u2014 initialInstructionText runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/SelfieCaptureViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"127d51f9eec1ae26e19d2d58515fd64596dd7121c46620604de0941cc2ab083b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PaymentMethods/STPPaymentMethodParams.swift: FileTooLong \u2014 847 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: STPPaymentMethodParams (16-992). The bar is 500 significant lines; this is 347 over it, 1.69\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2287d199140b3633509c7749919bc5419e3c838d741142ddfefd752437269d1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FinancialConnectionsAsyncAPIClient: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/API Bindings/FinancialConnectionsAsyncAPIClient.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12a08674a14888be07122ec6507da1865c7eef9f323e4e124d72a9224842811"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PaymentSheet: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7eab4013380c70fc1906ab84a071201976b270a0fd8351a239e4476a1acf59"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPPaymentCardTextField.recalculateSubviewLayout: MethodTooLong \u2014 recalculateSubviewLayout runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9b63fa2df660cf2d2f1fd5da8fa0cc24e61e3b613f2db760db7e1e81de24c2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LinkController: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f27c3cf423f0fe4bf21ec2c626b766d16ff420b39d98c25b93a827b62904d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Vertical Main Screen/PaymentSheetVerticalViewController.swift: FileTooLong \u2014 807 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: PaymentSheetVerticalViewController (14-880). The bar is 500 significant lines; this is 307 over it, 1.61\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"191ad7ff9837f94551441a6d1e7e849dc179fb604c5d84d31c00814239c09514"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: STPBankAccountCollector: ClassTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 235 over it, 1.59\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22edd44883eecd8f4fcd83f9f47010b3ddf173a843a12af27e712d8f1767b2e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentPagesAPIResponse.makeAmount: MethodTooLong \u2014 makeAmount runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/API Models/PaymentPagesAPIResponse.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34eafa50986b24514707ad4c9b99fb8359011f2d2f5cee2b33e7865bae3c6e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PaymentSheet/PaymentSheet\u002BAPI.swift: FileTooLong \u2014 765 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 265 over it, 1.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8647be301ece2e3c45ce76bbbd3c086ca3afcbaa061a34de779104fd8986fc1e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CustomerSavedPaymentMethodsViewController: ClassTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 201 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9740a169d6864a2b4d44f5fbe930c37518ddc2e254f01091cd8ffd44331977"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Button.primary: MethodTooLong \u2014 primary runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Controls/Button.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcb9e6e3c7e908d62613a634d2e951527906144fd9a0bfac320119240723456"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EmbeddedPaymentElement: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"484a0221fa69566d5580228871422c4c46d70b740f9de9590def15c9418c58b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PaymentSheetVerticalViewController: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b9241c6e89ae72685cb81a9018e32fd3427785230cbc364fcbf6d054fdcb5c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LinkAccountPickerViewController.didSelectConnectAccounts: MethodTooLong \u2014 didSelectConnectAccounts runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerViewController.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd57c0b28a4908228ccd4dcf0407404ca943164b4e51279d63dcc9b5667e2e0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PaymentSheetVerticalViewController: ClassTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 179 over it, 1.45\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a4acc5c9487c63bab2729d4743363d1f93e23ad05eec91d0f2ea2bee7152e0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CryptoOnrampCoordinator: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/CryptoOnrampCoordinator.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"53199d2a040f83a5b64616ce228653939c7199db26dd46f4668bf90ed5e98c24"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Intent.sellerDetails: MethodTooLong \u2014 sellerDetails runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Intent.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec52abd3047263996eccc12e61532a0eb90d8c27567a205a868556c639d216b6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPAUBECSDebitFormView.init: MethodTooLong \u2014 init runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPAUBECSDebitFormView.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8a456845367b7be69fd905c9356e4c59458ea2d07fdac0b5e6f0fdfe0be93c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CustomerSheet/CustomerSavedPaymentMethodsViewController.swift: FileTooLong \u2014 708 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: CustomerSavedPaymentMethodsViewController (22-847). The bar is 500 significant lines; this is 208 over it, 1.42\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ebbd2b6d931308dd92a9e1ab041ebdb8fb6d9580961ab1ed9182443cffd617"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Helpers/STPBankAccountCollector.swift: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: STPBankAccountCollector (29-966). The bar is 500 significant lines; this is 207 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6805e68db31f86fc53090e0bf7b669fae4ae9df26bbb2ad2569fda7e3ac038"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PaymentSheet/PaymentSheetFlowController.swift: FileTooLong \u2014 706 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 206 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFlowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cdd63ab6032885236b958e095506962cb2336bf3f05ff8d2cc5cf057f57c74"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScanBaseViewController: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/ScanBaseViewController.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4aed413c21ce52735d30f4e9c97c836c2c78737f0581af255c387b6aba14f4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CheckoutController: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a099cebc728ed2f3badcfe040a8646df6e08e3c8ad0b047aa8887e0225b0f538"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API Bindings/FinancialConnectionsAsyncAPIClient.swift: FileTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 200 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/API Bindings/FinancialConnectionsAsyncAPIClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35eea8b2de3970bf96d0bd6c812293a4042e0eb8b45edc1fc3033b14a9d17850"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPPaymentHandler._retrieveAndCheckIntentForCurrentAction: MethodTooLong \u2014 _retrieveAndCheckIntentForCurrentAction runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"68565cb889317d21133429be590f143f6d8bc4d9db4c80a3bac9df01aba37170"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPApplePayContext._completePayment: MethodTooLong \u2014 _completePayment runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b37493bb2593d4d86030a4b16a86a355bb2c24582d79e7a98907f5eaf6d1acd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Components/CryptoOnrampCoordinator.swift: FileTooLong \u2014 693 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: CryptoOnrampCoordinator (241-863). The bar is 500 significant lines; this is 193 over it, 1.39\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/CryptoOnrampCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"067738c7f20dc987efba94607e3b759356b5108e9fa34db2147915b4e96f4677"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: STPPaymentMethodParams: ClassTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 400 significant lines; this is 150 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bb7c1632481b860b3d5885074f7290570d1206421c63bc3a06ee163c7044aa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPDecodingContainerProtocol.castFromNSObject: MethodTooLong \u2014 castFromNSObject runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Coder/StripeJSONDecoder.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d838d7768a1388ad050c3440a99acee3635717f4258106035fcc8ef2f8dcd908"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Saved Payment Method Screen/SavedPaymentOptionsViewController.swift: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 172 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5605f0024baa0a38c70a260ea7627b0e437b73537a18085c948c8016ffc7ffc1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ErrorViewController.viewDidLoad: MethodTooLong \u2014 viewDidLoad runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Error/ErrorViewController.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e704622b4148fae585a934b2332fde3bfe0b1159074e9734614225f6778c4d3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OneTimeCodeTextField: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Controls/OneTimeCodeTextField.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1bf18a526f24bbaddaa8655ccc43b4c8fac772054f79ec0c2a42be84d8f77c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AddressViewController: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/AddressViewController/AddressViewController.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e66a5f676f3a2f8a8288200f74124f54271a9939ca2fa4c897397d9125183ff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CustomerSavedPaymentMethodsViewController: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f52dafc63461392f1b20900520f8c4dba5117139d65bbd3d5c90aba81ff3af"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: STPPaymentMethod: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethod.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd069b544e7600fd90e82c4dc545519c4da4f06fc30170f98a2baaf7f7d9ec5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Link/STPAPIClient\u002BLink.swift: FileTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 109 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e1c99a6c0981bc194ebac8edfd3501e430b52f5074938086e4f299e4390efc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: STPApplePayContext: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 80 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"861450a0b09bf9dbdfe3b7b0d207e874033183dd6e33bf8f7a835ce82205dde9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NativeFlowController.closeAuthFlow: MethodTooLong \u2014 closeAuthFlow runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca83df3a37e711c90d8baf3343d7b5e129cbfe26a782fc4ffdbdd4bb416a9923"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPIntentAction.decodedObject: MethodTooLong \u2014 decodedObject runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f017d121c7c22913f8f8cb7d97a8eb1c3ebad06985ef8a04d8142341c914f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controllers/PayWithLinkViewController.swift: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 85 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7df1ef8ac8ffaed41da339e249406fc99f28c1ea49a5c386842f412b6898ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Embedded/EmbeddedPaymentElement\u002BInternal.swift: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 84 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3d30394564249d208d7ff5bea4d13be2d882a9faaf337ccb369ebf15e78617"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SimpleScanViewController: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/SimpleScanViewController.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"9caf8fda7ebe9b78fe6d8df27b1ef95abf7bea2ab2545e51cbc7b230d0c97589"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPPaymentMethodType.displayName: MethodTooLong \u2014 displayName runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3e9264e81be50f1a2a5a1738a42f272f8dc754b6835984b6ac3fcda9b8f41b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ApplePayContext/STPApplePayContext.swift: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: STPApplePayContext (160-939). The bar is 500 significant lines; this is 79 over it, 1.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2463611b53fc88e5d4eb6f08f9ab4f1714d96616452442f78abfb9fb867280f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConnectWebViewController: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Internal/Webview/ConnectWebViewController.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"218a6bfe65c17f5f1fcdf624439a0ab6098af86b2f229380dcdc311985fc229e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controllers/PayWithLinkViewController-WalletViewController.swift: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController-WalletViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f680255ea28029983d8bfaca8e15585d33bcaf16515862534853a329abe8db5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ViewControllers/PaymentSheetFlowControllerViewController.swift: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: PaymentSheetFlowControllerViewController (17-613). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0865529bf1c9a2fef281ce1523c0f5a16ec9ca085a72eef426fd86046bca992"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Coordinators/VerificationSheetFlowController.swift: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 57 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/VerificationSheetFlowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d64fe3db19dc24312e8e4fd3ed923a04f1e3d99dfb6c05febcdb0696779f13"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VerificationSheetController: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/VerificationSheetController.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7be682577bd0fa42e0aa625075f767c63c4f0e064b4ba0d0fe6201959da0f40"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ViewControllers/DocumentCaptureViewController.swift: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: DocumentCaptureViewController (15-640). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9ade1327355ac6748026e86e040dcab2ca1f2da742d22e30afa5ca31b9ba57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AccountPickerNoAccountEligibleErrorView.init: MethodTooLong \u2014 init runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerNoAccountEligibleErrorView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae70b6042fbbafc5e2dfd7346c9b9bc0656af130bdc16536be2ebaeb27f720f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPPaymentMethodType.identifier: MethodTooLong \u2014 identifier runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac047c80f6469dc4658f643f7d0cef92cf6cd0b3c7abbf63156d00ea7991cb95"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfirmButton.update: MethodTooLong \u2014 update runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/ConfirmButton.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"b900e5e2192a12ebb0e740a5d604b6be43019f69049fd2baff9bd40525a9599b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CryptoOnrampCoordinator: ClassTooLong \u2014 429 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 29 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/CryptoOnrampCoordinator.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aedd67bcbc86a2227b771b50e686f7e80ddadc651ffbd799a61b790163a04dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPIntentActionType.description: MethodTooLong \u2014 description runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"3119a250c50587b2d9bbdcdcb2d7da9edb83312459ea77ce1d97b9122e4c1ea7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PayWithLinkViewController: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7d11cc9b0c3019069f2c3129fb716a0600f6d55e84f5472a4f043085e1c64e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PaymentSheetFlowControllerViewController: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d32604dbaaf0d691c6902f08f68ff9f563289d64bbb2046b4d76a2ccc83002"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ViewControllers/PaymentMethodFormViewController.swift: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 28 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"549f3ba2c99b5b8ac61d03837ae25adb9c08b082e1c528dd882dd6a03d4f679e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PartnerAuth/PartnerAuthViewController.swift: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: PartnerAuthViewController (34-723). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/PartnerAuth/PartnerAuthViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44aceb349f263b3d5d1774bbc783b5d0abb3a89df9cf1733c90bdf3c3ed31799"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: STPPaymentIntentConfirmParams.nonnil_paymentMethodOptions: MethodTooLong \u2014 nonnil_paymentMethodOptions runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentConfirmParams.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b799176449d3a01403e30f4153326f90b02ce28ce15a43383b9c246967e13585"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PartnerAuthViewController: ClassTooLong \u2014 419 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 19 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/PartnerAuth/PartnerAuthViewController.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"05aed0146a822b49fecbe010c98e6775a56c23462ed35cb8505073c09d7cc886"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DocumentCaptureViewController: ClassTooLong \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 18 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83c046430041081a291b7b6b472e172f39c4036206f79ab242a62f6b2d04160"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Vertical Main Screen/RowButton.swift: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 19 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButton.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"380dece7743019b28970ab3dc355a78b72405f008d405b633d6caf55d559d898"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PartnerAuthViewController: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/PartnerAuth/PartnerAuthViewController.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5820436f4cd68e394b08a899c9ef25d89fbd55dce88d21c7e361a8f6f66a7459"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DocumentCaptureViewController: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f8ded6366a18262d7beead61eded9f8d31e8cf981aa2ba570ecf69cdc53e73"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SavedPaymentOptionsViewController: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b4e0c243f37502cd3c7516e63466bedacaca8423c25cfb38cd62eb8f92e1db"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IdentityAnalyticsClient: ClassTooLong \u2014 405 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 5 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/Analytics/IdentityAnalyticsClient.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2154ee241b967ea7b94e8de3454625c29d4188813c672af540067a69284aac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentSheetLoader.load: MethodTooLong \u2014 load runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"153943f440bc45910e34a19e84f838da9cc9951c470f28ae65237bffb127e2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 35 shared lines): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:126-196 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:210-282 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:551-620 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:634-706 \u2014 These 4 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4328ae994de36bc7f85d30c67927cf92b39897d3a7a54c38df5500d86666143"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:63-241 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:12-156 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"48463a6b5f97e408700824d7cedadd09a32b8975662b03bd095e860b4bf5c0d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift:77-162 | StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardNumberInputTextFieldFormatter.swift:45-81 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b4cdeb2d944dfb22abc3f5cdf5d2d9c2bd23b305405ac6c8feef67f2163178"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/CreditCardOcrPrediction.swift:49-76 | StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/KycInfo.swift:102-126 | StripeIdentity/StripeIdentity/Source/Categories/NSAttributedString\u002BHTML.swift:55-93 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BCheckoutSession.swift:66-92 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/STPElementsSession.swift:76-117 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift:155-205 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/VerticalPaymentMethodListViewController.swift:55-89 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntent.swift:199-248 | StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift:65-100 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/LinkSettings.swift:55-93 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:312-347 | StripePayments/StripePayments/Source/Internal/API Bindings/STPIntentActionUseStripeSDK.swift:51-80 \u2014 These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/CreditCardOcrPrediction.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bb8048640282ce673b6387c844371488b669dd8df269feeec6bd279aaf3aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift:206-241 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/CVCReconfirmationViewController.swift:85-119 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:298-342 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:224-263 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfa6f4456311d303cf50a59c3d163414d046a1b57262fdf3a9eb75daa0b5ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): StripeIssuing/StripeIssuing/Source/STPEphemeralKey.swift:37-80 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethod.swift:262-427 | StripePayments/StripePayments/Source/API Bindings/Models/STPFile.swift:106-133 | StripePayments/StripePayments/Source/API Bindings/Models/STPToken.swift:104-132 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIssuing/StripeIssuing/Source/STPEphemeralKey.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"de75a721c8a879e429e00ed12030de19943b1657b44c9b1d0077bec6ae36eb41"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift:388-424 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:796-828 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:1119-1152 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Saved Payment Method Screen/VerticalSavedPaymentMethodsViewController.swift:496-528 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4a437683b514749b9c3c60a8b7d0852d18914c8937e10003233f1438c7c0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift:29-91 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithDisclosure.swift:39-102 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithRadioView.swift:64-112 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFloating.swift:87-131 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbef992e8da48f8b01c9f8a795c519a9c1c2615cb69e7c3b79fe06e8c475973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:138-191 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:223-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:138\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95e04bb971244bc26870c004c90c5717b80b43edfe727ed0be6508549b4169e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift:453-499 | StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift:198-244 \u2014 before extracting anything, compare \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift\u0060 and \u0060StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift:453\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8245da6e98c182175d4d61fe61ce99779ef1f83cffef15010d10f8132cc28ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201345 lines \u00D7 2): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:410-454 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:832-875 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:410\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce35b9ca6b4d18ec19bdf13bcd766952f2bd1f81da367accb38374d7609dbe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:563-607 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:647-691 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:563\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"7053dbe6b9356052581b970935475458d6d5c2c0d10a04b38148068de632f6ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift:258-291 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift:322-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift:258\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b095be2af6053f709960feebafb79d560cae9cfeca1a7f6af15ca2f1fb0c5fca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): Example/AppClipExample/Shared/ApplePayModel.swift:16-49 | Testers/IntegrationTester/IntegrationTester/Source/Models/ApplePayModel.swift:16-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AppClipExample/Shared/ApplePayModel.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84fa7b5cc2ab2fd2802eb4aa342824b9a45c280eaeb08f47a0748432895b6cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift:45-76 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithDisclosure.swift:56-87 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithDisclosure.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e027197ccbf891e789d12e3c2a26f2b4bd920e219ef7fdb9a4b3414c65a6dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift:66-95 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift:107-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift:66\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"14827462d7357803fb4b9834b35c13311eee0fac835fb220db6a3852120d2868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201330 lines \u00D7 2): StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardNumberInputTextFieldFormatter.swift:52-78 | StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift:92-121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardNumberInputTextFieldFormatter.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"333b34a8d8c377e0b844e2adca260bdbe83adcfb5205c5f618683904cee61615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift:207-236 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift:326-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift:206\u0060 calls \u0060STPLocalizedString\u0060 and \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift:325\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"373f4a519c0c48088efa80bca6bd30b1824cad345b8e5004ad87b1a62fcff8a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201328 lines \u00D7 3): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentBodyView.swift:71-98 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkSignupPane/NetworkingLinkSignupBodyView.swift:80-105 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeViewController.swift:167-190 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentBodyView.swift:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentBodyView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c20a5737c46d4f030b0522c792481e25101ab744f394db48e697055c3a5e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): StripeIssuing/StripeIssuing/Source/STPPinManagementService.swift:59-86 | StripeIssuing/StripeIssuing/Source/STPPinManagementService.swift:115-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeIssuing/StripeIssuing/Source/STPPinManagementService.swift:59\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIssuing/StripeIssuing/Source/STPPinManagementService.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ae521178c42a8af7c4bcd9bc831d9ff8b8498e8cf58283af4c0526a45eed0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:988-1015 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1060-1087 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:988\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"0675b32aab67cbced1ad3476b727995005fe0dcccacfc0111e67eaf706662e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1621-1647 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1722-1744 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1621\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9606641c1aaaa1f67d893d95720cb6a68be7e1a8ced09be1bad74906ac4b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift:364-388 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:488-511 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift:364\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7bcd5ad60e5daa3dc58859d26c4145a30f7ea2023d8a1d5e030cb2d2520814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:62-85 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:88-111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:62\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24c142de653c5556cffb6f34df9f9dedd879b2767aa29af595a015d6edf5b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift:472-495 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift:498-521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift:472\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6ab7dfcb86a3c9570e49109fec8acb20e4a92fb05f6cea493c50f0f0c96a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift:393-415 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:801-823 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:1124-1146 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Saved Payment Method Screen/VerticalSavedPaymentMethodsViewController.swift:502-524 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060paymentMethod\u0060 to \u0060StripePayments.STPPaymentMethod\u0060 in one and \u0060STPPaymentMethod\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:825\u0060 calls \u0060updateUI\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Saved Payment Method Screen/VerticalSavedPaymentMethodsViewController.swift:526\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8f321eabcc53e6ffcc85eaac670e00cd57760bcd95b855b923a6a80e278d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201323 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/USBankAccount/InstantDebitsPaymentMethodElement.swift:295-317 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/USBankAccount/USBankAccountPaymentMethodElement.swift:224-236 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/USBankAccount/USBankAccountPaymentMethodElement.swift:224\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/USBankAccount/InstantDebitsPaymentMethodElement.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"114ee07ef815c5ffd5fd4650eb77e513f06998b812c79d524bc1ed0965b64cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardAddViewController.swift:156-176 | StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardViewController.swift:202-223 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardAddViewController.swift:156\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardAddViewController.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdaade43f0c170195df9215adb17ffcd5c9c7bd8c4327e5765ef2ad9d250c4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BLinkAccountSession.swift:21-42 | StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BLinkAccountSession.swift:44-65 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BLinkAccountSession.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ebef9ee5bd77c787624b12587bcc9f9576770df1f01c950851a236b25b6f982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:755-776 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:590-611 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fb5fd5ddd314096d8e9ddc6f1efe1945c5fc67d4edd044fb54b41869ac10d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/ManualEntry/ManualEntryFormView.swift:151-172 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/NetworkingOTPView/NetworkingOTPView.swift:128-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/ManualEntry/ManualEntryFormView.swift:151\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/ManualEntry/ManualEntryFormView.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54f1ba269013eccbc561062112ccc2581cdaa36d43f2c07f710bd6aaaa7efed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift:223-241 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:242-263 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift:223\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c29b4fae1c08b1cc3810a7124c76480531e2582d2da17c75d71afb38a542d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:167-188 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:208-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:167\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"db539b5b69d2bc6c10a6804076e356cd91cf167d57bf6ac54de5b027784270d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): StripePayments/StripePayments/Source/Internal/STPPaymentHandlerActionParams.swift:83-104 | StripePayments/StripePayments/Source/Internal/STPPaymentHandlerActionParams.swift:175-196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Internal/STPPaymentHandlerActionParams.swift:83\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Internal/STPPaymentHandlerActionParams.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d60c99b2e0f4a6688846cdbe003767ad731e4240adf07f2a10db4fcdd3b27ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:248-269 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:487-508 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:248\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda9efb8ce90973987026193ca10bd179343b0f16724204016a6ef446df53f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeViewController.swift:221-241 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeViewController.swift:268-288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeViewController.swift:221\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeViewController.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d170e165a94b1d6c451baae3ce59856d2e2da1ea96113586c34ac02a672efd95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:84-104 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:124-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:84\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd1ed46732be269a965193f097c2bcb5ac56551920294a3d28e23c54c362d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/DetectedSSDBox.swift:16-35 | StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/DetectedSSDOcrBox.swift:16-35 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/DetectedSSDBox.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"150d9770647da9adbdd0b519be39b8b718bb3494c35268d8c0c71131e587c455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift:432-450 | StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift:176-195 \u2014 before extracting anything, compare \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift\u0060 and \u0060StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift:432\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85ebed3703c5cc824111ad3c66fb74a8253507b6dedc7d57fbec7210a068cbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift:308-327 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:844-863 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift:308\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2aa122212770361496ddedf807c15069f460293b546f5ca984c0a3b9c852f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift:182-201 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift:301-320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift:202\u0060 calls \u0060STPLocalizedString\u0060 and \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift:321\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"665263c44ea04188f4fa5570584f4aec1534b6fbe01ac5e21e1c35bff7cba674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift:437-455 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:731-749 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca9d511b3c5acabb4f6355094d229cab13a63dcecf46a934deec735ac0e2fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:588-606 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:356-374 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:588\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaec782f629083d944455511c169a0594d490b2e0449225d3408bcbaa3cd5f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/CountryNotListedViewController.swift:51-69 | StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/SuccessViewController.swift:33-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/CountryNotListedViewController.swift:51\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/CountryNotListedViewController.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"82598f64005b0c411970f6d21d80db88d348397664731f392694db07813e9285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:964-981 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1033-1051 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:964\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"45430ea1704fd3bf191f9216a876adc5b348c6f32ebf1d298754b682a7c99951"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): StripeConnect/StripeConnect/Source/Internal/ConnectActivityIndicator.swift:218-235 | StripeUICore/StripeUICore/Source/Controls/ActivityIndicator.swift:249-266 \u2014 before extracting anything, compare \u0060StripeConnect/StripeConnect/Source/Internal/ConnectActivityIndicator.swift\u0060 and \u0060StripeUICore/StripeUICore/Source/Controls/ActivityIndicator.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Internal/ConnectActivityIndicator.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d4ed0ab60a050899c6fe9dce94cbe523961616a019684edb92f900d6b15238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/AppAttestationError.swift:55-72 | StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/AppAttestationError.swift:77-94 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/AppAttestationError.swift:55\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/AppAttestationError.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6724077bdbfb658f7f6913ae99253bdbda029b08d7f7d52b6871d67ed2b6195b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Analytics/Experiments/LinkGlobalHoldback.swift:25-42 | StripePaymentSheet/StripePaymentSheet/Source/Analytics/Experiments/LinkGlobalHoldbackAA.swift:25-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Analytics/Experiments/LinkGlobalHoldback.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6adc98cf3b93f9f2450143b13d6307281129c7dfa747552ba47520020faba4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCardWalletMasterpass.swift:48-65 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCardWalletVisaCheckout.swift:29-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCardWalletMasterpass.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f025aab34b58b4bbb6b53e3fc6375a32f44f5dddc7bd81c068f609af2626959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): StripeApplePay/StripeApplePay/Source/Extensions/BillingDetails\u002BApplePay.swift:20-36 | StripePayments/StripePayments/Source/API Bindings/Models/STPAddress.swift:106-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/STPAddress.swift:106\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripePayments/StripePayments/Source/API Bindings/Models/STPAddress.swift:105\u0060 calls \u0060init\u0060 and \u0060StripeApplePay/StripeApplePay/Source/Extensions/BillingDetails\u002BApplePay.swift:19\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/Extensions/BillingDetails\u002BApplePay.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f660d338406fd0f61eee075144ca7433ac699b7820b6f7984d095a05378ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntent.swift:124-140 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntent.swift:354-370 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntent.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"184006c93aa7743d40a78c63edbbfcce43e0d981a989e1b2aea6213c14c1f5f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): StripeCardScan/StripeCardScan/Source/CardScan/UI/SimpleScanViewController.swift:259-275 | StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardAddViewController.swift:98-114 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/SimpleScanViewController.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"88614088a36b9dbb21cdaf51d54cbd4328be50e90bcfd7cce25a799d9cb2c0c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift:290-306 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:210-226 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"76baaad3e5673021bdf7fa7a3c96b0d0b945a0a9842a3249351673e51a3659b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:538-554 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:660-676 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:538\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7bec252baedcc13e14186460354bd300d3a965c6c1914d01b42e9840e322a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:389-401 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:285-301 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e38d3b81fe5ae9d9614c6211838ef08b79f106a0b52ee7a5ab6458712669db6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift:145-161 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift:170-186 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec582a6cb99545b946d72f65c1add7e326f8801a10b093feb4e246a05043748"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift:348-361 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:384-397 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:280-295 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift:348\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd41cf09338f90fd8192fd78f8ebbfca2cc15383c8c47f123f5d93b3b845c6fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerBodyView.swift:120-135 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerBodyView.swift:158-173 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerBodyView.swift:186-201 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerBodyView.swift:120\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerBodyView.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2fe74764ef62c426017e8183f8bf314df08647a30ab8e77887a5a04b0fd5c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift:221-236 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/LinkSettings.swift:147-161 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:491-505 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift:221\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"825b3d7873595883adea125923b06d2b2ff13d3e4b468946e52801e2b01456a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripeConnect/StripeConnect/Source/Internal/ConnectActivityIndicator.swift:127-142 | StripeUICore/StripeUICore/Source/Controls/ActivityIndicator.swift:164-179 \u2014 before extracting anything, compare \u0060StripeConnect/StripeConnect/Source/Internal/ConnectActivityIndicator.swift\u0060 and \u0060StripeUICore/StripeUICore/Source/Controls/ActivityIndicator.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Internal/ConnectActivityIndicator.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c904239c806a1d2043a3799e7d29a83131e25dc46afdeb05a72967ea66ad0e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:128-142 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:201-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64d5a4849282298880d392101c82e44fe14cb4360c7b1b1531bfd0173592593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BPaymentSheet.swift:120-135 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BPaymentSheet.swift:149-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060configuration\u0060 to \u0060PaymentElementConfiguration ) async throws -\u003E (STPPaymentIntent\u0060 in one and \u0060PaymentElementConfiguration ) async throws -\u003E (STPSetupIntent\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BPaymentSheet.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c320bfc0ee3d204b034676ac8dd4fb36f974838386df3318815e3784c8daea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:222-237 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:172-187 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:222\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e48b00b1f3db5da7dcf67960ea1129d010572cb070ecd872557d74fddcf3c3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift:53-68 | StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/IDDetector/IDDetectorOutput.swift:73-88 \u2014 before extracting anything, compare \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift\u0060 and \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/IDDetector/IDDetectorOutput.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift:53\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a634f3231b7da2e558a06089127762798df5b3196ea175a739ab4716cabb0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Elements/InlineSignup/LinkInlineSignupView.swift:341-356 | StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/SignUp/LinkSignUpViewController.swift:417-432 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Elements/InlineSignup/LinkInlineSignupView.swift:341\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Elements/InlineSignup/LinkInlineSignupView.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c5b9e1cdf66853217db82ad4225797cdea38f5792f0ec8bd259af72e88abb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:241-256 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:355-370 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f03283e4548ea59ae4bca7da09cb0b54a038ed8a6e7dc86cee5de1bdb42c6fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/PayWithLinkController.swift:85-100 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/PayWithNativeLinkController.swift:302-317 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/PayWithLinkController.swift:85\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/PayWithLinkController.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b5373d2cc288a586de3fbf0ef038fb3297c1b901879ea86d5ac880b905a478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMME\u002BInitialization.swift:21-36 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMME\u002BInitialization.swift:80-95 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMME\u002BInitialization.swift:21\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMME\u002BInitialization.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdd261fb167ede4a7e1ef20898333e223d92efb40eae0d7f9253dbc54d6af23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:392-407 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:815-830 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:392\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d30b7d07036f9e1237943ec4fa7ff2839d4d95e1bcabe349f1781b3caaa91b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:223-238 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:466-482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:223\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba95c751d5f371cc283affa5ed24b2d3a245a3fd479ee151c64bdb3aec12237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift:36-51 | Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithShippingInfoView.swift:61-76 \u2014 before extracting anything, compare \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift\u0060 and \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithShippingInfoView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift:36\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26303d63f291fbdbf5f06b24e56e36d03a9e09d6b32aa42594b28f311f5d1f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:482-496 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:589-602 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:482\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60ccb2599bc9a8c1bc5af5567ffe4f71aff7598806ab9cfd2e932361d7f2e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift:457-471 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:751-765 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift:457\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c6c03498de2ea2dcb04c72331eac87846bb1d3d919bc9d86ff8e3f2ca8d2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory\u002BiDEAL.swift:11-25 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift:719-732 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory\u002BiDEAL.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cca5b96311b420be895197b56f5d38634649f7476ece2d90ad3e3313397139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentLogoView.swift:130-142 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/PartnerAuth/PrepaneImageView.swift:101-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentLogoView.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"445424e57b8efe1d9e3c2449083576fc07a5ab2b5f8840a0529b8779db0bd8a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/SignUp/LinkSignUpViewModel.swift:200-214 | StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/ViewModels/LinkInlineSignupViewModel.swift:469-483 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/SignUp/LinkSignUpViewModel.swift:200\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/SignUp/LinkSignUpViewModel.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1338d4c4adceb388328e92294c992d5c681d8a687e5691e296f30d1e11313c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:338-352 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:717-731 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f18d32a59bbbf1db8c63610bbd18dd38c14e8c6c3ec6336d1ea7e442a2b5293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:405-419 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:821-835 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:405\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddcce716d5d8a3be50b8ab4d90182288f5beee5987ac18dceb4e55034b8551f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201315 lines \u00D7 3): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift:77-91 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithDisclosure.swift:88-102 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithRadioView.swift:98-100 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithDisclosure.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift:77\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80592fdafde1745d22b6fd64031d4146c4ef28d34578a8030f41e05e4134f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/STPInputTextField.swift:213-227 | StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift:284-298 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/STPInputTextField.swift:213\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/STPInputTextField.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"5010b4faa1ab56c06301e8acedfdeaf45028a7fdeb054edadf8fba44a25d8106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:337-351 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:761-775 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:337\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b44e6d200d20343e2f8dea6384de0d5c0f401b9cdeb4a30e274e79e73f3f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Testers/IntegrationTester/IntegrationTester/Source/Views/AUBECSDebitView.swift:20-34 | Testers/IntegrationTester/IntegrationTester/Source/Views/CardView.swift:20-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/AUBECSDebitView.swift:20\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Testers/IntegrationTester/IntegrationTester/Source/Views/AUBECSDebitView.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c11bec3b01b922b29faf1262d5d2e8be81790f0099a4046fce0c9cadef7572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:97-110 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:137-150 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:181-194 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:222-235 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:97\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:179\u0060 calls \u0060validatePaymentMethod\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:94\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"231d81eb6801eb731f7a0b1d064d67860b8d4063ef8d6dea32c5b870c21ac600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift:411-424 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift:435-448 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift:461-474 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"49973187c37f39a128bd12d869b89bfc8b0b4db0b25906688956d73fea5edabd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:782-795 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:805-818 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:782\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1841a6b9281ff23ccd19a46d79235374512d6b7c2c727ba0a3bd7d75f1980a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BRadar.swift:27-40 | StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BRadar.swift:83-96 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BRadar.swift:27\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BRadar.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"856661098167f12688147af481f7e11f8af8d8c9ffd7c985e6cf2b34af890d22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:555-568 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:678-691 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:555\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"217778dfc35b9786ab0a06eb936e61f17c196a8ebf5c7c146c2e1bda924b4e96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/FCLiteImplementation.swift:16-28 | StripePayments/StripePayments/Source/Internal/Helpers/ConnectionsSDKAvailability.swift:96-109 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/FCLiteImplementation.swift:16\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/FCLiteImplementation.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1059156036360ed8565596d75f33acc188c2bb807063fab3fd5eefede85310a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/API Client/FCLiteApiClient.swift:40-53 | StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/API Client/FCLiteApiClient.swift:61-74 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/API Client/FCLiteApiClient.swift:40\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/API Client/FCLiteApiClient.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5435002692cdc8b81370350e12dbc6e89c36f2597fe1e3bed23e0237c2cc9d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/API Bindings/FinancialConnectionsAsyncAPIClient.swift:131-144 | StripeFinancialConnections/StripeFinancialConnections/Source/API Bindings/FinancialConnectionsAsyncAPIClient.swift:156-169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/API Bindings/FinancialConnectionsAsyncAPIClient.swift:131\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/API Bindings/FinancialConnectionsAsyncAPIClient.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"7263fc1700e02c6d662848658cb69d2c4d7be9efe6c170b953824a3cedb2fa6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMEMultiPartnerView.swift:50-63 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMESinglePartnerView.swift:31-44 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMEMultiPartnerView.swift:50\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMEMultiPartnerView.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea359979936cdf7cad0559c2c82321b188b070dd3bb4b75b4aa30ceca522bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift:29-42 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithDisclosure.swift:39-52 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithDisclosure.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift:29\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"837d78819ef0ab3cbc7b91ae5910ab100892e07938e78dd7c6fcebbb7c06caf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BCard.swift:63-76 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BLink.swift:52-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BCard.swift:63\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BCard.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e6902166a62930d203aa8bc9e67eb177e3e78b8e4569ac8ea2ff7e4b0a205b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1462-1474 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1491-1504 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1462\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f08d240eb2e499e73a7599c966bdbb11f3feeb4af64b33d85cbe64d8979781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Helpers/String\u002BExtensions.swift:100-113 | StripeFinancialConnections/StripeFinancialConnections/Source/Helpers/String\u002BExtensions.swift:119-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Helpers/String\u002BExtensions.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6eaa71d93d97a78ba447b65bc6d0d70b243b94fdcf2afbeb9c5d2c344e6cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 11): StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/CreditCardOcrPrediction.swift:62-74 | StripeIdentity/StripeIdentity/Source/Categories/NSAttributedString\u002BHTML.swift:74-85 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BCheckoutSession.swift:79-90 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/STPElementsSession.swift:96-107 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift:173-184 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/VerticalPaymentMethodListViewController.swift:71-82 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntent.swift:223-234 | StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift:82-93 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/LinkSettings.swift:74-85 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:329-340 | StripePayments/StripePayments/Source/Internal/API Bindings/STPIntentActionUseStripeSDK.swift:65-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 11 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/CreditCardOcrPrediction.swift:62\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/CreditCardOcrPrediction.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0845894d30fe3a513c24527ec4e3170fa6dd110f6e06517a5a52f0d35bef705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/STPElementsSession.swift:105-117 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntent.swift:236-248 | StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift:88-100 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:335-347 | StripePayments/StripePayments/Source/Internal/API Bindings/STPIntentActionUseStripeSDK.swift:68-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/STPElementsSession.swift:105\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/STPElementsSession.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4532f71981de608b5030bee6eef60d2f646af3bd7d3ad2dee8fec001e5ffa319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift:50-62 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithDisclosure.swift:61-73 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithRadioView.swift:73-85 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFloating.swift:97-109 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithDisclosure.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButtonFlatWithCheckmark.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"194c2bfaf31659f4d2c52792009852a94396a5ca29ad248dc6f8f5acf1cb8e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:152-164 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:237-249 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:577-588 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:661-672 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c149c7493c45773aa45c6d39bea30d8fac49c2101aabc1420b5b95127010f319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/CreditCardOcrPrediction.swift:62-74 | StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/KycInfo.swift:114-125 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BCheckoutSession.swift:79-90 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/CreditCardOcrPrediction.swift:62\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/CreditCardOcrPrediction.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b486e4254c8ddbbf1806a0abcaa944ee6e9ae44740d75ea2964d76d3ddf97b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripeApplePay/StripeApplePay/Source/Extensions/PKPayment\u002BStripe.swift:19-31 | StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BApplePay.swift:198-210 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/Extensions/PKPayment\u002BStripe.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b774b25afb796074ef93fcb82f1fcbc50a88347bc56f039a3478f2e73b1e834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripeConnect/StripeConnect/Source/Internal/ConnectActivityIndicator.swift:113-125 | StripeUICore/StripeUICore/Source/Controls/ActivityIndicator.swift:150-162 \u2014 before extracting anything, compare \u0060StripeConnect/StripeConnect/Source/Internal/ConnectActivityIndicator.swift\u0060 and \u0060StripeUICore/StripeUICore/Source/Controls/ActivityIndicator.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Internal/ConnectActivityIndicator.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"057b82cc3aa3a0361321d678c7ff987d7eb2ff3ef85b3d96fc35df57d9376354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BPaymentSheet.swift:237-249 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BPaymentSheet.swift:284-296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BPaymentSheet.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec017cd80107dbbf7ddc03b5e9f53268c89bcb47b446ed409579fbd77826810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BLinkAccountSession.swift:84-96 | StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BLinkAccountSession.swift:122-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BLinkAccountSession.swift:84\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BLinkAccountSession.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8f7454f8bdf7eec5e2631d0a64d373e842ac074ae6ccf4052b81a0509779a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripeCore/StripeCore/Source/Connections Bindings/BillingAddress.swift:21-33 | StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Address.swift:43-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCore/StripeCore/Source/Connections Bindings/BillingAddress.swift:21\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Connections Bindings/BillingAddress.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c813f3f84c1881cfbca11ae223ea330ed92b2a4d182b952a562fdb7d5499e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkVerification/NetworkingLinkVerificationDataSource.swift:43-55 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingSaveToLinkVerification/NetworkingSaveToLinkVerificationDataSource.swift:37-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkVerification/NetworkingLinkVerificationDataSource.swift:43\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkVerification/NetworkingLinkVerificationDataSource.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c383f4a43e8b99233b686154ff3fbee68cc45c4c3a7adf812704cb1298de89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift:109-119 | StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/IDDetector/IDDetectorOutput.swift:137-149 \u2014 before extracting anything, compare \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift\u0060 and \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/IDDetector/IDDetectorOutput.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift:109\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f0b43c153c4c67c2eb83721aa7888f4c9852ea09e5ec4559408bd337100c6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:409-419 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:643-655 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:409\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad64bbf8b1b3316bba4a951e8151bd16a80d8871bacdc297de7ebf1c9b732c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:285-297 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:535-547 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:548\u0060 calls \u0060constraint\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:298\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3bc13a05b73da775d24f8574cc4c1c9960a0fb7f44fa42ff411f0e2c21a24a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift:514-526 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift:532-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift:514\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b310fc09e6eec6705fcf98659c5ae231c15e7c422b6326f10cd61f7cd35b2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory\u002BBankDebits.swift:24-36 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory\u002BBankDebits.swift:48-60 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory\u002BBankDebits.swift:24\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory\u002BBankDebits.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0dc1593dbf0024e2a9e5aea939fd2a192821e38639da90c56b721098abb46fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:251-263 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:272-284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafbe7c197597576281cec36b30ea39ad97aac9ed5e0c5aa2c4f293c828136c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1675-1687 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1761-1773 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1675\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8cd2929e586f96faf1dce916fdc0c6c6887c861bb68631814e9da1004e068b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2646-2658 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2681-2694 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2646\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":2646}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecddd7afe0f7cf8adbcb45dd1a987eb53df89bfe432d822c081dfa04c772a4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:139-150 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:224-235 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:564-575 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:648-659 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:139\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d218360846bc168acc63bc0139c690a0ba179c19c2819af0135e99624ccac016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): StripeConnect/StripeConnect/Source/Components/AccountOnboardingController.swift:112-122 | StripeConnect/StripeConnect/Source/Components/CheckScanningController.swift:83-93 | StripeConnect/StripeConnect/Source/Internal/NotificationBanner/NotificationBannerTaskController.swift:61-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeConnect/StripeConnect/Source/Components/AccountOnboardingController.swift:112\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Components/AccountOnboardingController.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fa6ed95a36069cec2a2ccce66e4b9570b856a406ab62a115c079cce065322e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift:94-105 | StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift:297-307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060completion\u0060 to \u0060STPTokenCompletionBlock?\u0060 in one and \u0060STPTokenCompletionBlock? = nil\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70a7e8573e91d58c57d2f4eb5ca03647eff691b0310ef57d2a5a84594d5b770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionTableView.swift:162-173 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionTableView.swift:177-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionTableView.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"731b26efe7c397767359395a6912f7ba7995b30a6c170054f205861a9da4ae0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/VerificationSheetController.swift:429-440 | StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/VerificationSheetController.swift:593-604 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/VerificationSheetController.swift:429\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/VerificationSheetController.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c148ec30e63b81a18020ae1aadd6707ab056f6239731077de65ba8cfcfd2bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Helpers/STPCardScanner.swift:399-410 | StripePaymentSheet/StripePaymentSheet/Source/Helpers/STPCardScanner.swift:411-422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Helpers/STPCardScanner.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"19169bb0f74a0e6c057f25d1a4f79dbe7ee0c5b5aeb06869e00c8d8c268d9b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm\u002BLink.swift:81-92 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm\u002BLink.swift:107-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm\u002BLink.swift:81\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm\u002BLink.swift:119\u0060 calls \u0060complete\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm\u002BLink.swift:93\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm\u002BLink.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b5d922678420a6844a5d66efe2ed2eec7ccc243981339c93e12953acfbf1e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetails.swift:53-64 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddress.swift:62-73 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetails.swift:53\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetails.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b226090516a09e33843441f5ab1892e2385324961b298133e2b0a4a7ead8cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionAlipayHandleRedirect.swift:67-78 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionRedirectToURL.swift:84-95 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionAlipayHandleRedirect.swift:66\u0060 calls \u0060URL\u0060 and \u0060StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionRedirectToURL.swift:83\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionAlipayHandleRedirect.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7ff9bc454c4c3679a876477b9afbff6eea286d521b3f6d17922f49f8bcf1d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Example/AppClipExample/Shared/ContentView.swift:41-52 | Testers/IntegrationTester/IntegrationTester/Source/HelperViews/HelperViews.swift:39-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/AppClipExample/Shared/ContentView.swift:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Testers/IntegrationTester/IntegrationTester/Source/HelperViews/HelperViews.swift:52\u0060 calls \u0060Text\u0060 and \u0060Example/AppClipExample/Shared/ContentView.swift:53\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AppClipExample/Shared/ContentView.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"263369773f216a500009059e054cb15fa8f90893cb4c27a9c3abe724b879ee5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:177-187 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:262-272 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:601-611 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:685-695 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:177\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c27d4e5492613b5e36c8ec9a1bfacf24d84696b75ee729ea47930a19d35e3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift:289-299 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:536-546 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:658-668 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift:289\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62c7180ddaaf4367696a928bd041e9c9a60ed99d2e591d86cd55bdc45c0d116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift:36-46 | Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithShippingInfoView.swift:61-71 | Testers/IntegrationTester/IntegrationTester/Source/Views/SEPADebitView.swift:43-53 \u2014 before extracting anything, compare \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift\u0060 and \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithShippingInfoView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd7b037db47e7a0b7826f8cc68cc949cffafda16fb75ab02fd18269f91a79ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:614-624 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:635-645 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:614\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c79caf0a33b827fe5f02f2ac1f9248074421faa8c30edcdf2aea03f64db4d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift:652-662 | StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift:905-915 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5ba5a66b242be2d586dee53c74215d58aeac3d165332a69079a235a3c35d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:832-842 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Shipping Address Element/ShippingAddressElement\u002BAddressViewController.swift:20-29 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:832\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"c375d3661299777dda3d5e52e3614117a172881281b48883e85dc875dbdb4eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Common/FinancialConnectionsNavigationController.swift:162-172 | StripeFinancialConnections/StripeFinancialConnections/Source/Common/FinancialConnectionsNavigationController.swift:179-190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Common/FinancialConnectionsNavigationController.swift:162\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Common/FinancialConnectionsNavigationController.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"109379c2cb67d122efedd63a2e613f9cf16b4c6d0dc161188f7c7c740014e4a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMESinglePartnerView.swift:109-119 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/AfterpayPriceBreakdownView.swift:135-145 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMESinglePartnerView.swift:109\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMESinglePartnerView.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"291729206b389c6b1f1f3e839ae8cd9d026cae600fa9e344ae007cb3417a9c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/PaneLayoutView/PaneLayoutView\u002BExtensions.swift:252-262 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/PaneLayoutView/PaneLayoutView\u002BExtensions.swift:306-316 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/PaneLayoutView/PaneLayoutView\u002BExtensions.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b683f37c3df8281ca7f3e7fad7e6272d0e73825c56f419bdf37d799953172b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Components/Toast/LinkToast.swift:75-85 | StripeUICore/StripeUICore/Source/Categories/UIView\u002BStripeUICore.swift:17-26 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Components/Toast/LinkToast.swift:75\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Components/Toast/LinkToast.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5928ce16d4a5af85159b4abd1fff3012c417fd4f3b6e2413c5c727ccb5d734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:96-106 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/New Payment Method Screen/AddPaymentMethodViewController.swift:131-141 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:96\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb136038c0ba87ebd3594d6dd561298d1350ed5122675005caf3ef72a0d6ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButton.swift:90-100 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButton.swift:356-364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButton.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5749edf894d1abee5b87386fbc18a122a6bb3da19445933e1767dd958ba27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentConfirmParams.swift:222-232 | StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntentConfirmParams.swift:137-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentConfirmParams.swift:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentConfirmParams.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"48605d26d23467304b66ec1904f96db1e0999f0d23c60ac175683ef4b1d597e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripePayments/StripePayments/Source/Internal/API Bindings/APIRequest.swift:24-34 | StripePayments/StripePayments/Source/Internal/API Bindings/APIRequest.swift:114-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Internal/API Bindings/APIRequest.swift:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Internal/API Bindings/APIRequest.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9b8dca9daf94d6b303e06de0c4dfffaf2d0a46a2d2d9f1073a69f2a76002d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:85-94 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:125-134 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:168-177 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:209-218 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:85\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:179\u0060 calls \u0060validatePaymentMethod\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:97\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb8830df3dda1b6980faf9271eedc69e593880e050265a896cafba67ca37f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:342-351 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:721-730 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:492-500 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:342\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e4b8ac181eb148e67abf9b44662286d775797ca1fe6f358d877b1652b56b71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201310 lines \u00D7 4): StripeIssuing/StripeIssuing/Source/STPEphemeralKey.swift:37-45 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethod.swift:262-270 | StripePayments/StripePayments/Source/API Bindings/Models/STPFile.swift:106-115 | StripePayments/StripePayments/Source/API Bindings/Models/STPToken.swift:104-108 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeIssuing/StripeIssuing/Source/STPEphemeralKey.swift:37\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIssuing/StripeIssuing/Source/STPEphemeralKey.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8c4f75871b89fac2a340be724a8ca35d3330556fd544a4be430c806a6415d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift:179-188 | StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPBankAccount.swift:159-167 | StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPCard.swift:250-258 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb0be1e465833edce054e66765e5987676c791322fe2490dbb301a6ed66525f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:415-428 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:836-850 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:941-950 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:415\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb13775040d806c269609ab5c9c700a5a8427ece2fad93d94e69c1ebe931bffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift:19-28 | Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithShippingInfoView.swift:22-31 | Testers/IntegrationTester/IntegrationTester/Source/Views/SEPADebitView.swift:19-28 \u2014 before extracting anything, compare \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift\u0060 and \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithShippingInfoView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift:19\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Testers/IntegrationTester/IntegrationTester/Source/Views/PaymentMethodWithContactInfoView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4983b435e7ab304bb1a674ddf2cdb19d2d4330ef5138703cf9a260fe8f561976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:108-117 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/STPApplePayContext\u002BPaymentSheet.swift:100-109 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f58cd29e897868eaf73bc113b09c35dc8b309d313d7fb16700e7af5df7839f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/AddressViewController/AddressViewController.swift:765-774 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift:323-332 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/AddressViewController/AddressViewController.swift:765\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/AddressViewController/AddressViewController.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6a0403953e7363e11f6d8f3cb9d61a7fc48376cec86e68924be648682fc9e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:644-653 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:557-566 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec51069bbbe1d25079f833dd74ad05a32fe4321ad822ce8ffd5315c3c31ffc3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentFooterView.swift:73-83 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/PaneLayoutView/PaneLayoutView\u002BExtensions.swift:251-260 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentFooterView.swift:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentFooterView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c1f78996e311dbcdfe72a445ed7d794945d741eeb6296796a4416f46cc661f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkLogin/LinkLoginViewController.swift:133-142 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkSignupPane/NetworkingLinkSignupViewController.swift:177-186 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkLogin/LinkLoginViewController.swift:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkLogin/LinkLoginViewController.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb73cd04da47452a98db102f5cfc941a4b71207ad163c7ecc78e5e685063c111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/BottomSheetViewController.swift:421-430 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/BottomSheetViewController.swift:434-443 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/BottomSheetViewController.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"912b64a9da9252fc803d679527bf7c00e3b9fc838ebe39f3a70fe41a5a8e7d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift:318-327 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift:341-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift:318\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"17903783df84e981e91d05c688a9fb1b81c4166695c38edd218304fa87be67b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:381-390 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:612-621 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:381\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47c0026270e0487a90e6a04973fac48b5a77924d44f6167348b9f322d20e7d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift:429-437 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:1155-1164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift:429\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060paymentMethod\u0060 to \u0060StripePayments.STPPaymentMethod\u0060 in one and \u0060STPPaymentMethod\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e947f7a670e4702392a98792de4a8f09bc61b61f2ee8ecbfac77710541e30ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMEPromotionTextView.swift:51-59 | StripeUICore/StripeUICore/Source/Views/LinkOpeningTextView.swift:47-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeUICore/StripeUICore/Source/Views/LinkOpeningTextView.swift:47\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMEPromotionTextView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4c0f7660d91b9e4ca3bb348ba082aa73e2f583ab46cbe95a9b4dd704f9990d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:278-287 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:294-303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift:278\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e51e96305a9e37bf6ba45ebdcfb1423becf6d358366d5a4de6192343392f047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionBoletoDisplayDetails.swift:47-55 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionMultibancoDisplayDetails.swift:50-59 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionBoletoDisplayDetails.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ee5a141db1771d4d2ebb8a4b17ac34c6ae48e712140c22ce22ef27726b5598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:453-462 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:744-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:453\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060intentID\u0060 to \u0060paymentIntentID\u0060 in one and \u0060setupIntentID\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3de143e0ec7e96d0407416a7ee7b734ee0f322b7de39d02200ebefb0e6f6064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:585-594 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:776-785 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:585\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:583\u0060 calls \u0060isNextActionSuccessState\u0060 and \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:774\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d3d844d3b878193cb7f27aebec5b690a3cbef472a5bee4bbd28c31087bb202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift:232-238 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/CVCReconfirmationViewController.swift:110-116 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:328-334 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:252-260 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"339a7b20945aa85e19c28479821878c5d80afe268759cd37845daeadb7299b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:24-32 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:64-72 | StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:91-99 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb3c656859e720db0fd48ba7c7cc02e7c2428324070155fe1a269e012dd0451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift:42-50 | StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift:52-60 | StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift:75-83 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"756f3b86c79fc50b997ccb7a1d677d1a2744cad301e5ca2a678e2cc0d665b86f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Analytics/STPAnalyticsClient\u002BAddress.swift:97-105 | StripePaymentSheet/StripePaymentSheet/Source/Analytics/STPAnalyticsClient\u002BAddress.swift:113-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Analytics/STPAnalyticsClient\u002BAddress.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f8f29a5d66d8eda27182179b2fa0688d809926c207f3ac90302f4563c8340e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:541-549 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:841-849 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:541\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:550\u0060 calls \u0060reloadData\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:850\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a96698d87f365427cdbfd94bc535c99cae437d479cf48749ac4c47c3c3cf55f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:831-839 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:857-865 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:831\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d60ac80a46b69e1bb602668ddcd54eeb74780e88965117c2ef1cba10906781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePayments/StripePayments/Source/Internal/STPPaymentHandlerActionParams.swift:129-137 | StripePayments/StripePayments/Source/Internal/STPPaymentHandlerActionParams.swift:221-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Internal/STPPaymentHandlerActionParams.swift:129\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Internal/STPPaymentHandlerActionParams.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f651a4da2a6f77a6924857ea80d4f55a4f6fe0fb8e6428fcc0df568038d67a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1418-1426 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1429-1437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"259134f62685c28beb73521f852f2671d18f66d3d5c467fd699471c91152f8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2635-2643 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2670-2678 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2635\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"2281982847e8a27deff7d7f052af8b821df8fb3964911416bc921c1be8fff353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/AppClipExample/Shared/BackendModel.swift:43-51 | Testers/IntegrationTester/IntegrationTester/Source/Models/BackendModel.swift:54-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/AppClipExample/Shared/BackendModel.swift:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AppClipExample/Shared/BackendModel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd4dfe96b0fca720394389e991f041f2dbb318adef011098243cea3d07e7bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift:314-323 | StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift:360-367 | StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift:405-412 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift:314\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"38060de6fa35165ff6df58b65d463c54d34829f39410a1759d0ede5bac5b10cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift:433-440 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:847-854 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:1160-1167 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift:433\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6c8bab7f14c127fa16ba63bdea68f6e29067ad7ddafff1a7d2a51fc172caf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddressParams.swift:78-83 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodAddress.swift:70-75 | StripePayments/StripePayments/Source/API Bindings/Models/STPAddress.swift:254-261 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddressParams.swift:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddressParams.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d23f351535a32e442ae39424c4278704a84b19797fdc5944ad9e8dc074eebac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddress.swift:50-57 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddressParams.swift:57-64 | StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountAddress.swift:53-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddress.swift:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddress.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0b353e0e37743048d95f45a6cfe8ea17a6c0701598cabab10abd153ac20fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutApplePayContext.swift:444-451 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/STPApplePayContext\u002BPaymentSheet.swift:229-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutApplePayContext.swift:444\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutApplePayContext.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8855646d0d9ef9f31d04a04ddc688ea85832b216c327eb7f24694dfc7bcf20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripeApplePay/StripeApplePay/Source/PaymentsCore/API/PaymentIntent\u002BAPI.swift:35-42 | StripeApplePay/StripeApplePay/Source/PaymentsCore/API/SetupIntent\u002BAPI.swift:34-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeApplePay/StripeApplePay/Source/PaymentsCore/API/PaymentIntent\u002BAPI.swift:35\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060completion\u0060 to \u0060@escaping PaymentIntentCompletionBlock\u0060 in one and \u0060@escaping SetupIntentCompletionBlock\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/PaymentIntent\u002BAPI.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3768510c28eaaea0f19249f34528654351d4a7efafc9e182dcefc0c3f31030c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/OcrPriorsGen.swift:95-102 | StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/OcrPriorsGen.swift:109-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/OcrPriorsGen.swift:95\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/OcrPriorsGen.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a36fe716c4e824a72548d182a013391bf6a35dc2339fb95dd959e0a0b8eb956"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebViewController.swift:72-79 | StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebViewController.swift:151-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebViewController.swift:72\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebViewController.swift:71\u0060 calls \u0060escaping\u0060 and \u0060StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebViewController.swift:150\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebViewController.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa60f40509fedb00a2e98e36a2340cd41c9a4b17093bb4e1d634e87ab035515a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift:339-346 | StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift:383-390 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift:339\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf5eaad3a15fee79fa5e9358811bedc77d61f78674f23ce53257f33909379be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift:423-430 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:35-42 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift:423\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"470c56fba3b6142119447a6b3f0fc86d692a6f9b540a2298d610908aa689164c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift:185-192 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift:199-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/InstantBankPaymentsController.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84e3fec883038feca2dae4aaa7565b05a28e36ce92a41dd53804ec22da0dc9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardExpiryInputTextFieldFormatter.swift:15-22 | StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardNumberInputTextFieldFormatter.swift:19-25 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardExpiryInputTextFieldFormatter.swift:15\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardNumberInputTextFieldFormatter.swift:15\u0060 calls \u0060init\u0060 and \u0060StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardExpiryInputTextFieldFormatter.swift:13\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardExpiryInputTextFieldFormatter.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c644201fd8ce58de7a98e17574b9a4abd0563bef107f14e0286431824f6fe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPCardFormView.swift:618-625 | StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift:2415-2422 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPCardFormView.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f90a836d2115ffa126dc88d886b94df2ded37dd2b6adf4e0843ef73b12bd003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:130-137 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:215-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:130\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf5e86f2d6ad9b01720562ff5c512a577fac41309837e0adfe2fe42c3b3c58a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:555-562 | StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:639-646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:555\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9da98414529a3d65e0760bb5c7529ead5c92e02153624bf8d42bb43258736b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1650-1659 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1747-1754 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1650\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f9faa7a9fd17f43df5cca31f4572328c9737b6cd6c0b4c4262a2e687e1c244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/CardSection/CardSectionElement.swift:147-153 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BCard.swift:66-72 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BLink.swift:55-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/CardSection/CardSectionElement.swift:147\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/CardSection/CardSectionElement.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd75112d0262c63c60ef7f13e354c5f805723e1c6617be29f75d95d6497aebb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripeCardScan/StripeCardScan/Source/CardVerify/CardVerifyStateMachine.swift:71-77 | StripeCardScan/StripeCardScan/Source/CardVerify/CardVerifyStateMachine.swift:219-225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/CardVerifyStateMachine.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b24e96bb1f0a7877dfcf195d194cccc47320dd3614e3794ec36bf7a6935393b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift:64-70 | StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift:78-84 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Connections Bindings/HostedAuthUrlBuilder.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a4c5e73e0acea2de5ea5e6d5d01cf252e94089e377d89222d48cb26968685c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Address.swift:45-56 | StripeUICore/StripeUICore/Source/Elements/Factories/Address/AddressSectionElement.swift:61-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Address.swift:45\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Address.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"031568f81aa614f02b40d9133dad06525a64435400d9efa452d47ad65af4c36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionOXXODisplayDetails.swift:54-60 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionVerifyWithMicrodeposits.swift:72-78 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionOXXODisplayDetails.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07ffc65985f7a0572924f0c4efe6ea8caffb3c1d36bf31fe07fba48e71d3362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1418-1423 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1429-1434 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1465-1470 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1494-1499 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1418\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1427\u0060 calls \u0060presentPollingVCForAction\u0060 and \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:1464\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c198060f38ff43fece832fe94d4d3b9db1cad9245113e5a041a23be4c59ef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2590-2595 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2610-2615 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2704-2709 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d4ecdc14422c287c35a1a96e7b1d0a570642e8f08117cebc8b6db667467d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripeApplePay/StripeApplePay/Source/Extensions/BillingDetails\u002BApplePay.swift:45-50 | StripePayments/StripePayments/Source/API Bindings/Models/STPAddress.swift:182-187 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/Extensions/BillingDetails\u002BApplePay.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8292c2a94aecb555fd9a3707164b50f0b3982b678c1fb13ad364c8fe5ffb6370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripeConnect/StripeConnect/Source/Helpers/Appearance\u002BEncoding.swift:68-73 | StripeConnect/StripeConnect/Source/Helpers/Appearance\u002BEncoding.swift:83-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Helpers/Appearance\u002BEncoding.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b56361f62e0f488d1215562132e66431087bc2d24745c3e0a08d1dc0e09e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift:1087-1097 | StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift:1138-1143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift:1087\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"d989e04b3ab69f9495a025aa66502e219e53b250c750dab0c3bb96177ee277fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripeCore/StripeCore/Source/Analytics/AnalyticsClientV2.swift:128-133 | StripeCore/StripeCore/Source/Analytics/STPAnalyticsClient.swift:211-216 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Analytics/AnalyticsClientV2.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a497abd37d97023dc30e9c16316184db44ae1d7a528af2559a36ef8254544d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetDeferredValidator.swift:60-65 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetDeferredValidator.swift:77-82 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetDeferredValidator.swift:60\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetDeferredValidator.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"505933d8f4abf031e71966b3600001ba5db182e60941a3169e3210b821f280d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BSEPADebit.swift:22-27 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BUSBankAccount.swift:25-31 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BSEPADebit.swift:22\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/SavedPaymentMethodFormFactory/SavedPaymentMethodFormFactory\u002BSEPADebit.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfcc05568ef947dd66e0c7db06f14abf8911b3fba0f9e4646c20995df05b39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountCompanyParams.swift:107-112 | StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountIndividualParams.swift:124-129 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountCompanyParams.swift:107\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountCompanyParams.swift:104\u0060 calls \u0060NSNumber\u0060 and \u0060StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountIndividualParams.swift:123\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountCompanyParams.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0406f2a050c68d1273536eb98850b9ba2c08842efcb74b8b318e978761c7d4cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetails.swift:44-49 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsParams.swift:58-63 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetails.swift:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetails.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a4a62b74643c0a55fb678961ea725f079618f9ce356927ce8c7cf8169779d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddressParams.swift:84-89 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodAddress.swift:76-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddressParams.swift:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddressParams.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1768a050c53536f5c7615849fd3c5ec54700bdd55346d3af71d5bcf163f81d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPBankAccount.swift:149-154 | StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPBankAccountParams.swift:100-105 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPBankAccount.swift:149\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPBankAccount.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee976262f89534d250ac54fc72c7248fc48316dedefeb879e68a88c7b41172b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:86-90 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:102-106 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:126-130 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:142-146 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:169-173 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:186-190 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:210-214 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BDeferredAPI.swift:227-231 \u2014 there are 8 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BConfirmationTokens.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8880925f4a3d4cccc8003a8588ee900fdebb4157c6c19fc3d1c68e7fdb150c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift:180-184 | StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/IDDetector/IDDetectorOutput.swift:218-222 \u2014 before extracting anything, compare \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift\u0060 and \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/IDDetector/IDDetectorOutput.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift:180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/Detectors/FaceDetector/FaceDetectorOutput.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee2ee619a762d4aba4930366cda8dcdb121161b32f7ed64ce484bce541e39e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Address/AddressAutocompleteModels.swift:185-189 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentShippingDetailsAddress.swift:89-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Address/AddressAutocompleteModels.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ac5e42ce9212e4c8b8d90606658797d4314ff41fd9c214e9c26ce31b099595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift:450-454 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift:531-535 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d7453b5099696d4cb27d1534b876b2aa4ae5b15ad84b399ab494cfba661257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/UpdatePaymentMethodViewController.swift:248-252 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/UpdatePaymentMethodViewController.swift:264-268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/UpdatePaymentMethodViewController.swift:248\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/UpdatePaymentMethodViewController.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"215c558ec298d6894c7becc50edbe4276f8e7a7f72dbf5c5a3716bbe3056bfac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripeUICore/StripeUICore/Source/Helpers/InputFormColors.swift:18-22 | StripeUICore/StripeUICore/Source/Helpers/InputFormColors.swift:40-44 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Helpers/InputFormColors.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac9dfd5b21b0da75c15feda1392b3a9736353a86f0559625299544284ec64fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): StripeApplePay/StripeApplePay/Source/PaymentsCore/API/PaymentIntent\u002BAPI.swift:52-82 | StripeApplePay/StripeApplePay/Source/PaymentsCore/API/SetupIntent\u002BAPI.swift:51-81 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060completion\u0060 to \u0060@escaping PaymentIntentCompletionBlock\u0060 in one and \u0060@escaping SetupIntentCompletionBlock\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/PaymentIntent\u002BAPI.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf27ed5f10ef751ccdc7a93ee11aa649a17476baf46839c09aec499c2830af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (88 lines \u00D7 2): Example/AppClipExample/Shared/PaymentButton.swift:20-107 | Testers/IntegrationTester/IntegrationTester/Source/HelperViews/PaymentButton.swift:20-107 \u2014 before extracting anything, compare \u0060Example/AppClipExample/Shared/PaymentButton.swift\u0060 and \u0060Testers/IntegrationTester/IntegrationTester/Source/HelperViews/PaymentButton.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/AppClipExample/Shared/PaymentButton.swift:20\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AppClipExample/Shared/PaymentButton.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b896491c43d88b374ef509a8b6187cb51f4fdcc1a8d1cd46426ccec02d412d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/DetectedAllBoxes.swift:12-17 | StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/DetectedAllOcrBoxes.swift:13-22 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/DetectedAllBoxes.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3dbe9130245c76de546a81e9909f5e8a24fb0793fa28439ea0747c54434e88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): StripeCardScan/StripeCardScan/Source/CardVerify/Helpers/String\u002BLocalized.swift:12-45 | StripeIdentity/StripeIdentity/Source/Helpers/String\u002BLocalized.swift:15-579 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/Helpers/String\u002BLocalized.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"912f7b01d602a464aaa68b2e7e03a2a81e9574775c9a8e66dcbb6758e1c6490e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): StripeCardScan/StripeCardScan/Source/CardVerify/Helpers/String\u002BLocalized.swift:12-45 | StripeIdentity/StripeIdentity/Source/Helpers/String\u002BLocalized.swift:15-579 | StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/SelfieCaptureViewController\u002BStrings.swift:12-31 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/Helpers/String\u002BLocalized.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"276bb55ac39532a854d042e596ade61195fd84dcd48567fcbf8ef461dab61b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Analytics/Experiments/ConnectionsFCLiteVsNative.swift:17-26 | StripePaymentSheet/StripePaymentSheet/Source/Analytics/Experiments/ConnectionsFCLiteVsNativeAA.swift:17-26 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Analytics/Experiments/ConnectionsFCLiteVsNative.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18280b8899d35a28722e5e9bc48caff6095d95f2404d1f704ed8bb87ef44644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPConfirmLinkOptions.swift:25-35 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPConfirmUSBankAccountOptions.swift:18-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPConfirmLinkOptions.swift:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPConfirmLinkOptions.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8258faebedfbcf4809bf92c56dc7210d9a9e77fc60701f7732467ff16e2a7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAffirmParams.swift:14-22 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAfterpayClearpayParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCashAppParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodKlarnaParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodMultibancoParams.swift:14-22 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodRevolutPayParams.swift:12-20 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAffirmParams.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58abedec9d1bfec28d4ee9aa08838b097943a5ef75b9d585b96215abef30c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 23): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAlipayParams.swift:18-26 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAlmaParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAmazonPayParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBLIKParams.swift:18-26 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBillieParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCryptoParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodGoPayParams.swift:16-22 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodKakaoPayParams.swift:15-21 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodKrCardParams.swift:15-21 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodMobilePayParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodOXXOParams.swift:16-24 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayPalParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayPayParams.swift:14-22 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPaycoParams.swift:15-21 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPrzelewy24Params.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSatispayParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodScalapayParams.swift:16-22 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSequraParams.swift:15-21 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSunbitParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSwishParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodVippsParams.swift:13-21 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodWeChatPayParams.swift:15-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodWeroParams.swift:15-23 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 23 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAlipayParams.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"07838c3058a1e97f61d716f24fd8c11903ded0fa82c7efb6eb26ecf4b68fec32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBancontactParams.swift:15-21 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodEPSParams.swift:15-21 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodGrabPayParams.swift:16-22 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodTwintParams.swift:14-20 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBancontactParams.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bff012dd7523991df9e778d2e8b5e282f567a0cbe32605bfdf544a43837e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Payment Element/PaymentElement.swift:30-36 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Shipping Address Element/ShippingAddressElement.swift:75-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Payment Element/PaymentElement.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c9fa2e5ec7fa99ce5a12be18f4d8b57e76721e0943c9443a6f7bc8e0236c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripeCameraCore/StripeCameraCore/Source/Coordinators/Torch.swift:22-36 | StripeCardScan/StripeCardScan/Source/CardScan/UI/Torch.swift:14-26 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCameraCore/StripeCameraCore/Source/Coordinators/Torch.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d00abcb3bbe1ebfb34b59cca4a551734263c2e26529f475d988646b5be411a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardAddViewController.swift:187-193 | StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardViewController.swift:302-308 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardAddViewController.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a60f1332699d72b948c8df8fb339cea7780bdb6f5ee4c2c481d60b95f957259"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift:427-435 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift:721-729 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e33ad37e4c93a66d8e2da810024f03ab6d6729fcb2ce75536916134d69ceb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/InvalidWalletOwnershipChallengeError.swift:45-53 | StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/InvalidWalletOwnershipSignatureError.swift:45-53 | StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/UnsupportedNetworkError.swift:45-53 | StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/WalletNotFoundError.swift:45-53 | StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/WalletOwnershipChallengeExpiredError.swift:45-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/InvalidWalletOwnershipChallengeError.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9cd7ff5331d396ffc796e0604f23202f77bd0dcaa18a25dc013fab2424c4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:655-662 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:568-575 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"746cc02cd6ad382cc2696f6d640be7def51a0730a045f589d10b9b952d67c2be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:806-812 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:659-665 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift:668\u0060 calls \u0060set\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift:816\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"6406707a9fff47ecde7a9aadf6b5e83f8ca1e19804feeb8d24d805fe69e16074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/API Bindings/RegisterWalletRequest.swift:26-30 | StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/API Bindings/WalletOwnershipChallengeRequest.swift:27-31 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/API Bindings/RegisterWalletRequest.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5639f65726e09b3048727585fceaf37139bab899a45b6847f863d35dfe8c577"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift:328-337 | StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/Controllers/FCLiteContainerViewController.swift:309-318 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e7f54b9483a80ce9b869841dded9ade484adc8563acf8f6eaa975033f2ac02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/Helpers/STPVisionSupport.swift:13-24 | StripePaymentSheet/StripePaymentSheet/Source/Internal/Helpers/STPVisionSupport.swift:13-24 \u2014 before extracting anything, compare \u0060StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/Helpers/STPVisionSupport.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/Internal/Helpers/STPVisionSupport.swift\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/Helpers/STPVisionSupport.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0130ad4f30ae7c3122038131fc8402b647b20ccc8510cb37050655804c40ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentDataSource.swift:103-113 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkLogin/LinkLoginDataSource.swift:135-145 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentDataSource.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b9fe3fcbbc5c886d299fbbda264b4c71b0117913440d814c647b72c953c99d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerViewController.swift:388-396 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/AttachLinkedPaymentAccount/AttachLinkedPaymentAccountViewController.swift:164-172 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerViewController.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"501f08467755f9783e0ab8e9e5a5f744411c0830696da809ea61be4af21fa0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkLogin/LinkLoginViewController.swift:147-154 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkSignupPane/NetworkingLinkSignupViewController.swift:194-202 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkVerification/NetworkingLinkVerificationViewController.swift:71-79 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingSaveToLinkVerification/NetworkingSaveToLinkVerificationViewController.swift:88-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkLogin/LinkLoginViewController.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a559ef0899de336d7e804e77679d0f31755a02956a6ba5aad5a112538cbb94a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift:543-550 | StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift:296-303 \u2014 before extracting anything, compare \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift\u0060 and \u0060StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"6116dad630e3e403b9236cf7fa91faa77870bacc93a1a09a43e697ab36d0948a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift:557-564 | StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift:311-318 \u2014 before extracting anything, compare \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift\u0060 and \u0060StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6991bc3c1477559ed0b19ab4a55c56f9283c6e99321a2e8b622a923b4916d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift:447-456 | StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/SelfieCaptureViewController.swift:271-280 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bff0c3f9f268e2fd8b656d90a51f153c873be1018d7d83b0b69959cab653ef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Components/Consent/LinkFullConsent-EmailView.swift:47-53 | StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Components/Consent/LinkFullConsent-ScopesView.swift:125-131 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Components/Consent/LinkFullConsent-EmailView.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb59e5a408b828e238c65883b4d45bb8a144a1dae0c3f66393410c86f58bdf62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:139-146 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:172-179 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d3e8063c5b99db77536f7f5d868979fba7ec82d38e3b0d9116490f987ba872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:197-207 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:257-267 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ef966c9cbc8fd3f0f3b4546c573af401abb3152c17921bfe87a1de42166a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift:344-351 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift:496-503 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b984e0ed4dbf952831710926f197a35751c1e82a41c1a6aa28f564a44ebb5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:61-70 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:663-672 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c5c2ec03380d6eeae4507bc48d725bb5e02f36e4bbd9ff491530aed5c0eb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentMethodsView.swift:341-347 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/VerticalPaymentMethodListViewController.swift:224-230 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentMethodsView.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c05f9eb7eb9b1d9cf560aca085df69876d8a2dc77846174689b63a76ba46685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/New Payment Method Screen/WalletHeaderView.swift:253-262 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RightAccessoryButton.swift:148-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/New Payment Method Screen/WalletHeaderView.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccc6524bdeafc5c0fc5ec079da7ebecf4c78a50563faa0412d837916de6c802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/STPInputTextField.swift:189-200 | StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift:260-271 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/STPInputTextField.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e78da7cab3e4281600a8cd0c10c29c2aaaf2c12c60865f2f7fa4a4326cc932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/STPInputTextField.swift:245-253 | StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift:322-330 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/STPInputTextField.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2ccf8cde1c869b46ab0f15c7504ba54792eaa1d6badd3ca5d7310a78a36f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardCVCInputTextFieldFormatter.swift:30-36 | StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/STPNumericDigitInputTextFormatter.swift:43-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardCVCInputTextFieldFormatter.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2caaa896dca524740216a1af7322aba85a6986cd926a8c87bce1ba438ae7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPCardFormView.swift:599-605 | StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift:2396-2402 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPCardFormView.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f7a0b567592713791f7cfcde90da119468958264d020423a855a22e2844cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionBoletoDisplayDetails.swift:61-67 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionMultibancoDisplayDetails.swift:66-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionBoletoDisplayDetails.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"265d3f9af089a495333881718d3d6913df29f98bd490d582632cd0e9b297c72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionCashAppRedirectToApp.swift:37-44 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionPayNowDisplayQrCode.swift:35-42 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionPromptPayDisplayQrCode.swift:35-42 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionSwishHandleRedirect.swift:35-42 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionWeChatPayRedirectToApp.swift:36-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentActionCashAppRedirectToApp.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6930512ec2664f98a5f3fc0aa00a395e739c9283962181bc0a16ec0c7a3f3266"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAffirm.swift:28-36 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodMobilePay.swift:26-34 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodMultibanco.swift:28-36 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodVipps.swift:25-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAffirm.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eeb93fd9da29e83b9c55dcebe14620e0f160a976090cdbf8bc6a847d12a4197"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 19): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAfterpayClearpay.swift:28-35 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAlma.swift:28-36 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAmazonPay.swift:28-36 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBillie.swift:28-36 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBoleto.swift:48-55 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCashApp.swift:29-37 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCrypto.swift:28-36 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodKlarna.swift:29-37 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodNetBanking.swift:32-38 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayByBank.swift:28-36 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayPal.swift:28-34 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayPay.swift:27-33 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPrzelewy24.swift:28-34 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodRevolutPay.swift:26-34 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSEPADebit.swift:48-54 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSatispay.swift:28-36 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSunbit.swift:28-36 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodWeChatPay.swift:28-34 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodWero.swift:28-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 19 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAfterpayClearpay.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bab88bacb00b52ac8fd1d62126f219b306cbcbf48c347879a9ee97f02d930c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAlipay.swift:29-35 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBLIK.swift:30-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAlipay.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed61c81f63f832a98b369222dd7f435778edea4af57074526031d72e5c9dae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBacsDebit.swift:38-43 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBancontact.swift:28-33 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodEPS.swift:28-34 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodGrabPay.swift:27-32 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodLink.swift:29-34 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodTwint.swift:27-32 | StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPSourceCardDetails.swift:54-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBacsDebit.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b0d60d9d726d44e4b07c72de8c808a10adcb8c1fd6fb4dd02acc675cafee6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodGoPay.swift:27-32 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodKakaoPay.swift:26-31 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayco.swift:26-31 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodScalapay.swift:27-32 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSequra.swift:26-31 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodGoPay.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4c51c997156018d221e6778f2b9c1cac1fc1041ef5bc2af796a6d9fe5fbc8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodKrCard.swift:32-37 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodNaverPay.swift:32-37 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodKrCard.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd268c66c360fcb5d192f1cd8b08d5c4e2224346a25642af79edb740b86c8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodOXXO.swift:31-39 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSwish.swift:30-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodOXXO.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b3c30212b3708bda47ddb729703fa32222b974f16bc22ff0f1fbbd7b4d330f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): StripeUICore/StripeUICore/Source/Elements/PickerField/PickerFieldView.swift:231-240 | StripeUICore/StripeUICore/Source/Elements/Section/SectionContainerView.swift:188-197 | StripeUICore/StripeUICore/Source/Elements/TextField/FloatingPlaceholderTextFieldView.swift:197-206 | StripeUICore/StripeUICore/Source/Elements/TextField/TextFieldView.swift:340-349 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/PickerField/PickerFieldView.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c374fb8ab4f5fbddb70792173011d7283e0952ec8aea72dd97047c1f866bcf2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): StripeApplePay/StripeApplePay/Source/PaymentsCore/Analytics/STPAnalyticsClient\u002BPaymentsAPI.swift:13-22 | StripeApplePay/StripeApplePay/Source/PaymentsCore/Analytics/STPAnalyticsClient\u002BPaymentsAPI.swift:24-33 | StripeApplePay/StripeApplePay/Source/PaymentsCore/Analytics/STPAnalyticsClient\u002BPaymentsAPI.swift:35-46 | StripePayments/StripePayments/Source/Internal/Analytics/STPAnalyticsClient\u002BPayments.swift:27-38 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/Analytics/STPAnalyticsClient\u002BPaymentsAPI.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d08bf0109a1978fd7859c6676fb286466ba8a330ee819ecee4e71581e96d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntentParams.swift:96-103 | StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntentConfirmParams.swift:199-206 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntentParams.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b15ec546000be94974095699cefca742fcc7df3f33b9f93e8221c9d9df24d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/Elements/IdentityTextButtonElement.swift:49-53 | StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/CountryNotListedViewController.swift:100-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/Elements/IdentityTextButtonElement.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"04632f4a93d13e212335e653ef94c24c14e4900e271ba0bae181a4b6201d8819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerViewController.swift:52-57 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/AttachLinkedPaymentAccount/AttachLinkedPaymentAccountViewController.swift:36-41 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerViewController.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a18225c492b54ea40ca9fdbe126a3137ca72e2f7be97eae4a6c6c3f618af43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerViewController.swift:69-75 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/AttachLinkedPaymentAccount/AttachLinkedPaymentAccountViewController.swift:53-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerViewController.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ef5d6984c183a5dd5a9c77d81d91f9a6a045dd6fec7a282a9e14d7a31363b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentBodyView.swift:140-147 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkSignupPane/LinkSignupFormView.swift:215-222 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkSignupPane/NetworkingLinkSignupBodyView.swift:141-148 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentBodyView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"224c93b28b2817691ba5d8d1fc32d6c6e54c2436607cc38c80edad5d392d11e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionPickerViewController.swift:296-301 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkLoginWarmup/NetworkingLinkLoginWarmupBodyView.swift:28-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionPickerViewController.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c881efdac2175478da28d9d2c608a83b088eb76ca50490899135e0034f34aefd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionSearchBar.swift:183-188 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerNewAccountRowView.swift:55-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionSearchBar.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"62468b9de1dfc3fcc69b514ae961415c518edae8b5452ef482ea07d654489cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerBodyView.swift:224-232 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkLoginWarmup/NetworkingLinkLoginWarmupBodyView.swift:111-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkAccountPicker/LinkAccountPickerBodyView.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd70724b64e5c83f5fab1b5af3712b9f239bb3f122a10b9da921581060331e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkLogin/LinkLoginDataSource.swift:75-84 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkSignupPane/NetworkingLinkSignupDataSource.swift:73-82 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkLogin/LinkLoginDataSource.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec047bab773adf440913d1c9a05b2916bc32b18f1dbd47e517b19f95951a4fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkVerification/NetworkingLinkVerificationViewController.swift:204-215 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingSaveToLinkVerification/NetworkingSaveToLinkVerificationViewController.swift:206-217 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkVerification/NetworkingLinkVerificationViewController.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b491c0f443ef767a0d5dcbccfcd71d6936aff971ffdc42bd99ca701af56ca38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeViewController.swift:18-27 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/LegalDetailsNoticeViewController.swift:18-27 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeViewController.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9793092df1568937ef01ab853073f56461407fdc5d6207844b1cdb9edbde24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift:625-635 | StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift:388-398 \u2014 before extracting anything, compare \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift\u0060 and \u0060StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFloatingPlaceholderTextField.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fb7f490442080cf624bff026d2ebb8b4810cef6aefee8079a6b4abd2d0fbec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift:651-664 | StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/SelfieCaptureViewController.swift:338-351 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"2158bd0c83a5a69958045322590bfef5dee3864cf0da0fdef4d022010721a3de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift:666-679 | StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/SelfieCaptureViewController.swift:353-366 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34a18c8860f4530705ad5b6ae2aae146159444d76ba3b3381eaca219fd1fb78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripeIdentity/StripeIdentity/Source/NativeComponents/Views/BottomAlignedLabel.swift:85-92 | StripeIdentity/StripeIdentity/Source/NativeComponents/Views/IdentityHTMLView/IconLabelHTMLView.swift:92-99 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/Views/BottomAlignedLabel.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaa7c42682821735c442c78d0de8f4eaaeb666c8dc3fa8394f437167d8e0521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Intent.swift:73-80 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift:53-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Intent.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbd5ab9079f25111a01566ac259df5bb66a1c520ac55b9e4a3748f0ca7fc6c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift:245-255 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFlowController\u002BAsyncPublicAPIs.swift:104-114 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac2d56402995e3476a9269ff313e4d1953b3948cb4ff15b8698766bb5076b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/CVCReconfirmationVerticalViewController.swift:23-29 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/CVCReconfirmationViewController.swift:56-62 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/CVCReconfirmationVerticalViewController.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00602091e599a05d8766997203a868b7427eef36a3569bc0777d04048bee884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardCVCInputTextField.swift:50-58 | StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardExpiryInputTextField.swift:29-37 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardCVCInputTextField.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66f32f30dbfa05648698d3146c77cbabe3c86141685ec0e6a06c6bed416256d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodNetBanking.swift:21-29 | StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAutomaticPaymentMethods.swift:17-25 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodNetBanking.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9953833b8a65e9d9807eedc742797da85d1ebbbf9c16580f3f1da4637a8acc3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): StripePayments/StripePayments/Source/API Bindings/Models/Sources/STPSource.swift:77-84 | StripePayments/StripePayments/Source/API Bindings/Models/Sources/STPSource.swift:109-116 | StripePayments/StripePayments/Source/API Bindings/Models/Sources/STPSource.swift:138-145 | StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPBankAccount.swift:103-109 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Sources/STPSource.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bb8c1f10bbed4e7b90a0869c1fd5cdc9241ba9c3af763c4e1bd143ce63845f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 35): StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAffirm.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAfterpayClearpay.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAlipay.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAlma.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAmazonPay.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBLIK.swift:19-26 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBancontact.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodBillie.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCardPresent.swift:17-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCashApp.swift:19-26 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCrypto.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodEPS.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodGoPay.swift:19-24 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodGrabPay.swift:17-24 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodKakaoPay.swift:18-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodKlarna.swift:19-26 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodLink.swift:19-26 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodMobilePay.swift:16-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodMultibanco.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodOXXO.swift:17-24 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayByBank.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayPal.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayPay.swift:17-24 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPayco.swift:18-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodPrzelewy24.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodRevolutPay.swift:16-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSatispay.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodScalapay.swift:19-24 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSequra.swift:18-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSunbit.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodSwish.swift:16-23 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodTwint.swift:17-24 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodVipps.swift:16-22 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodWeChatPay.swift:18-25 | StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodWero.swift:18-25 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 35 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodOXXO.swift:27\u0060 calls \u0060init\u0060 and \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAffirm.swift:28\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodAffirm.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a2b6d2e58c8fdbadf589e41ffe50583f10585be8d4523cbf6e511988cd2508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPCard.swift:174-179 | StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPSourceCardDetails.swift:105-114 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPCard.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"285e335bd4f4611bb6af731356b19b63870b9209ac3dd6c25fc358e95c5ad2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift:1001-1007 | StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift:2459-2465 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060code\u0060 to \u0060STPCollectBankAccountError\u0060 in one and \u0060STPPaymentHandlerErrorCode\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBankAccountCollector.swift"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fe18aca9931cc311a5df6f73d07f89af0c465739ce47020f06e636465ef90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift:206-210 | StripeCore/StripeCore/Source/Helpers/STPDeviceUtils.swift:15-19 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"78acb500647fe550a912a07c0b137e7ae6cdc69493c8a95f1ca1cc1ecee350c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift:655-659 | StripePayments/StripePayments/Source/Internal/API Bindings/APIRequest.swift:171-175 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c08c4f83ba6a1a3f82a5618337bdab08af9501869804e6075aa02dcfb95767f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutApplePayContext.swift:382-388 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutApplePayContext.swift:400-406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutApplePayContext.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"684f66d0d3f1ebd7c188b2c3679c7447a792e5f7ec51c239dbc544b5b8cc85f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:298-304 | StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:549-555 \u2014 before extracting anything, compare \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift:548\u0060 calls \u0060constraint\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift:297\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"970009eebafe7323eed24bd6cfc418d3bf1ef0d687de8155c3cbdda4a3d479fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPCard.swift:218-222 | StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPSourceCardDetails.swift:125-129 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Sources/Types/STPCard.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"901edb22f2832482551493973980dcdebcdb513131cb5d6bf8b2813cc29f0e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Example/StripeConnectExample/StripeConnectExample/NotificationBannerExampleViewController.swift:230-235 | StripeUICore/StripeUICore/Source/Elements/SubtitleElement.swift:28-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/NotificationBannerExampleViewController.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"346dade09fb5c04f3cb0d74a4bb6e1e4638f60831ee7d1d5e62c84e3a51e3436"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 26 shared lines): Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift:66-101 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlmaExampleViewController.swift:68-110 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AmazonPayExampleViewController.swift:68-110 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BillieExampleViewController.swift:68-110 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BlikExampleViewController.swift:66-112 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CashAppExampleViewController.swift:69-111 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CryptoExampleViewController.swift:67-109 | Example/Non-Card Payment Examples/Non-Card Payment Examples/RevolutPayExampleViewController.swift:66-108 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SatispayExampleViewController.swift:67-109 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SunbitExampleViewController.swift:68-110 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SwishExampleViewController.swift:65-100 \u2014 These 11 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3ccd416d0e2ff7da370c7212e81f68817919c715b04e108e9ca7750cfcd388"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 19 shared lines): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:19-67 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:20-77 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:234-304 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift:80-128 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIPaymentSheet.swift:40-80 \u2014 These 5 members are variants of one another: a block of 19 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5505adc0bbe078e09aa0edcd4431df8e52c500b633ff5355cb3006a6d3a2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (20 shared lines): Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:259-291 | Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:326-361 \u2014 These two members are variants of one another: 20 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b781784a135f9c9c096bf90f8d56a002bfada488bf39f3ea099cf59d1fbc7c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:156-174 | StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:175-192 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b5b667f543543fe010601f4b9db887f3b8a17acebd22d35ba098745f718cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift:33-50 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlmaExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AmazonPayExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BillieExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BlikExampleViewController.swift:32-49 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CashAppExampleViewController.swift:35-52 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CryptoExampleViewController.swift:33-50 | Example/Non-Card Payment Examples/Non-Card Payment Examples/GrabPayExampleViewController.swift:37-54 | Example/Non-Card Payment Examples/Non-Card Payment Examples/KlarnaExampleViewController.swift:33-50 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MobilePayExampleViewController.swift:32-49 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MultibancoExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/RevolutPayExampleViewController.swift:32-49 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SatispayExampleViewController.swift:33-50 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SunbitExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SwishExampleViewController.swift:33-50 \u2014 These 17 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 17 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"973d677dd3bd427728005e88c6830beaa6e3d87519bf9a36947f06c85548cd42"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:346-390 | Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:392-417 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:206-220 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:66-92 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:109-126 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:800-817 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e372da93883c6c23c6969707bf18a818fcdb060d30841e048ef6d90dfaf62e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:116-177 | Example/CryptoOnramp Example/CryptoOnramp Example/IdentityVerificationView.swift:27-79 | Example/CryptoOnramp Example/CryptoOnramp Example/TermsOfServicePresentingView.swift:38-86 | Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift:35-81 | Example/CryptoOnramp Example/CryptoOnramp Example/WalletSelectionView.swift:60-161 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df372c70ca6e642aa3ce0d5a07fd64696189e366ad339b911a0b21fd4a2fec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift:120-129 | Example/FinancialConnections Example/FinancialConnections Example/ConnectAccountViewController.swift:115-124 | Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift:106-115 | Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift:126-135 | Example/IdentityVerification Example/IdentityVerification Example/PlaygroundViewController.swift:391-409 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dca3913aa7a6321f2d1f54315ae8b0cc1587e5a83afd9f20544a03e8ad0c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift:129-142 | Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:392-405 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/CustomerSheetTestPlaygroundSettings.swift:129-142 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:392-405 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4af4400c764c59307f2bea1fd9585753f82b4368a364dfa376ad0a8f8978468"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:108-121 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:146-161 | Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:159-172 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:128-142 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1026e17bcbc4487a9605268966e3ce5318a2120d4e3ecaab7230d12f00ece9a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (71 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:816-886 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:816-886 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96d50eabac6f427a34f2e5cfbd9fdd2231c397d624981a7f4e163601e019329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201357 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:144-146 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:170-226 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:296-352 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b9c25ee09922e1a54bd89679e3f415003b7d2ca0313b3407ca549efeea608d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 2): Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift:1024-1065 | Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift:1099-1141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift:1024\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cd0be4314d7f5bedaad05a892f289c157edc309ed1f4614b7163c6c560adfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:214-255 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:214-255 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d227d5571122c28d7576d2372df3b2838b38d96fecacf074ed105c0e8e0d837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift:36-73 | Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift:46-83 \u2014 before extracting anything, compare \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift\u0060 and \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef45f56ef4005070c15b9aeff103f453de1d4b3991732aa28f8efc0f281a2ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift:40-72 | Example/PaymentSheet Example/PaymentSheet Example/ExampleWalletButtonsView.swift:255-287 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleWalletButtonsView.swift:255\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"27710bb64edb659ab887bbe8b116a18bd8ee68939c37abc14770b7fd195ccfda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift:34-64 | Example/FinancialConnections Example/FinancialConnections Example/ConnectAccountViewController.swift:35-65 \u2014 before extracting anything, compare \u0060Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift\u0060 and \u0060Example/FinancialConnections Example/FinancialConnections Example/ConnectAccountViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"507e38c63bb4fd69bfb21187f1a0b7b86d70a7f2edc74fb7bfd0b1f367de9882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:171-200 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:203-232 | Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:197-225 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:193\u0060 calls \u0060addAction\u0060, \u0060present\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a64e721e9e550f088e013d74d5cfa7b1730bf30af59e64167bb6a01cd5d27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:434-458 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:475-500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:475\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd72c2f6aa06f6a06278f0af1633d6dd19217980fe722c4edd02c99b70f2833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift:193-218 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/CustomerSheetTestPlaygroundSettings.swift:193-218 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/CustomerSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"06705fa93998bb10bf4561332ce146899c9bb4fe2ae81193d4bce406a1939426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:264-288 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:321-345 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b47b68e41300366b0a7f88b93e352128ed03823f2164b149349d01e79d9503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:482-503 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:522-543 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfee7477ad0573e5a521ba1bf2c847b051a65ec1555ef56b83365a892297438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift:69-90 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift:117-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a289d3813a759a69dae3870cdc38915e46494fe9bdf2eefc9e3926b9c1b4971f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:117-137 | Example/CryptoOnramp Example/CryptoOnramp Example/IdentityVerificationView.swift:28-48 | Example/CryptoOnramp Example/CryptoOnramp Example/TermsOfServicePresentingView.swift:39-59 | Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift:36-56 \u2014 before extracting anything, compare \u0060Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift\u0060 and \u0060Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf3812bbd233cf936532f16610c1ca2b813016e57616ff754c57eb7041b2226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift:30-50 | Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:83-103 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9083654f27246199a41cfd61e125c47310b46efaa12449baf3f5e3bb5226092d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift:81-101 | Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountExampleViewController.swift:79-99 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift:81\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff75929c6ca06ca664955b4a1d994b0f93445b4b23b42f486325573c7ba0894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:33-53 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:37-57 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:33\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56da65a52fc14c4f2d90e5965a0bb0f17afe96db9b558a7c023ab4da5f61c4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift:89-108 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIPaymentSheet.swift:49-68 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIPaymentSheet.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0a1b83cdf462907fb84966418453d35d71a24cfe16e64fa8230fcd4b0a7dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift:123-141 | Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift:145-163 \u2014 before extracting anything, compare \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift\u0060 and \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift:142\u0060 calls \u0060setNeedsStatusBarAppearanceUpdate\u0060 and \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift:120\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f5d8a2e00e36c184fe03b9faecab3c0281bf97c90642d4f22c16270014a48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartView.swift:167-185 | Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:221-239 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartView.swift:167\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartView.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"94359db2e496bb0f04017e151422d483dba0241bf3d7444e765c0325f81516fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 18): Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift:93-106 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift:103-116 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift:86-99 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlmaExampleViewController.swift:89-106 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AmazonPayExampleViewController.swift:89-106 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BillieExampleViewController.swift:89-106 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BlikExampleViewController.swift:91-108 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CashAppExampleViewController.swift:90-107 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CryptoExampleViewController.swift:88-105 | Example/Non-Card Payment Examples/Non-Card Payment Examples/KlarnaExampleViewController.swift:92-105 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MobilePayExampleViewController.swift:89-106 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MultibancoExampleViewController.swift:91-108 | Example/Non-Card Payment Examples/Non-Card Payment Examples/RevolutPayExampleViewController.swift:87-104 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SatispayExampleViewController.swift:88-105 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SunbitExampleViewController.swift:89-106 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SwishExampleViewController.swift:84-97 | Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift:198-212 | Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountExampleViewController.swift:166-179 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6def8ccb99ad3e204eedf8f54de997b7eb9b0d6cda2a6a82ef65fc7357f45c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 17): Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift:33-50 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlmaExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AmazonPayExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BillieExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BlikExampleViewController.swift:33-49 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CashAppExampleViewController.swift:35-52 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CryptoExampleViewController.swift:33-50 | Example/Non-Card Payment Examples/Non-Card Payment Examples/GrabPayExampleViewController.swift:37-54 | Example/Non-Card Payment Examples/Non-Card Payment Examples/KlarnaExampleViewController.swift:33-50 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MobilePayExampleViewController.swift:32-49 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MultibancoExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/RevolutPayExampleViewController.swift:32-49 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SatispayExampleViewController.swift:33-50 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SunbitExampleViewController.swift:34-51 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SwishExampleViewController.swift:33-50 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6699b805d43d95a83599c4c9828cbc1042a10461aa2b6ab4d4e4cdb9a3f13d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:538-555 | Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:609-626 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:538\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:537\u0060 calls \u0060paymentSheet\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:608\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"152a5522249c635fe3a3d0ac2b7ba352e8e3455c44b43b629b134a7b6f5327db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:52-69 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift:103-120 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"87795f598892dc1bda6b713a57181fc4e98aa8f275ecc782375ade6f573041dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift:232-248 | Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:504-520 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift:232\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f606a0e43ffc5aefc0c24b2d3c6e66b7bf3d86e301d9aa372841eb82fe6138a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:243-259 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:360-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd8018c6253a1d455934ed8f581fd93fd0e1b49e6340cefe39138fa255332bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift:66-82 | Example/FinancialConnections Example/FinancialConnections Example/ConnectAccountViewController.swift:67-83 \u2014 before extracting anything, compare \u0060Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift\u0060 and \u0060Example/FinancialConnections Example/FinancialConnections Example/ConnectAccountViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf393fa1f7c55463f973b03392a89892230206919d6948fafc30b9e396623376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:39-54 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:43-58 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift:94-109 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIPaymentSheet.swift:54-69 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce28f5b23d472a48510ce44e1d9497a4d67880e9aafd0e1da9e63d267af0c29d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift:698-713 | Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift:723-738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6964f0a996b1858c39dec4e10ed0e26027b7836155ede14925f4d6ad40d0bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:190-204 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:1210-1224 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:190\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf7debe50ae94893974cba4f4b7a23d2c3314e62fba3337824c4d0898b1970a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:163-177 | Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift:67-81 \u2014 before extracting anything, compare \u0060Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift\u0060 and \u0060Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7dccb1eb02a20208817e81507db2badad3a447f05f00481b878dd31318afd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift:81-94 | Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift:100-114 \u2014 before extracting anything, compare \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift\u0060 and \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift:81\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d68f0e8b7db66d0a2097785c9912579dc6d3a4df4bd584ac2f58429f425dac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift:86-100 | Example/IdentityVerification Example/IdentityVerification Example/PlaygroundViewController.swift:354-368 \u2014 before extracting anything, compare \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift\u0060 and \u0060Example/IdentityVerification Example/IdentityVerification Example/PlaygroundViewController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d81d3e7992f1dec71386e7b2055c9bb338851342f9bd038b46806d84fd1a573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutSessionDetailsComponents.swift:44-58 | Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutSessionDetailsComponents.swift:71-85 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutSessionDetailsComponents.swift:44\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutSessionDetailsComponents.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afe5fa034688800cbc974225859efa525f693b40d7f8d98f7027c366682404b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 11): Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift:66-79 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlmaExampleViewController.swift:68-79 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AmazonPayExampleViewController.swift:68-79 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BillieExampleViewController.swift:68-79 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BlikExampleViewController.swift:66-76 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CashAppExampleViewController.swift:69-80 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CryptoExampleViewController.swift:67-78 | Example/Non-Card Payment Examples/Non-Card Payment Examples/RevolutPayExampleViewController.swift:66-77 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SatispayExampleViewController.swift:67-78 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SunbitExampleViewController.swift:68-79 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SwishExampleViewController.swift:65-76 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AlmaExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12b78969ff1a0767ea7b718b2a95ee9ffd8f2878e28196dbf78a08b554a77e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:44-57 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:48-61 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:268-281 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift:99-112 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIPaymentSheet.swift:59-72 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:266\u0060 calls \u0060ComputedTotals\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:42\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"781f968bece201f6a8d93d3a5ba70183192a7fa670a1827fa373499377e552b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift:129-142 | Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:392-405 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/CustomerSheetTestPlaygroundSettings.swift:129-142 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:392-405 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/CustomerSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a6224d478bbb975aa78d53ef3e275538b58de8017377b11e7e03ee6a3247af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:652-665 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:689-702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:652\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:649\u0060 calls \u0060InfoRow\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:687\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9efb18d4b73c821b364687dc5881b0c8d885ceebaee2554901079b8d4ed865d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Example/CryptoOnramp Example/CryptoOnramp Example/PaymentView.swift:787-800 | Example/CryptoOnramp Example/CryptoOnramp Example/PaymentView.swift:838-851 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/CryptoOnramp Example/CryptoOnramp Example/PaymentView.swift:787\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/PaymentView.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"346afb19a1b932da844b615dd02288caac0efb9e6eb1a1c509f836f90a6016b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift:66-79 | Example/Non-Card Payment Examples/Non-Card Payment Examples/KlarnaExampleViewController.swift:65-78 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/KlarnaExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"866cc3fc6d1e3f4241773a229f585982746f58d425e6595e103c2878531d3839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/MobilePayExampleViewController.swift:66-79 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MultibancoExampleViewController.swift:68-81 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/MobilePayExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/MultibancoExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/MobilePayExampleViewController.swift:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/MobilePayExampleViewController.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7681214944eaf2d7ed122a74bdfecf988f766a8d6f1a7d55e6df245b0211d928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:154-167 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:187-199 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"79755ff545c04faea9db3d8bef963f1bdaee58226f133ca5423d8ea2c436dcc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:174-186 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:205-217 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:206-218 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:237-249 | Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:199-211 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cce8092ff9a4b7e1d903ede3daefcc57e0404ac6021d53809c4c925810734dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Example/CryptoOnramp Example/CryptoOnramp Example/TermsOfServicePresentingView.swift:67-79 | Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift:64-75 \u2014 before extracting anything, compare \u0060Example/CryptoOnramp Example/CryptoOnramp Example/TermsOfServicePresentingView.swift\u0060 and \u0060Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/CryptoOnramp Example/CryptoOnramp Example/TermsOfServicePresentingView.swift:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/TermsOfServicePresentingView.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"593703b2e9fa91ce1197bce53d4321057e985f8af6498c87cd458f23f63d181a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:157-169 | StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:176-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:157\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6550e074ffd383d0831d108f40e94422094ed41831b2dff29bbec1fb05579749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:116-127 | Example/CryptoOnramp Example/CryptoOnramp Example/IdentityVerificationView.swift:27-38 | Example/CryptoOnramp Example/CryptoOnramp Example/TermsOfServicePresentingView.swift:38-49 | Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift:35-46 | Example/CryptoOnramp Example/CryptoOnramp Example/WalletSelectionView.swift:60-71 \u2014 before extracting anything, compare \u0060Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift\u0060 and \u0060Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d7708d7c085b4885661d9b3a508ad726cab504393271defd0a4dbeb7eb06cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): Example/UI Examples/UI Examples/Source/MockCustomerContext.swift:38-49 | Example/UI Examples/UI Examples/Source/MockCustomerContext.swift:53-64 | Example/UI Examples/UI Examples/Source/MockCustomerContext.swift:66-75 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/UI Examples/UI Examples/Source/MockCustomerContext.swift:38\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/UI Examples/UI Examples/Source/MockCustomerContext.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef060c7ea1b578380c0c637416d3345bee5c5bfdc182560ffb902489a790667c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:439-450 | Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:477-488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b47bd437beaa5a65ec68a74b70d665d6dbc8d1f27c2d3eb8d6298db041a54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/GrabPayExampleViewController.swift:75-84 | Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountExampleViewController.swift:159-170 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/GrabPayExampleViewController.swift:75\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/GrabPayExampleViewController.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e21c1312a9abf67cb9b3359892dc8e0ebfd9fcdf3ac5c853ebe0c2430d95175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:46-57 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:43-54 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5f403eed99bfa6bd35ae99b9b13522c83e22c7ec8f5461dc9f7337914cd332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:63-74 | Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:66-77 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7bb9222972ce6b19fabf46fd6f8376cc3feea0d65326c32ff94b80fc986c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:258-269 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:258-269 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b97281d51a8cbc42e4794940a9e19a6c4f8b6e412dd348993ef3b1314fed7db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:493-504 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:493-504 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c6a7b71b7bc619daa2879ac9a3c492381b0f4d1548fe6711a42313bcfb64fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartContentView.swift:246-257 | Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartPaymentButton.swift:46-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartContentView.swift:246\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartContentView.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e26ede0180a4e27e6e2c09d930effce566f130c324c036e8abd87cd6f7cad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:252-262 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:309-319 | Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:306-316 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:252\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de23f6aa4e11d52a54cc7a8c57178af83274a97a1622566143c6ce42f870024"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:74-84 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:94-104 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:110-120 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:74\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:122\u0060 calls \u0060deferredSwitchDidChangeValue\u0060, \u0060loadBackend\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:108\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e36bf5e34782c6e2943d14601b7c66a53063917320e06b8494019b1ac54d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:453-463 | Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:491-501 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec2df24cf5c4badfad395e4779e49019b19f631efe68bf8969ff1613c11974c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StripePayments/StripePaymentsTestUtils/STPFixtures\u002BSwift.swift:290-300 | StripePayments/StripePaymentsTestUtils/STPFixtures\u002BSwift.swift:305-315 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePaymentsTestUtils/STPFixtures\u002BSwift.swift:290\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTestUtils/STPFixtures\u002BSwift.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca388fb1c7693d8fffa1e1a13a21eef3111f78232435a604372b034fd13512b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:373-383 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:75-85 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:373\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"df722029d3ed3e789439abab0b77ba54028f1cab5a63cadf9f56e3d0ef3c621a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:93-103 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:94-104 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:93\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a37dab67aa630901eeb322ac8bc621299140b3fdd9bd97878e149aa716182b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:19-28 | StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:71-81 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:19\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ec6507cdc0866b802abaa0cab4ebd7b183057eb9b87984286abd42ee310e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:141-150 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:174-183 | Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:186-195 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:141\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed58ebfebe84c0e891b432981477bcaecca6fe3061493da740cf5bc377e43b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerPreviewView.swift:180-189 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:676-685 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerPreviewView.swift:180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:672\u0060 calls \u0060VStack\u0060, \u0060Text\u0060, \u0060font\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerPreviewView.swift:179\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerPreviewView.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"56696ac568da0659b8afc19de9cf66ade032db24745087e1cb4aeef6de7813de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIViews.swift:113-122 | Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:676-685 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIViews.swift:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIViews.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7254a4edadbb4c69c876f1fa655d1fcbca35f4345e2a266432e8f99044563e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/CryptoOnramp Example/CryptoOnramp Example/AttachWalletAddressView.swift:39-48 | Example/CryptoOnramp Example/CryptoOnramp Example/RegistrationView.swift:61-70 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/CryptoOnramp Example/CryptoOnramp Example/AttachWalletAddressView.swift:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/AttachWalletAddressView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5adfe354952c0485a4d4b46734539d351a8d558b7d636c33451f2af0fe8197d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:180-189 | Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:202-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3f5b61ac58a9b33f78b8f7b564724a874083e7ddafa7c9b03a4a41b7e6a7ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift:93-102 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BoletoExampleViewController.swift:237-244 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfefc74747208761e761e1308b8139961acadaa82aedb9f65d45d276f7fc7a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:367-376 | Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:401-409 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:367\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:366\u0060 calls \u0060arrayValue\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:400\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3c2997c991c07b971af2a4dede173c2d70cc306b5c4a8de26c05b8ac45dddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:111-119 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:151-159 | Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:162-170 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:131-139 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"975b894b064f9c269d3b1daddf532b4d6e97435b06113aa4c8a6db65a9ce3ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:204-212 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:236-244 | Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:228-236 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d6fded97262497dd8ace568f2145c8b673a9720d14c8d4cc2c3936079939f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/HitTestStackView.swift:16-24 | StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/HitTestView.swift:16-24 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/HitTestStackView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff0c66d73d2106c999fe99afe063261e7e0b2a8e842da2edc10d832ca887292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/CryptoOnramp Example/CryptoOnramp Example/UI Helpers/PrimaryButtonStyle.swift:11-19 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkControllerView.swift:721-729 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/UI Helpers/PrimaryButtonStyle.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"894d942a3dc6722d4533f896fcb8c7d81034c511d8ab4f49f83aa160e82a6752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift:92-100 | Example/Non-Card Payment Examples/Non-Card Payment Examples/GrabPayExampleViewController.swift:68-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bc236fa0cb3e550d7ad36dc7bae9db23ce45d12533e3fdb52c61d65e09b4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift:174-182 | Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift:188-198 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift:174\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b00d01fde04d9ee3445567cf36eaf0f9fc5e8289eb96464e5c54d0f4efbb593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift:413-421 | Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift:445-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060selection\u0060 to \u0060customHeadlineFontBinding\u0060 in one and \u0060primaryButtonFontBinding\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f9d924fb82858a41abfdc197265017345e02912776972411a96d1eb7d3d078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:224-232 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:256-264 | Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift:245-248 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c10cd35a0742a9e170bd5766baf94f63e87f52d8c5b8e39c6fff80496fed1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:70-78 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:111-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f076075f2c0fe4274d68e50bed328711e9c9f3ce25dfe17f14f25417ffe1d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:913-921 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:913-921 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d550acac0c6f2ac10bebfc208278c8990156c7af4a6cb82360665d97f5d461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/CardImageVerification Example/CardImageVerification Example/View Controllers/VerificationExplanationViewController.swift:68-76 | Example/CardImageVerification Example/CardImageVerification Example/View Controllers/ViewController.swift:13-21 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CardImageVerification Example/CardImageVerification Example/View Controllers/VerificationExplanationViewController.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"365e080bc144a410abea0cc22555d2098856ab3c71c294019dda5b20a0f8cfb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift:521-529 | Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift:541-549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c062a9dabd5051b438a8bf4be6697f4dd20226077c8e3c9d3ff0d1ffe1cd1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:222-230 | StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift:313-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTestUtils/STPTestingAPIClient\u002BSwift.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2573e93942b9485ccfe89d9a330e4ebf11fe6e85b25cc67f62f271cce9675b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift:122-129 | Example/FinancialConnections Example/FinancialConnections Example/ConnectAccountViewController.swift:117-124 | Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift:108-115 | Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift:128-135 | Example/IdentityVerification Example/IdentityVerification Example/PlaygroundViewController.swift:402-409 \u2014 before extracting anything, compare \u0060Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift\u0060 and \u0060Example/FinancialConnections Example/FinancialConnections Example/ConnectAccountViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift:122\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift:120\u0060 calls \u0060displayAlert\u0060, \u0060UIAlertController\u0060 and \u0060Example/IdentityVerification Example/IdentityVerification Example/PlaygroundViewController.swift:401\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeafa39c1c03048dac6d95ee1ca24e2d5d8241cbd9754171afe67341fabc0663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:88-95 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:125-132 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:146-153 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:88\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9e6d509db42c43a78ee1fd6380be482ada818f386a6f4cca855770a79e9ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StripePayments/StripePaymentsTestUtils/STPFixtures\u002BSwift.swift:214-221 | StripePayments/StripePaymentsTestUtils/STPFixtures\u002BSwift.swift:263-270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StripePayments/StripePaymentsTestUtils/STPFixtures\u002BSwift.swift:214\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTestUtils/STPFixtures\u002BSwift.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0af26cb131da54a9f4bcd858865d2907051d1a1d3c4418cea90e886dd0f3d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:68-75 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:605-612 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ff8cfab7a63611551c030fc68968396c813350a91274edf91b0f9387f290fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:207-214 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:801-808 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7385e43293da875424706184ba5c05df368f423bcef7da29bf354e2953a1d468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift:120-127 | Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountExampleViewController.swift:115-122 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift:120\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15ebd6d6040b01965ab7d1fc7a9b4cee5bb44a81108ee2654d12377f12883b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:371-377 | Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:404-410 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:73-79 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:113-119 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ec4f6541211eb81436ae003df1850827d2c84381cad904794d161de2bce302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:887-893 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:1000-1006 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"16dc3f8f1a7357196bf3a13bd16ae08f61ccb52424020f89f840396b00321654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/BoletoExampleViewController.swift:167-173 | Example/PaymentSheet Example/PaymentSheet Example/EmbeddedPaymentElementWrapperViewController.swift:46-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/BoletoExampleViewController.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac37bc5e2124078ec545877d831002c8c5892e918940fe4e140e24c6d91d38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:216-222 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:28-34 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:216\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad260c912e51510443dabb1100a617a4f929bea00ebd56c0d1f2223244f78802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:32-38 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:248-254 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:32\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f595b4a9072493a08d74598268df0969baa2a2a836d5825d2321c466603b61f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift:316-322 | Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CurrencySelectorAppearancePlaygroundView.swift:94-99 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift:316\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/AppearancePlaygroundView.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a9c62e96f9514723032ac4058145ebe03cb02728a90fe2525f7c5575f3ed30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:412-417 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:121-126 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:412\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba8f7b19fb23a777341ec6639e28fb1b5ba4354a7fae515a5c65cc982436a4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleWalletButtonsView.swift:57-62 | Example/PaymentSheet Example/PaymentSheet Example/ExampleWalletButtonsView.swift:68-73 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleWalletButtonsView.swift:57\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleWalletButtonsView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"45871db33bcb6c55259060550f15859c7d83e78b7c74cc317bd413e4a6ff2e09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:630-636 | Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:674-679 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:630\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"768e07c6868fc4c00f91ae4ea715caffc5311b682f89ba584ea7bde1ac396876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:636-641 | Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:743-748 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:636\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaee552fd06e06a2245a8bdcf4cebcf013a27034b20a112b96f2d00a311520c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift:219-223 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutViewController.swift:31-35 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomCheckoutViewController.swift:35-39 | Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:251-255 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:40-44 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift:87-91 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIPaymentSheet.swift:47-51 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 149 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCheckoutDeferredViewController.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"79147ddca6a69385bc70079c15455d25ad62fc10de38460e9ff738b2818d4542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:373-377 | Example/PaymentSheet Example/PaymentSheet Example/ExampleLinkPaymentCheckoutViewController.swift:210-214 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomerSheet.swift:75-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf7f8cfc443739105f195ea1d6e6680ed98caebcafed043e568388a7d578a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:631-636 | Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:675-679 | Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:739-743 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:631\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8c9469dee41079069b2bc7d251d8fd83bf99b0a7d2c2a669efc73d77864d1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:383-387 | Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:422-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:383\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c5295efb72778ddd348232a2f11aa540c1158d077fa9ac9bd8f94015937319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:248-252 | Example/PaymentSheet Example/PaymentSheet Example/ExampleWalletButtonsView.swift:477-482 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift:248\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleCustomDeferredCheckoutViewController.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d82865c60009162c084db2242d13569b1c3b5fe1ad3892bd777ed2da2c21182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIEmbeddedPaymentElement.swift:40-44 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIEmbeddedPaymentElement.swift:138-142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIEmbeddedPaymentElement.swift:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIEmbeddedPaymentElement.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77c9cf8771ed17d282fe89808d0435677d6a0dcb304e5a56aee33fe699727f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Example/IdentityVerification Example/IdentityVerification Example/AppDelegate.swift:13-30 | Example/StripeConnectExample/StripeConnectExample/AppDelegate.swift:13-30 | StripePayments/StripePaymentsTestHostApp/AppDelegate.swift:13-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/AppDelegate.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc2fcf26b5ad3dfa0148506d4b0442649bbdf6ff85ddffaaa07c3cd33274113"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift:181-187 | Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:334-340 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fd815d658f273510d4093e34a1b8de9b339d724d41190f9ea92e2decb8006a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift:72-80 | Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampExampleView.swift:33-41 | Example/CryptoOnramp Example/CryptoOnramp Example/PaymentSummaryView.swift:50-58 | Example/CryptoOnramp Example/CryptoOnramp Example/PaymentView.swift:172-180 | Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift:25-33 | Example/CryptoOnramp Example/CryptoOnramp Example/WalletOwnershipVerificationSheet.swift:33-41 | Example/CryptoOnramp Example/CryptoOnramp Example/WalletSelectionView.swift:32-40 \u2014 before extracting anything, compare \u0060Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift\u0060 and \u0060Example/CryptoOnramp Example/CryptoOnramp Example/UserAttestationPresentingView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampExampleView.swift:29\u0060 calls \u0060AppStorage\u0060, \u0060Environment\u0060 and \u0060Example/CryptoOnramp Example/CryptoOnramp Example/PaymentSummaryView.swift:48\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5d64ad7d09ac8ad2a60f6956bd44bb522a8bdac0e7c803bd7a4d605897e939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:59-65 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:614-620 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dbc8b542319796bb2c17e99e02e11f7d08fc83d87905dc38407b98fe65355f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift:422-426 | Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift:1243-1247 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6a9c704c7898bd9407fd81b58843d0c093e13d2247d60b83236953e0b7ce02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift:96-104 | Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift:116-124 | Example/IdentityVerification Example/IdentityVerification Example/PlaygroundViewController.swift:381-389 \u2014 before extracting anything, compare \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift\u0060 and \u0060Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewController.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27305cf0e0b8403e09b2d8019093ee956ab21af0e907a6fb377d159fe32ecda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift:14-19 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift:15-20 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift:15-20 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlmaExampleViewController.swift:15-20 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AmazonPayExampleViewController.swift:15-20 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BacsDebitViewController.swift:21-26 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BillieExampleViewController.swift:15-20 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BlikExampleViewController.swift:13-18 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CashAppExampleViewController.swift:16-21 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CryptoExampleViewController.swift:14-19 | Example/Non-Card Payment Examples/Non-Card Payment Examples/GrabPayExampleViewController.swift:18-23 | Example/Non-Card Payment Examples/Non-Card Payment Examples/KlarnaExampleViewController.swift:14-19 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MobilePayExampleViewController.swift:13-18 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MultibancoExampleViewController.swift:15-20 | Example/Non-Card Payment Examples/Non-Card Payment Examples/RevolutPayExampleViewController.swift:13-18 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SatispayExampleViewController.swift:14-19 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SunbitExampleViewController.swift:15-20 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SwishExampleViewController.swift:14-19 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6135be574715549aec606f561b7d2f597bcae8dcded6219b173f6be25169b899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 16): Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift:52-60 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift:53-61 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AlmaExampleViewController.swift:53-63 | Example/Non-Card Payment Examples/Non-Card Payment Examples/AmazonPayExampleViewController.swift:53-63 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BillieExampleViewController.swift:53-63 | Example/Non-Card Payment Examples/Non-Card Payment Examples/BlikExampleViewController.swift:51-61 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CashAppExampleViewController.swift:54-64 | Example/Non-Card Payment Examples/Non-Card Payment Examples/CryptoExampleViewController.swift:52-62 | Example/Non-Card Payment Examples/Non-Card Payment Examples/KlarnaExampleViewController.swift:52-60 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MobilePayExampleViewController.swift:51-61 | Example/Non-Card Payment Examples/Non-Card Payment Examples/MultibancoExampleViewController.swift:53-63 | Example/Non-Card Payment Examples/Non-Card Payment Examples/RevolutPayExampleViewController.swift:51-61 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SatispayExampleViewController.swift:52-62 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SunbitExampleViewController.swift:53-63 | Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountConnectionsExampleViewController.swift:129-137 | Example/Non-Card Payment Examples/Non-Card Payment Examples/USBankAccountExampleViewController.swift:124-132 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AfterpayClearpayExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/AffirmExampleViewController.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5314e4cc360dc469a1522e4f5f06b45bfcfdf9f3339d6c8709bcd82530c96fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift:53-61 | Example/Non-Card Payment Examples/Non-Card Payment Examples/SwishExampleViewController.swift:52-60 \u2014 before extracting anything, compare \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift\u0060 and \u0060Example/Non-Card Payment Examples/Non-Card Payment Examples/SwishExampleViewController.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/AlipayExampleViewController.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab231a22a73ab0edda4031f20a1684c0bcebc0f5dc47b8b7869b54e24db04dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift:220-224 | Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:903-907 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/CustomerSheetTestPlaygroundSettings.swift:220-224 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:903-907 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/CustomerSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundSettings.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56b1fbc2a61b61001a0f36ad249e60e8deb868330b93cecdc6cb04af6b068b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:28-37 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:28-37 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3bad6966be7000b0f60a227daaeeae45b44535188429a87ead6e4277a3a2c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:60-73 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:60-73 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"376c0c2eccea6ac1ae07c34ebf2750b91beb693d1cd0bc4ddada3ad319aff0ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:75-82 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:75-82 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f053af606e805a716983a7d8c0119db669fa1422e28c43d0a45c9b8ac5b311e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:115-126 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:115-126 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"096ef72b595cce9facce89826d5bf51eefc0edf074a2cc450f8d54b01f2eb36f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:127-134 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:127-134 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fad5f38209fcf03b7027c383e91e68c3130f33b1e1ad8f4c2eeca9932087ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:203-212 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:203-212 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd02f13869df85f214ea5d407c41f3e5d245e8e62888e2c0effeff504c8dfe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:506-517 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:506-517 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8997580f6a8d9a6fe393431011edeabc15787cf203138c5cb91e9a9f560288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift:610-619 | Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift:610-619 \u2014 \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetTestPlaygroundSettings.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 249 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlaygroundSettings.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ce372f19175ae712cc44e0d26312d77fc7e95a4adc09d9359685431b999ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartContentView.swift:381-390 | Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartViewController.swift:545-554 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/Checkout Playground/CheckoutCartContentView.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88aba0d1150c9a95a5a1bcbf3b785472603ce476e9b4215d3c4a7a7a61c7bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift:196-202 | Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift:204-210 | Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift:406-412 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetTestPlayground.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlayground.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"221fc5fd39aab85ebc33913061e930fa036dfa744b064c5a5650a468ec8a5234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift:110-118 | Example/FinancialConnections Example/FinancialConnections Example/ConnectAccountViewController.swift:105-113 \u2014 before extracting anything, compare \u0060Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift\u0060 and \u0060Example/FinancialConnections Example/FinancialConnections Example/ConnectAccountViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnections Example/CollectBankAccountTokenViewController.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"39282a1954e98a6d3749ef84cb6c4e9ce7ec94a951bf4eba321d30d102a9ee7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift:130-139 | Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIPaymentSheet.swift:82-91 \u2014 before extracting anything, compare \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift\u0060 and \u0060Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIPaymentSheet.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUICustomPaymentFlow.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"433519457f19cbc2b4f5490182a252d407db25f3acb3135f8a370c92b9a8feaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:259-264 | Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:326-331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"44eb7e5a8b496dde0a72f6843da16199cf93e61bc065338a693fe199390e0b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:271-275 | Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:303-307 | Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:337-341 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"393823ab0913910ff0f3628e5dae623478423735287254ad67e8a3df9a87f613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:280-288 | Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:311-319 | Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:346-354 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:356\u0060 calls \u0060UIFont\u0060, \u0060monospacedSystemFont\u0060 and \u0060Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift:290\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/Settings/Appearance/AppSettings\u002BAppearanceInfo.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"4553591b9915e5db06bf7b8c0c5ebe1110865457183d7c0e1e4fe58e7c92befc"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StripePaymentSheet: StripePaymentSheet has instability 0.86 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4eed6dbc57bee09096f283fb58619ba66a64118c5c6ab4e8a9107e883eccec72"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: StripeCore: StripeCore: abstractness 0.21, instability 0.00, distance 0.79 \u2014 zone of pain \u2014 concrete and depended on by 14 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2432331ea720f358a9220ec3a1c28a05eb32c7446ebf0ec1444ce1d611f61223"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WalletViewController (LCOM4 16): WalletViewController\u0027s methods fall into 16 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 16 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController-WalletViewController.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"561f4fab3a77f27170a850902a9f174f340b7ec898288d7b0234b501652ccb6b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: View (LCOM4 16): View\u0027s methods fall into 16 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 16 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/View\u002BWalletOwnershipVerification.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfc97d808b73e4fea0f9741ae903cbbd03365709db962e0ac35eb2719691d2b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 16): String\u0027s methods fall into 16 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 16 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnections Example/Playground/PlaygroundViewModel.swift"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b20d6a87feb7548a01109c62af48f6081e21bffbb7dd3b2f54d498791075eb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIView (LCOM4 15): UIView\u0027s methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/AppDelegate\u002BBrokenConstraints.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0f4d46aefc7484e91191a946c8b42870bd52b1952814624388e8bdbffca0a8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Dictionary (LCOM4 13): Dictionary\u0027s methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Categories/Dictionary\u002BStripe.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b795d9ff2cfe4836545b77f9f6368c2879ded992994e01ba5d67e6de1fbb9265"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: STPAPIClient (LCOM4 12): STPAPIClient\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cef2bfc7b79b852c31674864f6298f9fdca977d9ded5f4bd0c187f08bfc18c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BottomSheetViewController (LCOM4 12): BottomSheetViewController\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/BottomSheetViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"39731e68031e1b45e181fb6bb05565a9f27a4eb6c8e0783112e639f7026c97ed"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ConnectWebViewController (LCOM4 10): ConnectWebViewController\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Internal/Webview/ConnectWebViewController.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bb1d712f18677ddc3f2b07eddf9dd95a9097b38ee3e66f82b41a8a9772f84a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OneTimeCodeTextField (LCOM4 10): OneTimeCodeTextField\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Controls/OneTimeCodeTextField.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"590a9011d0416d6aa316d6d18aaeb8da61ef26af8def71a011521b1fd1d6aee1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Array (LCOM4 10): Array\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/ComplianceIdentifiersEntryView.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12a61b252138717e036875b180d910bcf4d2f34d172188e6546fb3aa59bc3a5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlaygroundController (LCOM4 9): PlaygroundController\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4135421bf87e058410b238e27a3a82865820f691c87566727933b8759a431ce"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DocumentCaptureViewController (LCOM4 8): DocumentCaptureViewController\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ce050aa552388341cbf14716602066c9bce487cbc2ad2a914c9f552ff520ee"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AddressViewController (LCOM4 8): AddressViewController\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/AddressViewController/AddressViewController.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8eebed88f28fc43fa5f1175d56c65989dd2159808418ef062ca3fe4fee6a5b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainViewController (LCOM4 8): MainViewController\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/MainViewController.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c12d425320a6d43ea1c2f383326cf2a6dba222450ceed25be0818f08c4cb70"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIViewController (LCOM4 8): UIViewController\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ViewController.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f7ee130218e161eef7d0f76d0057b82165a9d2be1fb54fba03625ff4c31e98"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VerificationFlowWebViewController (LCOM4 7): VerificationFlowWebViewController\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/WebWrapper/VerificationFlowWebViewController.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a762cb21a8985534f4012e0f01ddc20f9f40d536a904c548b2bd5c3d38da396c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: STPApplePayContext (LCOM4 6): STPApplePayContext\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"646f6acd08751e9886b14bd7b4b8648ee10ec0cd46f3f3b199f9f2d45dd3d80c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SSDOcrOutput (LCOM4 6): SSDOcrOutput\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/MLModels/SSDOcr.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"352056f8f1250f0133cab3dbc67daaf43e236001e3f2577dc28eb203aef07b7f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SelfieCaptureViewController (LCOM4 6): SelfieCaptureViewController\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/SelfieCaptureViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"39442f63a3052e23a1c067ec376a57c77752b21771974a0bf1e974bad6a6e03b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ApplePayContextClosureDelegate (LCOM4 6): ApplePayContextClosureDelegate\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/STPApplePayContext\u002BPaymentSheet.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5b5303298c53621eae40a46d5c2a290255445051f003e515439d90c3850df0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AutoCompleteViewController (LCOM4 6): AutoCompleteViewController\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/AutoComplete/AutoCompleteViewController.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f3a81d3a0ac9832882204baa2665936a9ce674f6db4d04a2fd4b22a1803cac"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SceneDelegate (LCOM4 6): SceneDelegate\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTestHostApp/SceneDelegate.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc80b89731790fc651ae0e26b8b8823bc2b8ebd42e277ec38d0b18e09502dcb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SceneDelegate (LCOM4 6): SceneDelegate\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/SceneDelegate.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb21614fe1ad395383aa6f3305d61761ebc160eeb0f9dd0668bf89a7115224e4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SceneDelegate (LCOM4 6): SceneDelegate\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/SceneDelegate.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a3fd7fa52f5bebef933436ebc7122baae708aa2a3c4cb5b7bee734c586d24a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainViewController (LCOM4 6): MainViewController\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/MainViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f830664854af2ebfdfda5585d000e6a1b6945dddc207116ec1e62a40b885ec"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SceneDelegate (LCOM4 6): SceneDelegate\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/StripeConnectExample/StripeConnectExample/SceneDelegate.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e853114f0674a3a5f9191ebbd33570386813965d15da45f32754aba9019b3d5f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MockTestCameraSession (LCOM4 6): MockTestCameraSession\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCameraCore/StripeCameraCoreTestUtils/Mocks/MockTestCameraSession.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c74c87c02e8cf797ccae45f0b4fcf59cfbad04b9905ab50a91e111ee45e0158"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIColor (LCOM4 6): UIColor\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PMMETestPlayground.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"2194a4adf2fcf5a3a95fbfc64371f66089de6013a09e1e96b5c0cb09838cf158"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ThemeViewController (LCOM4 5): ThemeViewController\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/UI Examples/UI Examples/Source/ThemeViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc68c56cf4dcedc601e4f6c013c9aa15bcae2ee02949658ed801481926db707"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SimpleScanViewController (LCOM4 5): SimpleScanViewController\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/SimpleScanViewController.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65a73a04e302704260f07e726a2503936a239a004a7382e13bd5232ee9915e2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VerifyCardAddViewController (LCOM4 5): VerifyCardAddViewController\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardAddViewController.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"7116b5e3ae1ad7423d56699b9e77b1e29a5eb9b98ab086da8f94bf699acf1c19"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: InstitutionSearchBar (LCOM4 5): InstitutionSearchBar\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionSearchBar.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"28eede13bb188efbd33e7c5f14fe25761f5b488fd25ca4c5afe26be7779673d0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CustomerAddPaymentMethodViewController (LCOM4 5): CustomerAddPaymentMethodViewController\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b2872152c2e6ed6b62ec5936ce134ee77fc3a9a591b711f65c52853afa1a48"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FlowController (LCOM4 5): FlowController\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BSwiftUI.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e794390b3c2304901d363d80e10ffdbbd323e16ab0de7f65ea94071bfb8eb720"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Session (LCOM4 5): Session\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BPresentmentDetails.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f559e10ce7545f19e058704954e27a764771909bf52bcbdb0dba148e69e37c3a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CGRect (LCOM4 4): CGRect\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCameraCore/StripeCameraCore/Source/Categories/CGRect\u002BStripeCameraCore.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d7d86e27c0eeee456f15dec2719b55cb9e18054971248fec391fbf9762ec98"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MockSimulatorCameraSession (LCOM4 4): MockSimulatorCameraSession\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCameraCore/StripeCameraCore/Source/Coordinators/MockSimulatorCameraSession.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de44e5b8effb0660243a311156c95fc8126ccc98269d43cb96cf4d0716cb499"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ScanBaseViewController (LCOM4 4): ScanBaseViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/ScanBaseViewController.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e6946182c02cb4816f42c080fcc2efe471bd9e37fc2f8d15abae766678ab6d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VerifyCardViewController (LCOM4 4): VerifyCardViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardViewController.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a1d13efda25313c863aed508d7152ed9849b6fae7babc6c893f43c0918bd67"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ConnectComponentWebViewController (LCOM4 4): ConnectComponentWebViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"700b9318cde750d720a0965aae0c68e2841c051a3ce3a19a6df0cc3fda8db571"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppleAppAttestService (LCOM4 4): AppleAppAttestService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Attestation/AppAttestService.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c990d00dfefe64be48730f981f70e1c6e8765e1ca1b5b96fb7749211c2a28f0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ErrorView (LCOM4 4): ErrorView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/Helpers/FCLiteErrorView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2b55815bf13103aae206fb3ad658ecd5b948dc9aab9ae8c6399d5ffec5cba9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FinancialConnectionsAsyncAPIClient (LCOM4 4): FinancialConnectionsAsyncAPIClient\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/API Bindings/FinancialConnectionsAsyncAPIClient.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7711529b7039e25721bbb2bdabd3680660f5b2c8fe071cb4a690c754b928cd7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FinancialConnectionsNavigationController (LCOM4 4): FinancialConnectionsNavigationController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Common/FinancialConnectionsNavigationController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e302195abd79eb4e55050527e1051523f40009deb5b9dfcc678bf14aa53795ec"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ErrorViewController (LCOM4 4): ErrorViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Error/ErrorViewController.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"929b82d625d9458a86eb03a646e19a37a236fd01d4d1bcdac9759b6bf4ce8c5c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BiometricConsentViewController (LCOM4 4): BiometricConsentViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/BiometricConsentViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54decb50f090ffb862bf38e17381e7e712b266ffaeecb5d6cbb662526d60896"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: STPElementsSession (LCOM4 4): STPElementsSession\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/STPElementsSession.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2148a62fd9a089f2d9e5a558d39d3afec5f09eb41d0fe8f657c0d6b473e6e46d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PayWithLinkViewController (LCOM4 4): PayWithLinkViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa3206e9a2908c1dd66419e1301b020194f4d6b0779765eece12a2b4153829b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HTMLConfirmationContentViewController (LCOM4 4): HTMLConfirmationContentViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/HTML Confirmation/HTMLConfirmationContentViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df1fac8205cc1b68f9e5f9ea94ab01a79166ed9765ac37c6dd7b45cfd0cf3f6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LinkSignUpViewController (LCOM4 4): LinkSignUpViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/SignUp/LinkSignUpViewController.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba535c9c70d20944e548f4eba2b0decf63fb5b9bfb41d36bf8f82da144697dd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VerifyKYCContentViewController (LCOM4 4): VerifyKYCContentViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Verify KYC/VerifyKYCContentViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4a771c6f96fa509e13d8284d1b0e08757d89b6bdf9a1a73abcc110c3f5522b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RowButton (LCOM4 4): RowButton\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButton.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd4a59a9263124abb8d717ec2dc3bb7192994e037dde2cfb1ac9b4ba89f5992"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CVCReconfirmationViewController (LCOM4 4): CVCReconfirmationViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/CVCReconfirmationViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2aa1064706c9b2770efd4db9dfc3912152530aab2eed7ddb9c26c22df707c05"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PaymentSheetFlowControllerViewController (LCOM4 4): PaymentSheetFlowControllerViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9948e5202fd92a56b60da0a06338a244000a2a4bb30281aa5e7ea3e3cb2b25ac"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CardScanningView (LCOM4 4): CardScanningView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/CardScanningView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"280920cc1d8835065fe684f8ab47d5ae03288e5140a5b9901adce4e46023984e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CircularButton (LCOM4 4): CircularButton\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/CircularButton.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"283bd3f135674f244ea778433fd149cf78412b8d6927b5408462cf9e2bc78fc9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PayWithLinkButton (LCOM4 4): PayWithLinkButton\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/PayWithLinkButton.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f535cccbb3a96f491dfe270fc82ddf086f576524ba09737ee50097dc007d977"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: STPFormTextField (LCOM4 4): STPFormTextField\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPFormTextField.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8408cfa7c7b05c9d797436b8c074b8ffb3da1940de250a909e122621701b6972"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: STPPaymentCardTextFieldViewModel (LCOM4 4): STPPaymentCardTextFieldViewModel\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPPaymentCardTextFieldViewModel.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c7ff685d149e453f3e77a1170e235dd9c1d869f75f8233d92398c8d80a8a01"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: STPCardFormView (LCOM4 4): STPCardFormView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPCardFormView.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"711b30bca061d6182dc2738788aff3f7b54abf91f78ffdf3c48e3b85f06030e3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: STPFormView (LCOM4 4): STPFormView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPFormView.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"023c21829064151b684ab735d701b3034b8ac80e181716111928a72eaf9d17e8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CheckboxButton (LCOM4 4): CheckboxButton\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Checkbox/CheckboxButton.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb18213d0000dbd682fb62825b84c83dc42bac2cf10d5580f2a4b5c0af8e24ec"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MyApplePayBackendModel (LCOM4 4): MyApplePayBackendModel\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Testers/IntegrationTester/IntegrationTester/Source/Models/ApplePayModel.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adc2ebf04889478333aaed0dd20f52420449b4bf345d66755653fa7c28df73e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: STPSnapshotTestCase (LCOM4 4): STPSnapshotTestCase\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTestUtils/STPSnapshotTestCase.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2defbbebf5592961fca5c1ccfbe3ff18e515e786726572c3fd69953da1e84cd2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ExampleVerificationViewControllerNativeUI (LCOM4 4): ExampleVerificationViewControllerNativeUI\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/ExampleVerificationViewControllerNativeUI.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"328993b04ad3e18365225459f37c33c8eea5d5439fd511c7e7a248351dd1aca1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlaygroundViewController (LCOM4 4): PlaygroundViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/PlaygroundViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2966861798b19ee823dea993eaa54cc15ff5d480767a813befa39bbff4e4dd83"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: URL (LCOM4 4): URL\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/LinkPayoutsDemoView.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d9dc0fa91aabb8b750b131f794d88ee320fda57dd562c80b6312600f413af9"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 Swift suite: Coverage NOT MEASURED: the Swift half could not be measured \u2014 the Swift suite in . produced no coverage export. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testUpdatesSwiftUILayoutWhenDetailsChangeHeight: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Checkout/CurrencySelectorElementViewTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f398ef101371de11553b0190a40fbf3f9b8072cef5f43c865877f05b7f8303"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUpdateShouldCallTheCompletionBlock: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/ConfirmButtonTests.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9bacd79a18280c2369284e0f6298dd9bb4a1d87d67ffa89eae00a8667b4d59"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUpdateShouldCallTheCompletionBlockWhenAnimated: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/ConfirmButtonTests.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfca01eaaeb5d5ba8861f71234c73ae039669503b28a4ed3bf2edaf6daa4afab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPaymentSheetAnalyticEvents: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/HostedSurfaceTest.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e4d61254d2f115e11fe54411cfc6f4e6387422748d2581253d116e01d25a4b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCustomerSheetAnalyticEvents: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/HostedSurfaceTest.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d565599723e390bc6895078d99363f1553816914c14304942f7b5cd8a848ef9f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEnqueueShouldDebounce: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/OperationDebouncerTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"df018fb0d5c23e7bfb961c4286c1aa73506cb2249ad59823c2e2abf3b1d1e1ac"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExpiredCard: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPCardFormViewTests.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4867debc857e484e2f55deec030ae9bf01ac623ff1038b70c41da92386a53da1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIncorrectCVC: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPCardFormViewTests.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ee97fa1a82490079378e188ebfa01aad6eb6271e47da28b87d2cf9acebde84"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIncorrectCardNumber: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPCardFormViewTests.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40657ad2b3e1d0e9201ddc0e9142731533a300dcd92fdff88d1bde1a82dbb41"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCardDeclined: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPCardFormViewTests.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f864ec158a3450f3f4b5a2f1d1418d5ce0221167d213da636ddc9688aed65f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testProcessingError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPCardFormViewTests.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f25e65f597ee13e2031468b021d0a24899ea5626701664d850919161869a6f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTokenCreation_customer: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPConnectAccountFunctionalTest.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2738396a67881d804cc5575e7437438971f2fc25f541fdf060a41fa0f1f6ec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTokenCreation_company: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPConnectAccountFunctionalTest.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a4245a3760c4e5ea17bc1ee7ab761890f98b1e3e7a8d2b2f9e70c634f3b9de"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTokenCreation_empty_init: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPConnectAccountFunctionalTest.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8b6758ee57bf25d83e1c61c8bc18feb844392ed4e7784b5bc0ec811602a4f6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCardIconMethods: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPImageLibraryTests.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"87659e87a014e07664b368f340acfb65d7259063d6a4f0c699b4041077974b50"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBrandImageForCardBrand: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPImageLibraryTests.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5966e6637f3e218feace01741d2f53846005f1407492076d7414fa39371920cc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCVCImageForCardBrand: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPImageLibraryTests.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7088ec1ec373c6ce89bb7bb5ae4b7e9e30ef0299c0ad671a10b6c3efc6140a47"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testErrorImageForCardBrand: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPImageLibraryTests.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b2357c7e837af03917c19d80343e1e1c4a6bd06e04ba3f41fc2a6b06a02c7b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUpdatingObservers: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPInputTextFieldValidatorTests.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e60d007c569e8c11d2e3a48dab0dbeb9a5aa456947498881b8af420dcfc8d5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEnterForegroundDoesNotRefreshResourceKeyIfNotExpiring: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIssuing/StripeIssuingTests/STPEphemeralKeyManagerTest.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c4278c84d2d4274c04015c8ec1b6dc2c9bf87049e3374250fd75e265a2280e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testThrottlingEnterForegroundRefreshes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIssuing/StripeIssuingTests/STPEphemeralKeyManagerTest.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0252c3f7315b526608fe82832db9d7934ce721da3d4c9f4478292dd96ef2f8d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNewInstancesReportShownIndependently: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUITests/CardElementAnalyticsTests.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"421db1db9a16a49a8e89e5a8b8af9c26b8cb5377a7b28d9199340307d97783e2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTextChangesReportInteractionWithoutFocus: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUITests/CardElementAnalyticsTests.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6467df1847773cf7a04495b023fb60f941ac9927d977345dff98e0fc1e0a2018"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testValidationChangesAloneDoNotReportInteraction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUITests/CardElementAnalyticsTests.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a6929096408ec8d8f10d596494260e964acc7b87339307a7942e749d307fd8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CardImageVerification Example/CardImageVerification ExampleUITests/CardImageVerification_ExampleUITests.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a522c20a69bca2bb99f4337d2a4091f544063a4215865562d8ad69c3e4143f7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNativeNetworkingTestMode: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnectionsUITests/FinancialConnectionsNetworkingUITests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b328bfa05908b2e8f95440a98ac7aea9bfae0b29165ecd3c3368411cbd21508"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRemoveLastSavedPaymentMethod_clientConfig: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheetUITest/CustomerSheetUITest.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"6236090bc1b409746c222cbf05536b1668017c9dbf2bc608c86fe9ed34aa4032"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRemoveLastSavedPaymentMethod_customerSession: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheetUITest/CustomerSheetUITest.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fc028e6febfa359d3c3a5c525b6d2f1f2cd663e559c3c8ca2ac293c2397866"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDeserialization_WithoutLine1: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePayTests/PaymentsCore/PaymentIntentCodableTest.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58929e1b7fb8089525d1f284c892478113d39b43bd36d58315c596f704624ac"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchInitComponentProps: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Components/AccountManagementViewControllerTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3114fe57f83431a190fa7d3760eaeca05c403f2c6f98d7a43be651fbc9d73dff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchInitComponentProps: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Components/AccountOnboardingControllerTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b3b38d94fcbc5a6fae1725dd5f9a0c8dacc3a024a2a36915f8acb13e656e5d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExitNotifiesDelegateExactlyOnceAcrossExitAndDismiss: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Components/AccountOnboardingControllerTests.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf32fda91a87c826073a0ee777de400880665e66e7ec00cab8c4417bdaf6f1d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchInitComponentProps: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Components/CheckScanningControllerTests.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cbc16b5002a9e5c46c7928026452bd2ab2e5bcdb669304abcb48e5c5ccaa69"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCallbackError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Components/CheckScanningControllerTests.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48201a1dd6ca162a3e4bf7a230f2274a70c6bf451dbdf869cd404aaa091453a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchInitComponentProps: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Components/NotificationBannerViewControllerTests.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff55318b7eec4c3263eab660cd32bb78eed7b610dab5972ad8c7b4f4f3a00b77"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSetPayment: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Components/PaymentDetailsViewControllerTests.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3252a11916ce60be6626c9d8f93bdf234f33f2cbf1f55cb9c3dd81f428f67014"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSheetPresentation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/Analytics/STPAnalyticsTranslatedEventTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a7faea490ee482e3fd1d9df235890429cb2270f03e396f4f5b98eb689b3f17"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTapPaymentMethodType: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/Analytics/STPAnalyticsTranslatedEventTests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"457e9e2d6d028d89011b05bacc0d94fc8e116effec56b62f6008e749fe2d9a16"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFormInteractions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/Analytics/STPAnalyticsTranslatedEventTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b88efe1d8fa14631b76ee0a9b0549c818afe8d1cd7935f2eea8ec17b8d66521"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSavedPaymentMethods: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/Analytics/STPAnalyticsTranslatedEventTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a4c2a5bfc7e5b2b243b3ccae01032c172edeb8900ce7d74e4b0054a08d97f8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExpressButtonTaps: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/Analytics/STPAnalyticsTranslatedEventTests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b765027877a1cf4d38f6c70f963bfa010c837a4be04e4994f6a65ff0bd88aef"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAppAttestService: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/Attestation/StripeAttestTest.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c585b2bbd47067d7ed69d17565565177a9e889f0959ac833afdbec75d092392"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanAssertWithoutAttestation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/Attestation/StripeAttestTest.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"833e15835ebf87612ff175648a4c034af18033988681af5933f5330e926d779f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConcurrentAssertionsOccurSequentially: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/Attestation/StripeAttestTest.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c054b46fa84cf54317e399e18fc434cd3df2610c50068778904d112587795a57"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelEmptyStruct: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c46e1eebe0aeb94beaa2f782a1782034732d070727927b2349c6c66bdabdc2"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelEmptyClass: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8acad891f2b0bb9a4c1f112062018a2be23ca51f581511a02c39d1e5fac7db5"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelSingleValueEnum: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a90307d512214d8c97b6a235281cec787257252b6356797c40621b86e6efb2"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelSingleValueStruct: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f1de6f280bd74c8a915c3aa83ed1e5c0398643acffb46eb7fb093e96a26d32"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelSingleValueClass: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"308cc8cb67e492606c7c60cb3e0c39e832d3542974e82618ac5fbed21bc8c463"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelStructuredStruct: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d7e1a359f724ba10f380081e7fa91148562707b601212f546e376eecf0dcfe"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelStructuredClass: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e68a64fd106508d17fdd9b6139d201b6d6adccb7e3805fa793c85a4ef082b8"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelStructuredSingleStruct: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0484198d432355901c7d16dada9b2fd43f38700f9f52a2246f6200a63777d8c"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelStructuredSingleClass: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"335aa5afea85b0f90de2a093dbe04d017cdca8452803cd54903abb46e8eda6e2"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingTopLevelDeepStructuredType: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b43fbc510bdf318cadd9685bfe16e48d81dbd71ff50c2839bec25a3b5e68b1c"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingOutputFormattingDefault: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bea7498f1ea2b500ffd73f41fdcf2098b2d1b370b0cb20ebc476c3e5f5f057"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingOutputFormattingSortedKeys: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b820923d6dbdc7db258c0be9062e565ee69f1b37098889e1b4a8a52891d43757"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingOutputFormattingPrettyPrintedSortedKeys: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a80327016c9c8775da240c399502a9071e47ad57f25353605a630863e32879"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingDate: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2ca28d07030dbbd3e6bfc438698353dddd5c01b6720c0e006f219f0e1237c8"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingDateSecondsSince1970: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"576bf570228760eda571478a13cbc9147b4af1c657b3d08e69e830e4c00d4bc1"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingBase64Data: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3587fb3ff1c93d6313133f67e7cd4f3f3cc21ba78479a816a052f917233c1f"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_encodingNonConformingFloatStrings: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"371486319ede1bedb2ca3f480c43504445afff55603283acb79e376e609958f4"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfNil: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b5089612a9fafcb2e967b37c7526886ac16f3a59a4e7398d4a43e436028a41"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfInt8: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d976037d3a7d52213bc0d1561cf26ced2e70eec55c289bb1bcfd660ad184fa"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfUInt8: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"543aafa4ae7a359530f3602ed74ff8381873319ddacb20a4cb688950c1984eac"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfInt16: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"046fcf2438c1361e6dba28ff39d92e256174e432a697e485353aa7847499c8e7"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfUInt16: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d4f332fbd81d5b6c17c52a29f7598964b87cc3b986af19cdd0a9d46022c32a"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfInt32: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a0960766cc37b12250f15fdf39184c5934fff28e4484f707d45c92aa26dfd0"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfUInt32: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"521aaef0e6d050c67498aa8caaaa8c40c749dddd948d06d4ac3d26a643816ffa"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfInt64: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee13c137bc59ff55e68953b7ddf820a18664486effa2f6e93e915b07a1ca8ee"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfUInt64: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"721cf79acbeea9555bc67cade66b4afd1c16f35db53f794029dc1cb632f35fd4"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: test_codingOfDecimal: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"359f94a2490f8385c09d95a22e64ffaf8d4489d7a453eaa2d41edf4e0d4d2b49"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfString: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d319602d481c24591390eb009946bef302523a970b7f144f50340e1c124030"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_codingOfURL: No conventional assertion call was detected, and 29 of 44 tests in \u0060External\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce856a3c1c0c7ba251b3447ede51db22a99d3ccb58b5cdf6888d36130ebfc535"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testValidSecrets: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/VerificationClientSecretTest.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade3f5b23319b589c0d7086179b6488f0a7a48c7115eb7f433b383031331fcfd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDidScanCardShowsFundingWarningAfterMetadataLoads: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/CardSectionElementTest.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"30820b035b7eadf134e2e34c3abbf9d6b2c7c586f3768f5dfee252741f3800f5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testManualEntryShowsFundingWarningAfterMetadataLoads: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/CardSectionElementTest.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a9ed61aa030f9144167273bd92a847dd0e4d4c69cdb2283e0f6a67914b72f4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testImmediateActionIsCalledWhenSelectingSamePaymentMethodMultipleTimes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/EmbeddedPaymentElementTest.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3adabb3e1fdd3e7de8069a7950dd19753d31ba7f26e15255e40d28e067d75d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCancelingPaymentOptionsRestoresPreviousSavedPaymentMethod: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/FlowControllerSelectionRestorationTests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b38bfe2ecbef5227b5cd9eba86f8036127c3c12507253eb82de35fb04eefc6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCancelingHorizontalPaymentOptionsRestoresPreviousSavedPaymentMethod: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/FlowControllerSelectionRestorationTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"358e5dc7096d528b608668805a4eed2bb23616dfaa308bcfe8c38225653c6906"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAddPaymentMethodViewControllerDelegate: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/FlowControllerStateTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1a478a91c26734293d7dcd9590b7b448b1d8e3b4b7aa892cc29738919b3129"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDetachPaymentMethod_legacy: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/SavedPaymentMethodManagerTests.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ffa83124e01fcd24fe33509bb5bf471fd1d6bf755df501c33e21eff1affccf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDetachPaymentMethod_customerSessions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/SavedPaymentMethodManagerTests.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8da934436a2defb59c4bed104866d76bfb5b3c65c8829d98ced229ff06416b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDetachPaymentMethod_checkoutSession: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/SavedPaymentMethodManagerTests.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88e46d186943aa83e41c1775a7150980de68eb12699e55375bf3b3dd7d56979"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNoClickHandlerAllowsNormalCheckout: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/WalletButtonsViewTests.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"5085ee49647e23289beb51dd4efe9810a3fc89fd1c6097640914b8ef30b19b50"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test__Did_Finish_Loading__Immediate: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTests/Captcha/HCaptchaWebViewManager__Tests.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef95922088cc48866b52782d759b1705b556cc0377f3d0e893fa8cac607aaab9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test__Open_External_Link: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTests/Captcha/HCaptchaWebViewManager__Tests.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e278d2fcdff5fe786f10e6c6492e01061e91fb96026955659265576736fe53c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBenchInit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTests/Captcha/HCaptcha__Bench.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"81addab19e6b1ef34909318288eb19fb6361937723b748664a26a0c01d8f3b39"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBenchColdrun: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePaymentsTests/Captcha/HCaptcha__Bench.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ea4b5addfbd038869fb9809c1aa165dd1d6d981ce683f347ea2a9ffd758845"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): testNull: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Testers/IntegrationTester/IntegrationTesterUITests/IntegrationTesterUITests.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d28d07cfe7127f92593a79cd62ba7344bb17b635e5e8fb8ffefaebc508d30dc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAbsoluteStringRemovingParams: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Extensions/URL\u002BExtensionTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"55da5ab3be889844316abc5397b1730f3016340ba9537fbe03c27c74b56c2433"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchClientSecret: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8594099b4041a918e15be81dd1ef0ce0c0ab721a26f7a431e5a9a2ee617492"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchInitParams: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7595ca9109380a667a78b35c7cd8258dc8fe875a176fca95eb6aba9ce700e3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchAppInfo: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2fb0a5a577cc9472a2b4e2827c139f79fba08f182f03bd51dbc297d1347978"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchAppInfoWithNilAppId: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2150ffcc1507efeb3db9efe715aa5bbf858338a4755567b5852065b7586f578a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchInitParamsTraitCollection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44aa0dd93a8165ddaea75956af2bd6b74cb884ce2910de627c8c6338d698417"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchInitComponentPropsMessageHandler: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca9ce7cc2c4ca489a62373d5a45c4300694be4af44cf27e552c511ef6e7bd44"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFetchInitComponentPropsWithFunction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3293c0004580d269b3ee6e7c839d7566633025db049a9810e7b9935795234ca2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUpdateTraitCollection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"16837d13c02ac99efc44ed52f222f32446cb051b40dc0999ae68f116993d4823"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLocale: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ac49fa2c48401ea1c76e24c09863e286d455537d0d8307eac7ee799fc471da"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDispatchSupplementalFunction_notRegistered: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"256cdf28504242b5cc8bab4d47009e55a32dc8e3b4f317fdbade5403274ae3ee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDispatchSupplementalFunction_callError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"95875f93350313df602bf5914de93dc890ae35beb43a96ac7f3e0c3411780d99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOpenFinancialConnections_canceled: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c090d507eb8fd6bae217ac2fd2e77159119c88148bc4763af68cf3d75c74af5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOpenFinancialConnections_error: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectComponentWebViewControllerTests.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bca4a86fc9d17bf1110c0a29843c6ca53d7ba13b36c71e4fd7c802447c58062"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStandardAlertOkPressed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectWebViewControllerTests.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"838c0fd7dd9d6f48ea9002ddcc7589fffb2950b9251582396a6e827232fc8980"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStandardAlert: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectWebViewControllerTests.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a6b974d1e43f3b2d04b336bfc93b51148388054bee32a49c7351e6af6979a5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStandardAlertStringMessage: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Webview/ConnectWebViewControllerTests.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"2022f7018bdc279b10c13a8dbc21d1ffbbba8e53d3ceec54d94a13b583f45249"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTwoDigitDecimal: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/API Bindings/TruncatedDecimalTest.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f190fe8df4c5262ad58ac042e4735edd61e0b26d202435ab64c354883364866"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSwiftUIViewUpdatesHeightWhenEmbeddedPaymentElementHeightChanges: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Checkout/PaymentElementViewTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdc8dccb0f9fac234d6dbb239a9aa8b56eee0cb22cd6fac636eb5119a920d90"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPreviewSPISurfaceCompiles: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/LinkControllerPreviewAPITests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"884e3140ea1ac90ffc6a9c9b16bc1ccd953a20b70d0f840e4c27dbe3072c08b2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testURLCreationRegularUnicode: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/LinkURLGeneratorTests.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbfb3596c127b4e4e308025914166548ee5993cd4cf55ca8eb6e437492ff819"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBailsToWebFlowWhenAttestationFails: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/PayWithLinkViewControllerTests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb22a01bd7dc4285d4ef860902459215f1bcdb45bf47c41deaf37d7a51ba4554"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testValidationBR_CPF_CNPJ: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/IDNumberTextFieldConfigurationTest.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaab1b9c3f56fff66ca57dd41af836d05d34d388fbc2fb3892f33cc9dbdacdb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testValidationUnspecifiedType: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/IDNumberTextFieldConfigurationTest.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d1e8b664b12aabedad5494be7038fc36070f71e8ce643bebe800bfa1891125"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBSBConfiguration_validBSB: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAccountFactoryTest.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"241331c2018193f74203ee8f775904f5e3aaaa74b0b09884b1b16aeaab58792f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBSBConfiguration_empty: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAccountFactoryTest.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3f200b69fcafcf42189126b9cf105fbfa6f0208a083651ac76ad7292043092"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBSBConfiguration_incomplete: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAccountFactoryTest.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"68260eedfb55f9c31ad1c2ac805680e92949efb94d1eac66ee9bdd175bb866f6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAUBECSAccountNumberConfiguration_validAccountNumber: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAccountFactoryTest.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8152a1885b80aaa71bff46bfd890f5b5e30314e77fc1dd75e32766a4df7da45"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAUBECSAccountNumberConfiguration_empty: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAccountFactoryTest.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"183f79302fd36cb040087a85be800109540e9a1c8b0aa4a6f66a0e5bf8afccfa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAUBECSAccountNumberConfiguration_incomplete: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAccountFactoryTest.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b18bc176f20ba212882cad42af78078c59fd26230ed47b1f1b9b1e9f4cc2960"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNameConfigurationValidation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAddressFactoryTest.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e67c18aa83751f1f4ddb3fc33773eca00005565f3ed2d1f1a3e34d17da1e923"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEmailConfigurationValidation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAddressFactoryTest.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a86917ef9c014fa59d3f6f3e3a3d7e11f7cd8492e6b3f6c90d8440f4c395411"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPhoneNumberConfigurationValidation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAddressFactoryTest.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad87ec4171e90950150707bf13c2da1fc31f6a742d810b662826709ea2c2ec40"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testApplyFormat: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldFormatterTest.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c829778e063060e0fd1c6f4322f999f5927e4bc49259ab6eb22661b5d4f0f6fc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNoLaggingFormatCharacters: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldFormatterTest.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52de5e6ffd9fe3d4915c058e8dd2ec4130ecfffb0b4c1916de250c80305ba87"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/installation_tests/size_test/SPMTestUITests/SPMTestUITests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca460589c0122d72bc135555012643b0de32040af7d98480a7e9de1620ea5ac"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/installation_tests/size_test/SPMTestUITests/SPMTestUITests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b995c40f7f571ce4a20ea2cdf41758ae5b9f8e1e69bc7ce87392c373e673867"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUploadImagesForFrontSide: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/Coordinators/DocumentUploaderTest.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa44687c4f22b1de89d6e3fdebfd646bcac38163697d376654dc2d0e30300f3e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUploadImagesForBackSide: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/Coordinators/DocumentUploaderTest.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29c2bda05f6dc967426768ea26088c8c6f70d904c6e6d71a6cc67b106cb2bd1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWebDelegateCallsCompletion: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/Coordinators/IdentityVerificationSheetTest.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"3436efa9def6cdcfe550e282f2d262cc956bdac5453540da7625269c283eeb1f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNativeDelegateCallsCompletion: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/Coordinators/IdentityVerificationSheetTest.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77dab0c7e69eff84a5ef007c5e9f30c9d740fc55fd1e5589c549b2668a72ad3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNextViewControllerIndividualFields: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/Coordinators/VerificationSheetFlowControllerTest.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8914cbc19b722617f6626ff230eb118b397563a2e7a9b42c680ee10a1b7cab56"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNextViewControllerIndividualWelcome: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/Coordinators/VerificationSheetFlowControllerTest.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3d11cff34881fec67ac8a1c7fe7fb241de5b82ab7ffe88fb6b5764dbe8e138"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInitialState: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/ViewControllers/DocumentCaptureViewControllerTest.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e997bbc1286712cff82833125a0de1cc94a442c4ad6d784331da267b3463359"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTransitionFromInitialCardFront: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/ViewControllers/DocumentCaptureViewControllerTest.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6364aa1a7f7dbe5bd6291fe9dc0ce06eba2588e471cf952e1a266fd58cdd6d40"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTransitionFromTimeoutCardFront: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/ViewControllers/DocumentCaptureViewControllerTest.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"b292f5d2c921f32f9eacc4960d89ecbc9b474d67cdbd18fcaa438325c26deb39"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTransitionFromTimeoutCardBack: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/ViewControllers/DocumentCaptureViewControllerTest.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b12dee25558f9bbcdfdbc1d0721ff16eecf285951cc5c76e5a5ad267eb19c60"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTransitionFromInitialPassport: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/ViewControllers/DocumentCaptureViewControllerTest.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc1156ad1af5641f2d43f3f6342b112ce9c7cd48e12e821c49aa2e8dc870617"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTransitionFromTimeoutPassport: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentityTests/Unit/NativeComponents/ViewControllers/DocumentCaptureViewControllerTest.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5dc87df10850141776a36b18e1bee11812fd7e3f655a351f5b02015a7161c2"}},{"ruleId":"D10","level":"warning","message":{"text":"Test project verifies nothing: Extensions: No conventional assertion call was detected in 1 of 1 tests in \u0060Extensions\u0060 \u2014 the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnectTests/Internal/Extensions/URL\u002BExtensionTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c84768fff9f8660b8ca77671cb3d5a6be0bd6d02f638639c114ad919b8a5537"}},{"ruleId":"D10","level":"warning","message":{"text":"Test project verifies nothing: IntegrationTesterUITests: No conventional assertion call was detected in 1 of 1 tests in \u0060IntegrationTesterUITests\u0060 \u2014 the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Testers/IntegrationTester/IntegrationTesterUITests/IntegrationTesterUITests.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0517e211e083c9501dcf64a4a67ee0977fa74e9bc300cd4c4765a4c9c5ec2445"}},{"ruleId":"D10","level":"warning","message":{"text":"Test project verifies nothing: PaymentsCore: No conventional assertion call was detected in 1 of 1 tests in \u0060PaymentsCore\u0060 \u2014 the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePayTests/PaymentsCore/PaymentIntentCodableTest.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d856ab1d5cff0f0fbb77e6a68096599e110b88134599fb5f430f227e061533e"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: ohhttpstubs: Dependency \u0060ohhttpstubs\u0060 is resolved in Stripe.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060stripe-mock\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2bb714cd6fd2bee9efe8e9cd2401454a0987b52cd49b92533d80d4df5eb0bab6"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3c6d56c5f69fdaf8eef9c9d135adc8dc5aee0f465d37ce0f6f99ad776cfb44ff"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f03f33beec2dac2aff459fa35b20a343c1e5201cae7d151262f115094321213"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fea245aa45c3631afdf962fd8308817b550fa7e354da5a847749d076f0dadc05"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c60901bcc999794e24eb00670911c83472090e2e376be46d916a9b3a9bcadb4d"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D14","level":"error","message":{"text":"Banned license: colorize: \u0060colorize\u0060 1.1.0 is published on rubygems.org under GPL-2.0, which this policy bans, and it is in the RUNTIME closure of this repository\u0027s Bundler manifests \u2014 so it is installed by everything that installs this repository, not just by its test harness. Replace it, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"748cea6e7e079e4854e1e1c1bf62ff4dcaf8967fa00a615f59e6593fecd659c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift changed 51 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in CheckoutController.confirmCheckoutSession at line 429. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dfca48f243c40f14a16e9bc115e9012791e8406db927039d265ddf27a3d23e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in PaymentSheetFormFactory.makePaymentMethodForm at line 241. 1 of those changes was a fix/bug commit, and the other 30 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50b80b244931661cc60665bc88f3b3922df79cafa91f1ef04467d311c0d96ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift: StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in STPPaymentHandler._handleAuthenticationForCurrentAction at line 1111. 2 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57fca40a1766428f7c1a46b9fd7b514ae5d3e8f6a3c00c094a9f17d17d66125"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift: StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in STPPaymentMethodType.makeImage at line 219. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodEnums.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"83daf3f4692104be27878019264eefd4a45364248bf1a52e685c6cb8adeb7555"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift: StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in STPPaymentMethodParams.init at line 1349. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bcba4beff90ed2d945bc6fa28e454c72cb8ad47e4af87c1bf832bcc5185e5e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in PaymentSheet.confirmAfterHandlingLocalActions at line 238. 1 of those changes was a fix/bug commit, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"f899f739820cc42f0c31622cc8185a28281fffe17955f3dbac1f00bccfd852e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in EmbeddedPaymentElement.performUpdate at line 180. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e7b07940145a5f57bbb86eec8f9fe37ee7263dd6cbf39bb6b7581dd3579892"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in PaymentSheetFlowControllerViewController.init at line 182. 5 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2492b335fee6e1b4a6d0645118ec4bcb58c98d4b3b82c4dc1636c5eab64469c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift: StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PayWithLinkViewController.launchFinancialConnections at line 629. 1 of those changes was a fix/bug commit, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f76e531509f03af607e8e5e61e3aa3c26cd57a4ad5dcad545c5a966cb647b8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in PaymentSheetLoader.load at line 60. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5952d6a76ed5248efc407b0878fd5a41feb74f32c7dcd551bcdf8575f2d72f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/CryptoOnrampAnalyticsEvent.swift: StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/CryptoOnrampAnalyticsEvent.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in CryptoOnrampAnalyticsEvent.eventName at line 68. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/CryptoOnrampAnalyticsEvent.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/CryptoOnrampAnalyticsEvent.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31565b49b303b7fa2f688a8b644b92ea43bd41088a2e9dbe43245b723538005"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in PaymentMethodFormViewController.handleCollectBankAccount at line 466. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cfea79f9dd5da6abed1dc16ab3675db4d691de4891acb93962f4bf799187f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift: StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in STPIntentAction.decodedObject at line 353. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef061b213a8bf6869e3ac338eddc5e425cb9b18e4ece11791775f78d3be9d2f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripeUICore/StripeUICore/Source/Elements/Factories/Address/AddressSectionElement.swift: StripeUICore/StripeUICore/Source/Elements/Factories/Address/AddressSectionElement.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AddressSectionElement.updateAddressFields at line 354. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripeUICore/StripeUICore/Source/Elements/Factories/Address/AddressSectionElement.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Factories/Address/AddressSectionElement.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"374c1c7e9373165299ef83eeb9ea296a9878f849afa9afdc53bc9dcc6e4f8c4a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampFlowCoordinator.swift: Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampFlowCoordinator.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in CryptoOnrampFlowCoordinator.advanceToNextStep at line 244. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampFlowCoordinator.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampFlowCoordinator.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"138521d7b67fec44b66ee2391c9c68cf7bb6e3545850d91c990c3585ce5fe341"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampExampleView.swift: Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampExampleView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CryptoOnrampExampleView.body at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampExampleView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/CryptoOnrampExampleView.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1bfbcb1fe490346be0cf6ff85dfeefc9492f66ba41b1af321e5027b99edde7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetExampleAppRootView.swift: Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetExampleAppRootView.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in NavigationDestination.displayTitle at line 138. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetExampleAppRootView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PaymentSheetExampleAppRootView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3e66d2a4e46b20bdd1b96ce31dd0ff61fa36eda5f7309de10b3ac86eda17e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Example/CryptoOnramp Example/CryptoOnramp Example/KYCInfoView.swift: Example/CryptoOnramp Example/CryptoOnramp Example/KYCInfoView.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in KYCInfoView.body at line 186. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- Example/CryptoOnramp Example/CryptoOnramp Example/KYCInfoView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CryptoOnramp Example/CryptoOnramp Example/KYCInfoView.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9617481c4bf0d6af984f97d690e45e065a8bf69f2bdeb736d18e766f970510"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift: StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in FinancialConnectionsWebFlowViewController.startAuthenticationSession at line 153. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 17:57:13 \u002B00:00\u0027 --until=\u00272026-09-30 17:57:13 \u002B00:00\u0027 --full-history --no-merges -- StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"700f40b5f3174a9f19182e1174f1811a015d835caca6a731024eec953b747425"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 16 significant file(s) lose their only recent owner: StripePayments/StripePayments/Source/API Bindings/Models/Shared/STPIntentAction.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/TwoOptionSelectorView.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Currency Selector Element/CurrencySelectorElementUIView.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader\u002BLink.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/ExpandableDetailView.swift, StripePayments/StripePayments/Source/API Bindings/Models/ConfirmationTokens/STPConfirmationTokenParams.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/FlowControllerSelectionSnapshot.swift, StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedIconView.swift (\u002B8 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ffdab9634bb8543adabde0ad773d55ffd9e5caed9492ba82542af58a676a6696"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 11 significant file(s) lose their only recent owner: StripePaymentSheet/StripePaymentSheet/Source/Helpers/STPCardScanner.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingPromotionsHelper.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Shipping Address Element/ShippingAddressElement\u002BAppearance.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PaymentMethodMessagingElement.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/RowButton\u002BPaymentMethodMessagingSublabelView.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMEUIView.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/BNPLFormHeaderView.swift, ci_scripts/changelog_utils.rb (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"237cefe00ce32551664959badef7e4db6d9447c7af2c3ad12e6d928790db30ce"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 9 significant file(s) lose their only recent owner: StripeCore/StripeCore/Source/API Bindings/STPAPIClient\u002BFileUpload.swift, StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/HTML Confirmation/HTMLConfirmationContentViewController.swift, StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/String\u002BLocalized.swift, StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/Concrete Error Types/AppAttestationError.swift, StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Errors/StripeCryptoOnrampErrorRenderer.swift, StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/Compliance/ComplianceIdentifierType.swift, StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Verify KYC/VerifyKYCInfoRowView.swift, StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/API Bindings/KYCDataCollectionRequest.swift (\u002B1 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"28906e7441de7b39a7a681237ec6f01e16e479518d6ebbcd29382c39d35fde15"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 7 significant file(s) lose their only recent owner: ci_scripts/measure_latency_difference.rb, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm\u002BLink.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BSession\u002BDebugDescription.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutSessionPoller.swift, StripePayments/StripePayments/Source/PaymentHandler/STPAnalyticsClient\u002BSTPPaymentHandler.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Payment Element/PaymentElementUIView.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/AutoComplete/String\u002BAutoComplete.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8028abb9a96249382929966a5d585df96daaddb1a801b2d101535c9aaaa303e7"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #5: If anonymized user #5 becomes unavailable, 4 significant file(s) lose their only recent owner: StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift, StripeCameraCore/StripeCameraCore/Source/Coordinators/CameraSession.swift, StripeIdentity/StripeIdentity/Source/NativeComponents/Views/HeaderView.swift, StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/ImageScanner/FaceScanner/FaceScanner.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"04992cac55d71b3ba00b26354989a42d4642b9d216549613132e4275c18ceb12"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #6: If anonymized user #6 becomes unavailable, 4 significant file(s) lose their only recent owner: StripeUICore/StripeUICore/Source/Elements/SegmentedSelectorElement.swift, StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Address/AddressAutocompleteModels.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Express Checkout Element/ExpressCheckoutElement\u002BConfiguration.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Express Checkout Element/ExpressCheckoutElementUtilities.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3590a0496720063e59ebe8d20a12d4f8eb7f477fad26120dc1388c4490fc4ed1"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #7: If anonymized user #7 becomes unavailable, 4 significant file(s) lose their only recent owner: StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardViewController.swift, ci_scripts/build_documentation.rb, StripeApplePay/StripeApplePay/Source/Extensions/BillingDetails\u002BApplePay.swift, StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPPostalCodeInputTextField.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"653d79a2243d751f0085e1464192cce9ae1e1bdb2737e344c19f410d1b11b2ce"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #8: If anonymized user #8 becomes unavailable, 4 significant file(s) lose their only recent owner: StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentLogoView.swift, StripeFinancialConnections/StripeFinancialConnections/Source/Native/LinkLogin/LinkLoginViewController.swift, StripeFinancialConnectionsLite/StripeFinancialConnectionsLite/Source/Controllers/FCLiteAuthFlowViewController.swift, StripeFinancialConnections/StripeFinancialConnections/Source/Common/FlowRouter.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ef9270cb21a8a97481dffa4f48fe93aefe34ce335f67b3f7437f13cce81ff043"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 5 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (67 single-owned of 799 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 799 of the 1602 production source files in this repository met that bar). They are anonymized user #9 (2 file(s)), anonymized user #10 (2 file(s)), anonymized user #11 (2 file(s)), anonymized user #12 (1 file(s)), anonymized user #13 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(jaimepark) Internal structs. Find better place \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CardImageVerification Example/CardImageVerification Example/View Controllers/VerificationExplanationViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2acfb74ae97439d7be238b2a4273515af5e949ce139a50082ce211a5899504"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(jaimepark): Make CTAButton with activity indicator an encapsulated object instead of extending uibutton. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/CardImageVerification Example/CardImageVerification Example/Views/CTAButton.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1a8595ebd910ba0589039ca5b49231afbfc612b3b7ea783a30f68059a684bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mats): Investigate failure and reenable. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/FinancialConnections Example/FinancialConnectionsUITests/FinancialConnectionsUITests.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b389259222a1104d33f9fb840882b657c6d30eecc4b20e7fcb6e05b9cee00b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ccen) enable phoneOtpContainerView when backend adds support to PII \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/IdentityVerification Example/IdentityVerification Example/PlaygroundViewController.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10fac0914f485436c7dbfd90c74374577eb2bb9536d2d9f175639b514aa46b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: extract animation curve from \u0060keyboardAnimationCurveUserInfoKey\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Non-Card Payment Examples/Non-Card Payment Examples/KeyboardAvoidingScrollView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b4c078666522223e25e31761b92c19fd851e59d83bb4c5a64bda2e86f0f7fb"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack, should do this in SwiftUI \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee4702038ea81cd06f2e15568b6ece032547af3f3ac95094aabc7fb938cb840"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack, should do this in SwiftUI \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c8012989ffa4137d10e9312007b05a1d9f4ae7cfd1c08c14dc7e5430704421"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack, should do this in SwiftUI \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea3fa51589fcaace73385274af5c3ffb6f6cfeb0c25e14056ca3e79b8ec1acc"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to ensure we don\u0027t force the native flow unless we\u0027re in a UI test \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"21333cba58090ff584a7a3f4a1056108ee80847d8337c4dcc4306d7f535edd26"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to ensure we don\u0027t force the native flow unless we\u0027re in a UI test \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"90362d8046e78ce5d1f922e7cffd25a1f792f72c021948c51a3a7e66b37a5efb"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to enable incentives in Instant Debits \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/PlaygroundController.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc02031c4ff1e4731d56fe58c648fba2fffe48ab724efc3cd855988ed4540ad2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://jira.corp.stripe.com/browse/MOBILESDK-2577) Show client-side confirm, not server-side confirm."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/ExampleEmbeddedElementCheckoutViewController.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3ec0a746c86e75cd2deff4b946ee328ecf41edf840d98be7780152b773946f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor this to make the ephemeral key and customerId fetching async \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheet Example/CustomerSheetTestPlaygroundController.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bbae1601aaf7fefd109b326feacbb5bffd888fd2f669a8afe9a3521950a892"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hacky to double tap but fixes transition if software keyboard is enabled \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetLocalizationScreenshotGenerator.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6b5f4111f0206e0daab61402fc424a2bb2e5fc6087e82181914078114fd9f2"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hacky to double tap but fixes transition if software keyboard is enabled \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheetLocalizationScreenshotGenerator/PaymentSheetLocalizationScreenshotGenerator.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb36943c446c20cded5934f010fae9b7b85bd4a3acfc3109f7d1f5ffbd47862"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter) Use the vertical mode to save cards when ready \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheetUITest/PaymentSheetVerticalUITests.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e7c1db7587239cdf3768505b7e0f28da7c62c73f3c3da5712d7a90ab0458c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter) Fill in embedded UI test steps \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheetUITest/PaymentSheetLinkUITests.swift"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc9688dafcff1064d87ccd026683668e54a3d097ea4a8f69f0b284f3d2b78d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //    TODO: This is disabled until the Link team adds some hooks for testing. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheetUITest/PaymentSheetLinkUITests.swift"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"023adbd79d00bf387076f595cd08ca23891c8a05b35c62b46413546b6b4066a2"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack - we do this twice since the first tap only dismisses the keyboard \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/PaymentSheet Example/PaymentSheetUITest/CustomerSheetUITest.swift"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e947e977fe36d01036b24596cb123c5958e4f707ab39039b8475d26981b527d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mludowise): These should get migrated to a shared StripeUICoreTestUtils target \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/TextFieldElement\u002BIBANTest.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2596a767d0449f43e180ed20c13fe58311a6cfc3cfec0250e78e100e0c08b633"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mludowise): These should get migrated to a shared StripeUICoreTestUtils target \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldElement\u002BAddressFactoryTest.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd56551124d4deb9b85bb69a3ca40ad965ed77765776350185560eea00c937f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: regenerate these fixtures with a fresh/real PKPayment \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/STPApplePayFunctionalTest.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"51036f8b2157724de66c384f3afa2ece76819f826da9243787138b6dbd5a5500"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //    TODO(RUN_MOBILESDK-1848): This test is broken on iOS 16, as it invokes the pasteboard permission dialog \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe/StripeiOSTests/OneTimeCodeTextFieldTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f932574d8ed5b3deeef1646397a3c7d63e9cd2f5d6a76689c702f28e4a8a9b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: (MOBILESDK-467) Grab the actual error from the SetupIntent"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3156c8c289348fa440cdfd2b51beeb6a57d8d1bdeca3b6b3c3259a4cc55100"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: (MOBILESDK-467) Grab the actual error from the PaymentIntent"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1ffbf764167e3be3e818c9ace1bdb1b2036f3d2cd55da5c3f9c790745191d5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: (MOBILESDK-467) Add modern bindings for more SetupIntent fields"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/SetupIntent.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c5c5812f642a24e989f9ec844550f105c44d6a3659e93f63efb536fbb45f2d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is @frozen because of a bug in the Xcode 12.2 Swift compiler. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/SetupIntent.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"67984eb93cbb25b91eac411025ff50a08699f8a5b141f742447e083666a42e65"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is @frozen because of a bug in the Xcode 12.2 Swift compiler. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentMethod.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc09ec97034bec73253974ad6cfbd3aa4be2c3bf8dc5db9b86eabd2667955ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is @frozen because of a bug in the Xcode 12.2 Swift compiler. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentMethod.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f8a485e8d49e5d2e8e57e28645a8d04ead796ccc2550c7e5e9d3652e7cc13d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is @frozen because of a bug in the Xcode 12.2 Swift compiler. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentMethod.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4e6ca748289a83a4d036f4825fd9997da67b224cb16a44289cdddcee72c6ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is @frozen because of a bug in the Xcode 12.2 Swift compiler. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntentParams.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3352801ff7757e27c3d4fed0d385e25f60830390fc89716ac1d847918307ef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is @frozen because of a bug in the Xcode 12.2 Swift compiler. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntent.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7c8ff67d467201ea26030917180ae81b101514524a1189af95abaa05feac9d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is @frozen because of a bug in the Xcode 12.2 Swift compiler. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntent.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"1328d54612c66cd8c5da96b59f6b3ed6d3722c0e0aab2920931b72745de1dbd5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is @frozen because of a bug in the Xcode 12.2 Swift compiler. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntent.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc178aab0a2451e8df6b3057d40c0d532cdafb8bc02fb7de2d59f94be40a803f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: (MOBILESDK-468) Add modern bindings for more PaymentIntent fields"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntent.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb713b249c1427b09953e9921bf99ba8d3e3501e3ecfe18f5522b7b3258f164"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Will be replaced with \u0060formatCardNumber\u0060 in future version \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/CardUtils/CreditCardUtils.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9b15464270fe16a8bdf9709cae8d56de3b8be72b310169e6837066b8b504e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Added extension to make older network changes available, will remove in future version \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/CardUtils/CreditCardUtils.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41fead95953ce503f638c332314f24a8805294f7f8fce091c1bca8910777cb2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(stk): Implement this later \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/OcrMainLoop.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"73abfe50867b7f0f90bdbe957f59b316025cfd19d7e3d751f272b27e83872cac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(stk): this is a hack to deal with the case where we are finished \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/ErrorCorrection.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a467cb1044c7b2d73271d0812073758ef16ebdb8cedd6553a5ee00ac6b7eb68"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(jaimepark): make sure this works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/Extensions/Image\u002Butils.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb00e2083ab91d15f334da15d362159ad28920d5af1a1d50e80d0dc28a15f383"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Fix This \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/MLRuntime/NMS.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc869f263a6f933ace1c9af8caf297afe39bceb0d22138d656cc18dedcd8f95"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(jaimepark): Refactor \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/Torch.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49bacee323848855cc8009e3eac729ba7047bc3a9c18debad0f126bee5ebe9d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove this and just use stripe\u0027s main configuration path \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/ScanBaseViewController.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"661b3b723d2a0e3c2017dc7fc86d40484e6aed9b48904248ef04c3eebebc4bad"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hack to work around having to change our  interface \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/ScanBaseViewController.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"07dafb2dea04a05f593f3c868f37cb080bb5412d76c6075577183ccae0bd7f8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(jaimepark): Consolidate both add flow and card-set flow into a single view controller. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4719bf12a3db60e844cc31f8e352a45551f72b392c2ded89f42c8ddbeeb9436"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(jaimepark): Change view controller type after consolidation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"34afa60ca4d4951bbf42f940fc2b324f6ef47cd892c9012d82aa84945b33a63d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(jaimepark): Put card brands  from \u0060Stripe\u0060 into \u0060StripeCore\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardViewController.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d183ebf70445a7242f19176d3cbb3c91815120cc6db21e2d84a0f2835c1c708"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(jaimepark): Update text ui with viewmodel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardViewController.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e8bf267539dc91e2b2d5bf79dd73fd8e1eefaa5b6aeaafad2a0108fc5860d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(jaimepark): Remove on consolidation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/VerifyCardAddViewController.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0356f58e8f79111cd4ddeec1b6f6a11ab14f3fa096dbd050ec4cc9e53447df7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Run verification pipeline and report back \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/CardScanFraudData.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"97716cb2d0049387ba0c9ca7a23dc89c2cee502724335028ce3863737abc316a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Replace this with writing the JSON to a string instead of a data \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/Api/STPAPIClient\u002BCardImageVerification.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8b68347bae79eee3903aee0111670d99f7cf5813bb5d249e08b50baaadea50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(jaimepark): Update conversion methods to calculate based on only AVCaputureSessionPreviewLayer. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/Card Image Verification/ScannedCardImageData.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c96a6dfa8783f681870e4b224bac8fd0694ab4e445d0ea92c162846cc6ca67"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(jaimepark): Resize with aspect ratio maintained if image is bigger than 1080 x 1920 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/Card Image Verification/ScannedCardImageData\u002BVerification.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c33790c7446cdc2cbe434dc0d2118f8c2f357d1c6bcca6bd4075ee3716997b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(jaimepark): Add api analytics client as a param when integrating Stripe analytics \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/Card Image Verification/CardImageVerificationSheet.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"490cc9fe8891800bd6b870c11656adcede50f0bf926a81cc80d8a0b3eaf5f5f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(jaimepark): Link public documentation for CIV intent when ready \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/Card Image Verification/CardImageVerificationSheet.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fdc423195a8b9605510271f71b9cd8e4fb57dc943b50cf9e3e62c32bf28211"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(jaimepark): Create controller that has configurable view and handles coordination / business logic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardVerify/Card Image Verification/CardImageVerificationController.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1c86fd1dceb870d0491c99a7c3bb47e5101d1502eae04852530de9b7a878d0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: CAUI-2844 Move to encoding FontSource directly instead of using a string."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/CustomFontSource.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"099757cae856b747b47594c5d2ee86a870da9d072d84cd66be331b8e201cef63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: MXMOBILE-2753 Move this to StripeCore."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeConnect/StripeConnect/Source/Helpers/CSSHelpers.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1c73e75894d4d7ca1b5579655df769b510082ce8fa2a4e10609bd1afc5f222"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Delete this, dead code \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/API Bindings/STPAPIClient.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ba8e642b44efe4cc4dd264d2261c50fb7356152e6621acb3c1a2572018f645"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(davide): We\u0027ll want to move these into StripePayments, once it exists. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Categories/NSError\u002BStripe.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ecef305b7eb24b5ab00427641f7b97a4c0f80748fc1df8eea13625b463c820"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: https://jira.corp.stripe.com/browse/MOBILESDK-3965 We\u0027re dropping some info in this conversion w/o http response"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Helpers/STPError.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"374e68ac5fc27e257f20846e57292e242bd41ff8d34d07be02082c1c626fc77e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor. A lot of this can be replaced by a lookup/decision table. Check Android implementation for cues. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Helpers/STPError.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"df94993d2b67d48ef488e082549c77c889951e7b1d0a56b2f37a3e56bde54dca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(davide): This doesn\u0027t pass on Darwin Foundation, and I\u0027m not sure if it\u0027s necessary here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a0fdb9731909140d0ed905d48d7e7bc03fe6116fbd1ad1e13412f5dfbcd447"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Import from %S/Inputs/Coding/SharedTypes.swift somehow. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2a9e2d76c177ce98a54ff65a140cd549e04d87f2edb6a1defe5af4c9555164"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This property is present only in order to test the expected result of Codable synthesis in the compiler. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCoreTests/External/TestJSONEncoder.swift"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a833cf430db042e57399e053f23d2dec165175931e8242c2cf37d955d30c8fe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mats): Add support for instant debits. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa6336c8fe70424e563d0f4d3e2dbd0d6ac6e4f1feb7f23d4d3746def4ad1e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(kgaidis): move this to StripeCore \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerHelpers.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54426d576f5731f281741c4e1572dbeb0e7b30f7cce8827ca5f6f3677a1f10c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: once we localize, pull in the string from StripeCore \u0060String.Localized.tryAgain\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerAccountLoadErrorView.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45b101cd9b7620da98066d855c4cbd03936cfe14a89859eca07a4edc6db85dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(kgaidis): check whether its fair to assume that we will always have a consumer sesion here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkSignupPane/NetworkingLinkSignupViewController.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebb873879c929fb31d35fe7c0e8c5870e942ea7ef7aeb9e864b9cf7d37eb074"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(kgaidis): discuss this logic w/ team; Stripe.js is constant 0.3 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkSignupPane/LinkSignupFormView.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc7de10f41d32d6c643418a1666000932376e7387b094e2096990c568a3a7fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace with UIButton.doneButtonTitle once the SDK is localized \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Success/SuccessFooterView.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cde938891d87b2229d56c271364090222f1147167f6f40b99c9e515069644b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: once we localize use String.Localized.close \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/TerminalError/TerminalErrorView.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2721fc8eabdbed5c615b6e3c94656ff419a642860aebf8bba79f1cafc0515e3f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mludowise|IDPROD-2542): Make non-optional when native component"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/IdentityVerificationSheet.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cf22ccdc23107d2b77c1a0682a7f5c44aa9ea2a49575832fe8b4ce5fd93fcf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(mludowise|IDPROD-2542): Delete when deprecating web experience"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/IdentityVerificationSheet.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"da16835402853088b3046540509cacc0250e8b5b37368c4d1446849857c7a083"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mludowise|IDPROD-3269): Encode additional properties from scanner output"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/API Bindings/DocumentUploader\u002BAPI.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2d88f9aa17967e8b70970d0c8df5620ff1035656f683d7163d5b362326c1ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: collect historical data and update the threshold from server. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/API Bindings/DocumentScanner\u002BAPI.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7396e735b84423609cc421d7c80659065ba3379caa5c32e38445477de250ed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// - Note: TODO(IDPROD-2542): Delete this when when native component experience"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/WebWrapper/VerifyWebURLHelper.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"95779e892d7e18ee3f6c1f3077a8e4237ecf1bf067ff73159a01192b3cc86c20"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //                TODO(link): Fix instant debits \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Helpers/PaymentSheetLinkAccount.swift"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdf948ab8c2e66084bd6509476d178596c599099816fe8320aa20cd7e93863e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(yuki|https://jira.corp.stripe.com/browse/MOBILESDK-309): Refactor STPImageLibrary\u0027s images to live here as well"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Helpers/Images.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfac4ba878d689aa0ff2cf553cbc54019df1bc82d2f8204d397e68e61920daca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: https://jira.corp.stripe.com/browse/MOBILESDK-2604 Refactor this!"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Helpers/DownloadManager.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1932c48e185baf02336d24812948b66ef4af48681b37f96003daa73919e51856"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: https://jira.corp.stripe.com/browse/MOBILESDK-2604 Refactor this!"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BInternal.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02f4ac7a48de519def99fe4b3cb224e27c77e341510df39e7f52bf212f13338"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Remove this once the server can construct no-PaymentMethod \u0060CustomerInfo\u0060 entirely \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/STPAPIClient\u002BCheckoutSession.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e7718dc4fb90b1c24d5e0bad5f3c9920b25194812211341589e2ee273a46f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ramont): Remove this after switching to modern bindings. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/STPAPIClient\u002BLink.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cd23ac9b7b37dace7670d39fb478669426520da53548adb047235900aeb110"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ramont): investigate why this returns optional \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/Link/PaymentDetails.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b2545f03db792d0ea8c3b6115713b102f2f7b21ee4122e4f0d30ea6a280bca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(joyceqin) Re-enable as part of the ECE workstream \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/API Bindings/v1-elements-sessions/STPElementsSession.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2901c620bd07902a029e52fdb4aaac7bf133c2d70b6e6c31cfeb7a90f0a79609"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(link): revise layout margin placement and remove conditional \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Components/PaymentMethodPicker/LinkPaymentMethodPicker.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"28db643aa0c1119fe65f66832805dd8c8693feb687cdb76addbf123d1662a189"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(link): Not yet implemented. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a32706f3bc0d546ce236c16e26fdfd35ba91cd82d2356cb9b3121792a206c23"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(link): Replace \u0060STPPaymentMethodBillingDetails\u0060 with a custom struct for Link. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Elements/LinkPaymentMethodFormElement.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"673e2a3ef7763556d0ba355400aa7c200c793dfad473113a18866c32720f1db3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider adding the activity indicator to TextFieldView \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Elements/LinkEmailElement.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f83292106ae6ea350f3dd74fc0b27699b0656549b7bcbe8a4f2e596745793a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ramont): Graduate to StripeUICore. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Extensions/FormElement\u002BLink.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2546bc1d0865579f70e88f56c5b0345943c9304257a80198b5189f7443b9985a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Since success can include cases where we *don\u0027t* look up, we log \u0022look up complete\u0022 even when no lookup was performed - is this intentional or desired? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Services/LinkAccountService.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"379c4f4d68f45e04a5ba488e3002662509721374237a9bc6b4808a7fde6ea9aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ramont): extract common code with \u0060LinkLegalTermsView\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Views/LinkMandateView.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d8642224287e015d17de254f7958f0437dd8b840dd2e2fff60298cd855d8f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Revisit overall pre-loading approach to make this work for other payment methods \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a714eebd219887d9818cf1f75ad814d2e5f1b60b65b371ad3e2204a55ac71c9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): Remove assumeIsolated once presentPaymentOptions is @MainActor (blocked on new FC API designs) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFlowController.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"0759a977a78ad6e620bfdae3e3757b64214d8b4356e0025ace49d264599a25ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(MOBILESDK-864): didCancelNative3DS2 is not used in FlowController"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFlowController.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f36acb0e393e04c3d78aa73154c9fed6e9a9825f0262492ed2c429df1114b59"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(MOBILESDK-864): didCancelNative3DS2 is not used in FlowController"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFlowController.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ad89ae0b557f756603baa4dc2a354fda7a007386e0c8769ccd3ad442cc785e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(MOBILESDK-864): Refactor this out."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFlowController.swift"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"8807525a2908a92e510e327827aff58862abe597d1875c1b7593b2e41d9c7226"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: \u0060ElementsAppearance\u0060 doesn\u0027t have a primary button corner radius. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetAppearance\u002BHelpers.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f3a65caf74c5cd89f514559bd3aba39d37622ba418d8a62f73794774baa349"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: intentConfirmParamsForDeferredIntent is bad: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d393cf3918c7e4e443ffda473e6a1481ad5c85179ccfac3987e40329836199ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This only looks at client-side assets! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentOption\u002BImages.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d352a0ce3caec82df485d4dcb9f14cbe64e60634fecf07b8f9f1ae79f20fcf21"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO make default param \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentOption\u002BImages.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"400d430c0277cb2d9069f5f772f6ff7dcb85998af83d906dbf1a52853fbd8369"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor this out of PaymentMethodType. Users shouldn\u0027t have to convert STPPaymentMethodType to PaymentMethodType in order to get its image. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentOption\u002BImages.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d12bf9b0b533d4df5944c87447e8ef4f239bbe725d81d9a14a631b0b5ee784"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor this out of PaymentMethodType. Users shouldn\u0027t have to convert STPPaymentMethodType to PaymentMethodType in order to get its image. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodType.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a609271231791b3d7329dcd70d92a1373fa9ef362f7c2c0bf1f5291d9ac5cb3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(RUN_MOBILESDK-3167): Make this return a dynamic UIImage \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodType.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa6ffc6919f5c4b38e9d48063497e3351e709e78954610601b9673afd10c769"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO This should depend on height so that velocity is constant \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/BottomSheet/BottomSheetPresentationAnimator.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebff3e62f2406eac5b4747951e7d7e45d94603cbe331918ce4afb1fd9d12708"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter) Get Apple Pay working with automatic tax \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/PaymentOption\u002BCheckout.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5089ad8bf4ad2ffe99397fecec00d81f57ae0de591c40d275d6bd613c415b81"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Delete this when CheckoutSession confirmation no longer uses \u0060PaymentSheet.confirm\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutSessionBillingAddressUpdater.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"065062ee1362ec7446c079c96f27cd65782f9b0864f9a98b86c1a2eaec05d0d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter) When migrating to the CheckoutClient API, stop sending country only and send nil \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cb3da1e81e350385d692ec77e9e6b6323d24e0c782344ac139498e7415b392"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter) When migrating to the CheckoutClient API, stop sending country only and send nil \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutController.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"f612e0e161c8f6b60533528964f4ef469cb906b98620efe85dffa5dc476945f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle multiple shipping rates from the session. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutApplePayContext.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ee3d923afbbd323fb369997a09220abb2ae2a2322a2270b89438b19d495571"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Wire up coupon code handling. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutApplePayContext.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae89911e61fe57c207a2647b7eaea2026a6f74c6a1cb310872264b1c8b86ce6a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Product Usage \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/CheckoutApplePayContext.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9318387b316ae0ea7daa8cb7103aea5112cb4e5c68cdb75b061fb5ef8d699c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Read explicit integration and presentment currency fields from the mobile \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BSession.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4065e7d72467580ddfb1416718d506d56a6a28191cd93c4b72aae1ebe7edef43"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should next actions use an authentication context tied to \u0060presentationWindow\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BInternal.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6621299e607b2299ca1e5b51b2f1e4e94aa229609190c4bb2b274e325deeb3bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe add Link-specific configuration \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BInternal.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c41b9724da5d25590e8e53b1e695025836a90b34a603130dd1dfcced02e6ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe separate out a LinkAnalyticsHelper \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BInternal.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb90ff7d390b6ccf886fe1b094f3621abb7fc7e155528770e5ed14bab744a47"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This should probably live with the other methods that delegate to CheckoutController \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4a99da909736365b4e7551c82285f7279e61b1ba584a5e7121c4668863fd0b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Lots of stuff in here because current Link code nominally requires it but it may not all really be necessary. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7cf735a69c8e30a27ace0823cd567de41940e46f3bf7b68c65c58ed7ca14a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fatal error here so we can not reutrn nil \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b1d21c9a00dbb58d7535731e5ea434e3b22df5dc54920900cd187fd4d380af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this once no-PM confirmation can use the Checkout Session\u0027s server email without \u0060customer_data\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ef882c494099ef8e32467d3910db126fd335fd8239f1320679122a5fdea512"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This doesn\u0027t need to and should never actually throw \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"961cf06b9eebc1ec15fac495abf39d7a64a1532c4efa74a5427cbf189e7743b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: When we stop making a PM, make sure to call this after the CS /confirm \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0a1fb644c19df6a5848107b33ea11ad472638d9716b7d4f72afac321626db3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Why set client attribution metadata here and also in /confirm request? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c917feaa917c8c0b6f1c1fb608872b7d16026945ed6c13b4ee37015f83cd88"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Stop creating a PaymentMethod and send payment_method_data directly to /confirm. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ec66c17c5166b5ac59e3094376e68f8de75cd56a0196e6fe58a416e8010b20"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Have the Link confirmation callback return InternalConfirmResult for Checkout so the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Checkout\u002BConfirm\u002BLink.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"62efdbd4563ab4bcf2777799bdc9eb4e4639e49219fb9b615fcae59269b51d86"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this Decodable instead, we don\u0027t need _allResponseFieldStorage. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/API Models/PaymentPagesAPIResponse.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76d872ab1cb9de3f96968a0d342612423f174b9f681be43dd41fb734a6c76d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make merchant_country non-optional in CheckoutClient when Checkout migrates to it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/API Models/PaymentPagesAPIResponse.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28e5ec129f9ada65d7445aded3944f97ee9f98a29e71b2f5b38f11fe480c4e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Have Payment Pages return Session.Amount-shaped values so clients don\u0027t duplicate \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/API Models/PaymentPagesAPIResponse\u002BSession.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b822c08344ceea3f429deff36096265090afbc5956d05b6a48dc583f1a5935e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The backend should return the public tax status directly instead of requiring \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/API Models/PaymentPagesAPIResponse\u002BSession.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e12c30d4cb766eed95312d6ff371fb29dcee3922ccfcbb598296633a7af480b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This should not be async or throws; we should not make any network requests or re-fetch things, just update the v1/e/s response. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Payment Element/PaymentElement.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3f6553b436ed753e00fbd2e19f03c0997300ae7ae2aaf84e9bc64c316ec8c9"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hacky solution: We determine which one to pick based on which one last reported a payment option update. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Checkout/Payment Element/PaymentElement.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b58c707b30a180368866cb33390ac6046812bda99323000ce23249f4487eba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make a better default error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerAdapter/CustomerAdapter.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5749c7b3d4a09d07864b900a76a30055090a1da9b460229948d914621ccf93a6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is a programming error, setupIntentClientSecretForCustomerAttach should not be called if canCreateSetupIntents is false \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerAdapter/CustomerAdapter.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"179d92247f37700f036957c2628d89b28768d5f12d88ec91dbec974d39f7cf11"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (cleanup) Replace this with didSelectX delegate methods. Turn this into a private ViewModel class \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72fb87429587b398313d8260c985d5a50412f6d569e07eedca1d171d9c52c87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (cleanup) Replace this with didSelectX delegate methods. Turn this into a private ViewModel class \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentOptionsViewController.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6d34a2e762cba326d8a2396f39d7db16ef515470b6714561bcce7fef3095e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(porter) Make this more generic for when we have shipping address section in here too \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerAddPaymentMethodViewController.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"af417daf4b39f94a26ae9bf7adecd03557f74f8f27208f15b5504ac5e36c4a7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(porter) Make this more generic for when we have shipping address section in here too \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentMethodFormViewController.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"965113b7976013e0a07e8e2e76f99ece4f4f10e520cef16b1f1bcca91f961729"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: BIN retrieval is broken if you don\u0027t use STPAPIClient.shared (https://jira.corp.stripe.com/browse/MOBILESDK-4322)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/CardSection/CardSectionElement.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1ac8c7a918888003a128a9f3b7069a96d593b2413ccc6a24528bddecf00c66"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: BIN retrieval is broken if you don\u0027t use STPAPIClient.shared (https://jira.corp.stripe.com/browse/MOBILESDK-4322)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/TextField/TextFieldElement\u002BCard.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"010bdc518a2995c5523864f807c7f6f7db9b2bf93cda0f8d86fae1fa34b020e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: BIN retrieval is broken if you don\u0027t use STPAPIClient.shared (https://jira.corp.stripe.com/browse/MOBILESDK-4322)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPCardValidator.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b12172e6d154c3a00223159f050c8058ebdc14134e774ee895de0d529c52ae9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: BIN retrieval is broken if you don\u0027t use STPAPIClient.shared (https://jira.corp.stripe.com/browse/MOBILESDK-4322)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Helpers/STPBINController.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"1041d53ee926225c8ea87203657e605f2e303af3198b952a8f3f20dd30cc4e7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: BIN retrieval is broken if you don\u0027t use STPAPIClient.shared (https://jira.corp.stripe.com/browse/MOBILESDK-4322)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/STPPaymentCardTextFieldViewModel.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddab609916f187f42ba72a1e23cfa981dbd12c848bb5d4c112294de801960f2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: BIN retrieval is broken if you don\u0027t use STPAPIClient.shared (https://jira.corp.stripe.com/browse/MOBILESDK-4322)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardNumberInputTextFieldValidator.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf513d2ad81c89aa4765d24ef7945bb44823c5be0dd49f561b13c7f42bdf152"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to get the accessory view to update \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/CardSection/CardSectionElement.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcd1bc8c63b96292e084892211e66c09824487bcefaa3b176d04c18a580019b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to get the accessory view to update \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/CardSection/CardSectionElement.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3c9dccfa0642bfb15b2a94cd1b121b365d46e9e4659d94f34d1a22da892879"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: /// Hacky - ideally we have a RowButtonViewModel type of object that keeps track of this state. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentMethodsView.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e085d9758b6bc33b2c047f2aec085bf63d457a276beeb6332fcd69d02766cd2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Pass in the selection state (eg selectedWithChangeButton) so it\u0027s retained \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentMethodsView.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ab4d6577d5eb393a75b2f95d2aa16d576aa41a7cb9b038ab462de15927c694"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: We assume the accessory view is \u0022Change \u003E\u0022 \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentMethodsView.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"623539e295568cdfcd9a291a210780b20b3569c8ee99ff2e0f06c18c296a20fc"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: We assume the accessory view is \u0022Change \u003E\u0022 \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentMethodsView.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"9761f63a549005dabeca2f3e33242181d342655e8dc4a9955db5fb9ed9c99cad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://jira.corp.stripe.com/browse/MOBILESDK-3079): Make \u0060load\u0060 respect task cancellation to reduce network consumption"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8ded8e59f613fff1544037fce22f77fbec0ea68e97504344ff02b507f23ca3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: stpAssert \u002B log error if resolvedPresentingViewController == nil when this is called from Checkout SDK. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"59425a0bf5e4c4828a9caee106809ae2916350e6e0e603a1e0867b03c0ec5a1c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider opting Embedded SwiftUI into EmbeddedPaymentElement\u0027s initial height notification and removing this load-time height calculation. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3875deaaf8197db609f635471a33aafd30d3729e2414a4afdbb366117a3806a3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider opting Embedded SwiftUI into EmbeddedPaymentElement\u0027s initial height notification and removing this load-time height calculation. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d930e48badeb57c74158dbeb7a7cb3b270159522e8ebac2cb8eb2bde55fd13d0"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: If Embedded has not been presented yet, we may not have a VC. If that\u0027s the case, populate it with the default VC for the window. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedPaymentElement\u002BSwiftUI.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3f8fbb1dfcb13bbf041f5d03fb78c09c3821f14b57e651c6eab1b70c56b47b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter) Don\u0027t think we need this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8940f74ef038d4a646a2c9800db4b912a7948e66064890b6932278a2e859586"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: PaymentHandler calls the completion block while SafariVC is still being dismissed - \u0022wait\u0022 until it\u0027s finished before updating UI \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b68ac4f2d41426df89ba8ad152edd7a0250e3e0bc9fafc80f046e4e933d405d"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: PaymentHandler calls the completion block while SafariVC is still being dismissed - \u0022wait\u0022 until it\u0027s finished before updating UI \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Vertical Main Screen/PaymentSheetVerticalViewController.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7f33514f49666b8eef3132471864b22289a255ff97d1dfd85892bead138379"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: PaymentHandler calls the completion block while SafariVC is still being dismissed - \u0022wait\u0022 until it\u0027s finished before updating UI \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dc8c5ebc9a07a8f8978d6ecc710c5118e3440a91cc9be26862a2f65f9e6237"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(wooj) Log an error here that is not specific to PaymentSheetViewController \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Embedded/EmbeddedFormViewController.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fafb51fa126c56aa1d01c7de22cf0b3886ac55a5d1866e747777821e6ac1fbe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We need a way to override Link\u0027s default primary button label, since we don\u0027t want to show \u0022Pay $xx.xx\u0022 even for payment mode. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a58b492e476dce834b02df623428462d4b7e4c1b25db0ad77df1cd52ddd5238"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: These parameters aren\u0027t final \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f59b63b5835cd7a676f39babb44c57961cda69a3d3d4c0ee61bea06d0a4246"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: These parameters aren\u0027t final \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"763ce95fb77fdc8037022499ee34b87ac27ab2b116aef4aa8a5bcaf78348775e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add a non-logging integration shape or something \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"765988ae6a559f37f347f168eafbe8ddfab4de96c2fb49052ca82355ee392c37"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check that this is the right email source to pass in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0aa7b5bcb42a4f389988cf60eeb746eb24039f3d35b3767ebcc080ce82fac57"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Confirm which value to pass here to not cause experiment issues \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9712e1ed3363bb8d65e525a741d80b0672ddb5b72b32263fdd9d4d152fe8f5ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(gbirch): align Apple Pay button liquid glass styling with other elements \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/New Payment Method Screen/WalletHeaderView.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb887d24160572473bdc8db0d3c3b8c5b97c24228d5cc0fec2f01627bdc97ee"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hacky workaround: If we update unconditionally, we\u0027ll overwrite the current PM\u0027s valid image with a 1x1 placeholder here \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/New Payment Method Screen/PaymentMethodTypeCollectionView.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af2f2624f02f4a894e143497cf798c262fee8eb198b8eb33a8bbbf5c5f4bb45"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(gbirch): add appearance customization for legal text \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMMEUIView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1bc46745ffe37cd49b76420a320e7c66aed84568ba2f4f0ff1f53c700a6964"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ocs-mobile): Make this not a singleton \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentMethodMessagingElement/PMME\u002BInternal.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb418abf5468618359d5373713391eebb12573506f7527746ed0ab859970b422"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (cleanup) - get this from PaymentOptionDisplayData? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Saved Payment Method Screen/SavedPaymentMethodCollectionView.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e49a990504fb9374b26c213807da0b48f9a12f74f805c54c602cfde8e509bc0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This self.view call should be moved to viewDidLoad \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"879d94ea2269c7165932d64a1568e5f8839b7d049cc8a234e2d8a9646e02256d"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: Payment container needs to extend to the edges, so we\u0027ll \u0027cancel out\u0027 the layout margins with negative padding \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetViewController.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"de35724456397f96046cd28d275b7075d5bba46ef5ef7ab852d1e08b8eedd48f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: Payment container needs to extend to the edges, so we\u0027ll \u0027cancel out\u0027 the layout margins with negative padding \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d08424e757881abfd38f61dc57b8b24ce84908539e4498999ba714d7b0b08b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove probably? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/PaymentSheetFlowControllerViewController.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"32079122d7723ba5f2ac8b7282e2d4d89fe9b9433d303e886e480c99935dc5ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Analytics \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/CVCReconfirmationViewController.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"08728c109b424ed05308358cb49a1b18ec670dabd548b78af21604ca169a8213"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: This line causes PaymentSheetSnapshotTests to fail on iOS 26 - the sheet becomes transparent. I can\u0027t figure out a fix, so just remove it out for tests. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/BottomSheetViewController.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"da272ac4dd85a9c72e4fbd42135f1523870da4a15e030f0a85ee977a2f2ee481"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove these three methods! BottomSheetVC shouldn\u0027t be aware of any of these specific VCs; it should expose generic present/dismiss methods \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/BottomSheetViewController.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4fe1cb486edf2f4ee9b8d15218fae4d8fb06ad922efa6205f5f56493acbd05"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Deprecate? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/WalletButtonsView/WalletButtonsView.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89430f89ff549910bad033752260af93b199328128f267091492dce84cd10cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (iOS 26): Respect cornerRadius = nil \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/WalletButtonsView/WalletButtonsView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"813a3425cf75ee2d1495e986bd01269300cacd7a4cbf68c2995c272807acbbf3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (iOS 26): Respect cornerRadius = nil \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/WalletButtonsView/WalletButtonsView.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b8a05a57698e569b6d113f8817ebc84e4e13dcb427b7d54de0ae9e9088d0a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Localize \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/WalletButtonsView/LinkInlineVerificationView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"299d8cdf85bc3ff29bf97196ff56d69d10c7e4aea0425f095b6afb27749166bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Localize \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/WalletButtonsView/LinkInlineVerificationView.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef38ae52eba63fbe847c9079741dca4ff52d157f25b353b62edc988f7aa534e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(iOS 26): Is this supposed to apply a Liquid Glass style? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/WalletButtonsView/LinkInlineVerificationView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcfbb458a6dd0304cd872d5cd4195d2365a48eadbb622d5260091be55bdda84"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to let STPBINRange finish network calls before running another test \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/TextFieldElement\u002BCardTest.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9cab237ebe747639c4a59de5f700991f803baf3e1ea51131b2b866c276ebb5"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to let STPBINRange finish network calls before running another test \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/TextFieldElement\u002BCardTest.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6874e3e01a7180362c3358c7c80680a0945440d1bb68c78e1c891773677eea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use Mobile Elements once it honors adaptive_pricing[allowed]=false like Custom Checkout. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/STPAPIClient\u002BCheckoutSessionTest.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8eec272143ead87ddd30c7541c55fe34fbfb995181d3c2e513594c74772e19"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): Checkout rejects \u0060payment_method_to_update\u0060 on modeless sessions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/STPAPIClient\u002BCheckoutSessionTest.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbab50331baaa1f41536c6c3db59edc1535699312f056b754a0170384942f705"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): see disabled_testUpdatePaymentMethodExpiry above. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/STPAPIClient\u002BCheckoutSessionTest.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c57c01cb5af26616bbe8811313080b96839106995565e233e1aeb8fb07bfcce"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): Setup mode is out of scope for unified-mode private preview. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/STPAPIClient\u002BCheckoutSessionTest.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ff1eb73c8b47d676600a96cfadc51f43a6692cb626978d470c21aeff412e8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): Setup mode is out of scope for unified-mode private preview. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetLoaderTest.swift"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"608673f931a11390ef5e830be94fdf0918d0f481b4a12bf6213a2c7b3d93de9f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): Setup mode is out of scope for unified-mode private preview. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetLPMConfirmFlowTests.swift"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7e59e0afb60d511aa378e02fb4fe6093da9cab73382bf35a9d2e88663f2128"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): see disabled_testInitCheckoutSessionSetup above. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/STPAPIClient\u002BCheckoutSessionTest.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"8019ac26028d33945c4a012c94a1fc7fa6ce251436e2a9c8a51afe72b1d6f30e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Test other things like \u0060selectedPaymentOption\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetVerticalViewControllerTest.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a99e3bdaa1c8f86c2bcee72aab071f9155b7460dac99cf0bf3083c36de9644"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Assert paymentOption exactly equal \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetVerticalViewControllerSnapshotTest.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0061bfa4765dd1c54d24db279259be8e3404e4c413a21aa08af307f26619d381"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): Add \u0060.paymentIntentWithPMOSetupFutureUsage\u0060 once Confirmation Tokens \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetLPMConfirmFlowTests.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17f0398341542c655a868a5fda492dfe5a8ea192ab9747e0b481a8fcadeb8db"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to PaymentSheet-specific local actions that happen before control is handed over to STPPaymentHandler. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetLPMConfirmFlowTests.swift"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"712f9aff472e7ca07bddcd1fd20cbe7e851ae9c639251dc0811cd6818573b466"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): Checkout rejects \u0060payment_intent_data\u0060 (and thus \u0060setup_future_usage\u0060) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetLPMConfirmFlowTests.swift"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dc3de6c04598bea468427f0d10cea3203319c95c25c5bd7f87226bb5971d16"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): Checkout rejects \u0060payment_intent_data\u0060/\u0060payment_method_options\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetLPMConfirmFlowTests.swift"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d72a94b3a6f837d1c4b4b105cd4185dc0cba5bce0de99281a76da5bbf3f7662"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to compare \u0060paymentMethodParams\u0060 objects; consider them equal if their serialized versions are the same \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetLPMConfirmFlowTests.swift"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f752ef3e4dcd3a6dc3d26468b84eca0480f217c97919712a4c353e5ac72ad3"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hacky way to differentiate the save checkbox from other checkboxes \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetFormFactoryTest.swift"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"452e679c9108a7ca74422022f05aa33ac32c2266335edb83c3f3761daf80469b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hacky way to differentiate the save checkbox from other checkboxes \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheetFormFactoryTest.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc00b0483f208f2b6db41f0b343ce21190cf467542c7ee365e775d723b49a13b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: Use contains b/c the test backend prepends \u0022Error creating PaymentIntent:\u0022 and appends \u0022(request_id: ...)\u0022 to its returned error string \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheet\u002BAPITest.swift"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f47ba7a3d9b2eee46e161411c103d69c87f16e06182b670e618011706d46a21"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(Update:) Change this to validate it preserves the paymentOption \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheet\u002BAPITest.swift"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00cbeebaa40eaedc4b4fa47fe6cf1d91751ca82270840530fb5e9a65a58c790"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(Update:) Change this to validate it preserves the paymentOption \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/PaymentSheet\u002BAPITest.swift"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a852275aa437f460fc2abf2e2b31025405886f8b005b4e2de7e52983f2a78b33"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: AnalyticsClientV2 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/MPELatencyTest.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d7d43079686f3ec78867d767473fa5212431c3cb8fbcc74df1ed5093e87b7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): unified mode does not yet support promo codes. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Checkout/CheckoutTests.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bd79264a3251b44a7f9b259f26cd2c0b697ee7f154c0cbeb3d972143174666"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): see disabled_testPromotionCodeApplyEmitsSessionUpdates above. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Checkout/CheckoutTests.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea82d3d89fa684bea5f57389f0bca1ae677d87f74db26a0ca5c733f4ef8fc96"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): see disabled_testPromotionCodeApplyEmitsSessionUpdates above. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Checkout/CheckoutTests.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5c00629ea368c72baac06e97c8c8a0df00898e033dc021c06bcb91253a16ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(porter): see disabled_testPromotionCodeApplyEmitsSessionUpdates above. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Checkout/CheckoutTests.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1170aab0762581ba5bc04643ade45d8bb094e114c0aa2effb0ab07261b96ae1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(link): Fully mock \u0060PaymentSheetLinkAccount and remove this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/PayWithLinkViewController-WalletViewModelTests.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"91395d92c00969df97623234c6ad1ba88349be1e72288426aa41448c1ec8ba76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this logic when we stand up an endpoint to do this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"1850a8a2f1632dd48e74fdbcb2818842cc636ffd94e5677a8c29b4d1ebe50d3d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this logic when we stand up an endpoint to do this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/STPAPIClient\u002BPayments.swift"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3350509b5318632189ae6c46bc0998f550d18e65b11c51ffc2d4b3b7d5f9fe8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(swift): Figure out deprecation strategy \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/Types/STPPaymentMethodCardChecks.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ef51e3762b664bb4b5b711f3ae2690d1a6d7c0ed9bf5fac37cc36f3f31ddc7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Internal/API Bindings/STPFormEncoder.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3bd8ebe944c70eb5badd68f20356aa713081904da8df33563b0d0585ef84ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/Internal/API Bindings/STPFormEncoder.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"95609e0be81362b463f5c2dec7e1ec7ee51d9360edb64c1fd187852cc488c651"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make currentAction an enum, stop optionally casting it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"65707ba9580d8e33716173dd8b6349fa6a75287df99fe5564ac93c3fb0175394"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make currentAction an enum, stop optionally casting it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7f0d827d629c3d7d7d03dd4d25fce4968157797619949e68771b6d4b357ddb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make currentAction an enum, stop optionally casting it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift"},"region":{"startLine":2272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd45b0cb0851c2a892188bdab8df5a75c535d07f8ab1d0aa20fc9c38198c699"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is broken for integrations that don\u0027t use STPAPIClient.shared \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Helpers/STPBSBNumberValidator.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"179409068ca92bc7ed1976a3d71ad9595fdf1a8ee932b19bce812ae6ba32516d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ramont): unify icon sizes. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/CardBrandView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ed45d2c21f525b4773a9f6ccb0d766d617322ee0669509760797224ffcc268"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(ramont): remove baked-in padding and perform alignment in code. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/CardBrandView.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e85d91bd2cb130f3c88635aa98e157e9b39b46f3339cf7b49785b85d9cf6ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should be more specific here e.g. \u0022Your card\u0027s expiration year is in the past.\u0022 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/Internal/UI/Views/Inputs/Card/STPCardExpiryInputTextFieldValidator.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d37316369952096e621cef6fac472a93a734f5e7b4250cc42c5bc7e096da77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Figure out actual padding\u00A0(not 14px) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentsUI/StripePaymentsUI/Source/UI Components/STPPaymentCardTextField.swift"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25f00428d046aa3c07f8bc0d969923faeb58d15cc496a5cb14ce20f720848f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ramont): Move this to DigitView \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Controls/OneTimeCodeTextField.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"498e56677a3b7bc72e29b088408ea11bc0b1a84bd93f89eb8dd063c0e7f220dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ramont): move to \u0060Configuration\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Controls/Button.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afb0ffacf2148af1957d475fe0511421184f16d5033910b5f0374cc1cefb68f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mludowise|IDPROD-2596): Check if these are the formats needed to support IDV."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Factories/IDNumberTextFieldConfiguration.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59dbc234b10c6a4049face15cb9f35e2d5ca6309d8e2a492cca53b39d973f33"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(iOS 26): Does this need to respect corner radius = nil? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Form/FormView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3025eabb8d89f9f156174cba0e7d71eb5945a20407952cec9b32ee3648e21d"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: Give the new stack view a dummy view with the same height as the current stack view\u0027s first view \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Section/SectionContainerView.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad93348d22f347e0246edc8be41b53bc11d35ef3c9263dbbc3ec3abb5093f545"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: Swap the dummy first view and real first view \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/Section/SectionContainerView.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acd6e6b2b4899f68fb0a0c30fc1f4c57bf4fba2a94e3af2c6670bfd7d89e902"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack, disable the ability for the picker to take focus while it\u0027s being added as a sub view \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Elements/TextField/TextFieldView.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda942d7f23bb3b8cca65ff006eeedc0c9cf712feb98bf37153e699d34dd07b7"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: To tell if the touch is inside a button vs. the background, look at the touched view\u0027s width. The button is observed to be 38 points wide. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICore/Source/Views/DoneButtonToolbar.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac24758f40e31b346d68b8d90bd12cb8078545f42fcc49efd34b6a6f791f868"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Test that we don\u0027t get lagging characters (e.g. \u0060###-##-\u0060 should always drop the last \u0060-\u0060 when formatted \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/TextFieldFormatterTest.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a890e50a828d3f700acf2925f34facec2c40f0f959c4706091925a54230862bd"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to switch the country \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeUICore/StripeUICoreTests/Unit/Elements/AddressSectionElementTest.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca33621d2431f81720187bdd3a3523a4067452f8f42d706ac32374d5a8952f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: AU BECS Debit is broken in testmode. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Testers/IntegrationTester/IntegrationTesterUITests/IntegrationTesterUIPMTests.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc92a14dcdb329d1f8242e844bc87a4e88a66c2e85c17e10186726cd66bd2f4"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no project overview: The top-level index page (Stripe3DS2 Reference) is a single HTML file with no header stating what the reference does or its scope, unlike the StripePaymentsUI README. Add an overview section describing what the 3DS2 reference covers and where to find each class."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"stripe3ds2-support/doc/html/index.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"486924154ea14db274fb7606becfc3ca8d2dad939e6da7ca3f39e6d6e96df7e8"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent parameter naming for the view controller argument. One uses \u0060from:\u0060 and the other uses \u0060from:\u0060 (consistent), but the completion handler signature differs in payload type which is expected, however, looking at \u0060FinancialConnectionsSheet\u0060, there is a mix of \u0060present\u0060 and \u0060presentForToken\u0060. More critically, \u0060CardScanSheet\u0060 and \u0060CardImageVerificationSheet\u0060 are distinct domains (Scan vs Verify), so this is actually consistent. Let\u0027s look for real issues.: N/A (signatures: CardScanSheet.present(from: UIViewController, completion: @escaping (CardScanSheetResult) -\u003E Void, animated: Bool) | CardImageVerificationSheet.present(from: UIViewController, completion: @escaping (CardImageVerificationResult) -\u003E Void, animated: Bool))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dccd32df3d07c498dd17a752b3aea12f6317e3b2876a44b3876b21969c404bf6"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent method naming for similar intents. \u0060present\u0060 is generic, while \u0060presentForToken\u0060 is specific. This forces developers to choose between a generic method that returns a union type \u0060Result\u0060 (likely an enum or protocol) and a specific method. While distinct, the generic \u0060present\u0060 method\u0027s return type \u0060Result\u0060 is ambiguous compared to the explicit \u0060TokenResult\u0060 and \u0060HostControllerResult\u0060 types used elsewhere.: Rename \u0060present\u0060 to \u0060presentGeneric\u0060 or ensure the \u0060Result\u0060 type is clearly documented as a union. Alternatively, if \u0060presentForToken\u0060 is the primary use case, consider making the generic \u0060present\u0060 return a more descriptive type or deprecating the ambiguity. (signatures: FinancialConnectionsSheet.present(from: UIViewController, completion: @escaping (Result) -\u003E Void) | FinancialConnectionsSheet.presentForToken(from: UIViewController, completion: @escaping (TokenResult) -\u003E Void))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"960c16851d260a44eb4b4c4aff7c841702b9e665ce6bd82a5d198b3ae4836c61"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent parameter naming for the same operation across overloads. \u0060presentApplePay\u0060 uses \u0060from:\u0060 for a window and \u0060on:\u0060 for a view controller. This is a minor inconsistency in preposition usage (\u0060from\u0060 vs \u0060on\u0060) for similar contextual arguments.: Standardize on \u0060from:\u0060 for all presentation contexts or \u0060on:\u0060 for all, e.g., \u0060presentApplePay(from: UIViewController)\u0060 and \u0060presentApplePay(from: UIWindow?)\u0060. (signatures: STPApplePayContext.presentApplePay(completion: STPVoidBlock?) | STPApplePayContext.presentApplePay(from: UIWindow?, completion: STPVoidBlock?) | STPApplePayContext.presentApplePay(on: UIViewController, completion: STPVoidBlock?))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"731c2aa7050796b072dcad0dbb34dda32433a18f4aa4804d37dc594b7be7e226"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent parameter naming for the presenting view controller. Most sheets use \u0060from:\u0060, but \u0060AccountOnboardingController\u0060 also uses \u0060from:\u0060. However, \u0060CheckScanningController\u0060 uses \u0060present(from: UIViewController, animated: Bool)\u0060 and \u0060dismiss(animated: Bool, completion: ...)\u0060. The inconsistency is subtle but present in \u0060STPApplePayContext\u0060 which uses \u0060on:\u0060 for UIViewController. Also, \u0060CardScanSheet\u0060 and \u0060CardImageVerificationSheet\u0060 use \u0060from:\u0060 while \u0060STPApplePayContext\u0060 uses \u0060on:\u0060.: Standardize all presentation methods to use \u0060from:\u0060 for the presenting context (UIViewController or UIWindow) to maintain consistency across the SDK. (signatures: CardScanSheet.present(from: UIViewController, ...) | CardImageVerificationSheet.present(from: UIViewController, ...) | FinancialConnectionsSheet.present(from: UIViewController, ...) | IdentityVerificationSheet.present(from: UIViewController, ...) | PaymentSheet.present(from: UIViewController, ...) | AccountOnboardingController.present(from: UIViewController, animated: Bool))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a79c6466df07cc7f43bb47d7f4b918137a8a5147f8bd071cb3c1ca8081cab965"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (226474 LoC, 779 public types across 134 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4eacb7061592a60d1279d64af79e58f508b691ab58215f9ad75aa6e45dc4f284"},"properties":{"commitSha":"49406c2a2754fe6921a4138a289fa97225866dc9"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f563186a78d353a6bd3828c79c6e711a22ef8aec93e98912a0018e2a34dea046"},"properties":{"commitSha":"49406c2a2754fe6921a4138a289fa97225866dc9"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c725d3d3d1b339417160e4c5c23fb3f3efa93bd492105843f009f394f074b1ca"},"properties":{"commitSha":"49406c2a2754fe6921a4138a289fa97225866dc9"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9c976bec3fc30cc96053df4a792c1366803b1d6dc088c48907ae0d16dfede766"},"properties":{"commitSha":"49406c2a2754fe6921a4138a289fa97225866dc9"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5d33f1828f3f38234708b65fe05fb871d0c82ea27d8e902f8f9c7730293609b3"},"properties":{"commitSha":"49406c2a2754fe6921a4138a289fa97225866dc9"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"568b39782d2276b2a87fc302e4bb226095b08cfaea27a61687c5b85d18ebdc75"},"properties":{"commitSha":"49406c2a2754fe6921a4138a289fa97225866dc9"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"79bded35bf9fcc24e4c478c0c2dd387ec15fb2bbcf99d14ef1f966560f0d8749"},"properties":{"commitSha":"39b88565043e20bf83c973024b1580f9a10501aa"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d1f13f26919d9316dcf755b1f709818e93126c2a1175fdfd2e592d55bfcb6e6a"},"properties":{"commitSha":"8feb5adecbb4043b089a72b8f9d6d597d100362b"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6354dc9fedd1ed88bf0de322cc792e4175e1830780fcba56f3c596747b831e1a"},"properties":{"commitSha":"bc5ba118ad50c5607baad1ceaf23a63cb16f3c4a"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b3682c5f58c6a1b19dcf5f454f8803062a04e461a71865b3095b03e0c83a88c"},"properties":{"commitSha":"e43c9f929ee09a9adcb3ab7fa4293fc6051ccda4"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc6d8efbb43c2514bb56bd057fd424395fe01b51cac51ba52dd66cf555b0505e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19f39b5ec8b7b41c6107b649ca7950f54fef8cd2b8eb58f2a6ffc46ee5ad3fe1"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"958d9c4807bd48b89a18a11fd32b609e33f7d2af6bb775dad757ffeb28d88b7a"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45db733a20adbe192a4c2419f553a0b2d107a05d4be761efa4574fbb06a255cc"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5215dbb802ac300f2c9b01c40c63e6ad986c984d752d05650cebc7efe3a4a83"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e2051effe700c76a730fbd1ebb754a8cd226abadd31e636bd1792ff4e8aac95d"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d07ed198cd2499042e18a2902174358377c34c13f3a695fed24b26d562a3cb0"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b95a2d12e27c41669d47dc30163b776699ff59223369b073929f40b910eb75de"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f21c2f595954f65d526fb6ae434a1eca9609c5652822f1b9af0bb326676245b7"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6e5e9cf0cb1a51d415a8a399511d737f70f9dbf1a1c6d1b554b6c325795bdb0e"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1ab31379b7fc6107c32f589b80779c3582eca7abb3bcf88c79b8c735d5f115a2"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"875ba56bcb55f3df2f221812f7770cc09f5820f7c3909fee7e306cae44f99453"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3930658b785d6beb289ff3d8f0fac55872a00f0f7d5d5c0ca69a5a476def425"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6c8db309d894156f31df3816e5ecfffb327a0caa2c26315fdc6eb020b84b2bb2"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b7cee934e4f59a0afac24659662e173232421720f8a970c7e696a8c4369ca16"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b428ebbd1863b79349411b22618bbfe42fcda94c349429dcf6dcb3f7e8aca4b9"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7847f22b61437f3907513b276c0d890a8a1213fa42f4bbf50dcee1af80e902d0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2de423e4272af4b320749972291f82c0c9acd40797d302e002abad1c04e846db"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc80edb8c0a802e16e4df1ef3b36ee36a90393f651207b5315775dd3b96bac34"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b658740d0b5338391933682e104b7a635cc4f90f9a03a96e126a2e0e988bb428"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"47c54f19142d04443593b9e73a76a52489438846ee6ae8463d90ad8921b168c4"},"taxa":[{"id":"CWE-134","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-943","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"672e4dac98b3ef61ad41b4a765805650e5bdda51802e2d66be9785b264cbefc5"},"taxa":[{"id":"CWE-134","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-943","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f3536273dedf90e5ac3c3691402816a45e839434ed4d192aa1a26fa305180903"},"taxa":[{"id":"CWE-134","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-943","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"128b3d2d9404c37c8aae9b5e10e2f21a9663c16b4839db338ae5d887cd260439"},"taxa":[{"id":"CWE-134","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-943","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cdd0a7ecc16332535f869a4c0d6fabd5d6770567695cd122fe55c8e4fc586bae"},"properties":{"dependency":{"package":"rubyzip","version":"2.4.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e842a8521a9d898666a1d5a419a43a27e416322915c05bcbc38ca2d85f70dcd"},"properties":{"dependency":{"package":"faraday","version":"1.10.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"833a7185174858706a151949e08a56b5367b07ea17a6c5b8941f64f85991be16"},"properties":{"dependency":{"package":"concurrent-ruby","version":"1.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"65635171040b6c278b4380ec181ba6c8c1badcab8ca1bda022f32287d963426d"},"properties":{"dependency":{"package":"concurrent-ruby","version":"1.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8da59893e7db7f85f71ff14b7297eb4ac8a664dbad474303c724918638abe12"},"properties":{"dependency":{"package":"activesupport","version":"7.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c041d7831dc14980a25059d0d85cf2ed35c0c797d4623c60e04330dabde6bdf2"},"properties":{"dependency":{"package":"net-imap","version":"0.3.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3acf461327c8d5eb139fb28055eb092d4d60f44d473a75aff035039585d5f410"},"properties":{"dependency":{"package":"excon","version":"0.112.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96451b363cfd080aa2bc1287f88cdf7656fc30267aa0b034ef2fd01fc430ec81"},"properties":{"dependency":{"package":"mail","version":"2.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a22dd4cee8b5a9ef9db1bb1dd1d7753fe210c191354b8579a8751f4c3416014a"},"properties":{"dependency":{"package":"activesupport","version":"4.2.11.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D32","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77a2f7eea87eccf4325816eba1313c14c606d047c576ec91e6d7a0e29dc4c2a5"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/RoundedTextField.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9d665bb36daf7d0d10ff74b8c19ed463586f57f6db4259233b71931fb5936d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/SheetViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a20ecf76e5eff2baa2210c59ef84c252c44f4ca7103cbf92f18f4f13fe01c07"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/ScanBaseViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7cd0a25ea5688937281be2b5725dae7102c06275bc0164b4a412587f7e414b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCardScan/StripeCardScan/Source/CardScan/UI/SimpleScanViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0f247b666c722ae16ac5d52468fa50e498fca951b9ed3c16bdba36fbe57727"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 196 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: StripeUICore/StripeUICore/Source/Controls/Button.swift, StripeFinancialConnections/StripeFinancialConnections/Source/Native/InstitutionPicker/InstitutionTableView.swift, StripeCardScan/StripeCardScan/Source/CardScan/CardUtils/CreditCardUtils.swift, StripeFinancialConnections/StripeFinancialConnections/Source/Native/AccountPicker/AccountPickerNoAccountEligibleErrorView.swift, StripeCardScan/StripeCardScan/Source/CardScan/CreditCardOcr/OcrMainLoop.swift, StripeCardScan/StripeCardScan/Source/CardVerify/CardVerifyStateMachine.swift, StripeIdentity/StripeIdentity/Source/NativeComponents/Views/DebugView.swift, StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/GenericInfoScreen/GenericInfoBodyView.swift (and 188 more) (200 orphaned of 800 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 800 of the 1602 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DocumentScanner.swift \u2194 DocumentCaptureViewController.swift: \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/ImageScanner/DocumentScanner/DocumentScanner.swift\u0060 and \u0060StripeIdentity/StripeIdentity/Source/NativeComponents/ViewControllers/DocumentCaptureViewController.swift\u0060 change together 80% of the time (16 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are \u0060c8d7c3d0\u0060 Remove CaptureCore dependency (#3702); \u006049cf867d\u0060 [Identity] Add blur detector for document scanner (#2873); \u0060d5b7e12c\u0060 Log analytics to track image scanning performance (#1250) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeIdentity/StripeIdentity/Source/NativeComponents/Coordinators/ImageScanner/DocumentScanner/DocumentScanner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae540a3a12f6101d04716706ad810b96f2ee87308a0ea3b4cc9c7783c4e71f55"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: STPPaymentIntent.swift \u2194 STPSetupIntent.swift: \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntent.swift\u0060 and \u0060StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift\u0060 change together 80% of the time (12 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060e3ceaf35\u0060 Fix more NSNumber? to Bool? in API Bindings (#5771); \u0060b3a233e0\u0060 Replace optional NSNumber with Bool (#4735); \u0060ceaca9de\u0060 Revert \u0022Bindings and update CS \u0026 PS to get SPMS from elements/session\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bbaa0f3d43d6dc853434301e12f7e2def71565a8aab4ad6c097e78567fdc58"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: STPPaymentIntentConfirmParams.swift \u2194 STPSetupIntentConfirmParams.swift: \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentConfirmParams.swift\u0060 and \u0060StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntentConfirmParams.swift\u0060 change together 74% of the time (14 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u006079686d93\u0060 Add Kakao Pay API bindings (#7052); \u006038a76509\u0060 Add Korean cards API bindings (#7053); \u00608e9fd1d8\u0060 Add Naver Pay API bindings (#7051) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntentConfirmParams.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc41c6e43fad720cc14e2b6364c0331a444e5e8a8bf4f7c386dff1db4b7891e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: STPPaymentMethodParams.swift \u2194 STPPaymentHandler.swift: \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift\u0060 and \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift\u0060 change together 64% of the time (29 of the 45 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 29 shared commits counted here, the most recent 3 are \u00602d72f6b4\u0060 Add Scalapay API bindings (#7124); \u006079686d93\u0060 Add Kakao Pay API bindings (#7052); \u00609e45cce1\u0060 Add SeQura API bindings (#7070) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethodParams.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62059a6cbe666f7321475cd52f1bd47bf48bf586c306fcd859b0f18a7d20be8d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: HostViewController.swift \u2192 FinancialConnectionsSheet.swift, NativeFlowController.swift, FinancialConnectionsWebFlowViewController.swift: \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Common/HostViewController.swift\u0060 changes together with 3 other files \u2014 \u0060StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift\u0060, \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift\u0060, \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsWebFlowViewController.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Common/HostViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0036011cbfc586c60b6cee092dcfaf64a10d202acb571e8e234800b71aa2175d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FinancialConnectionsSheet.swift \u2194 FinancialConnectionsSessionFetcher.swift: \u0060StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift\u0060 and \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Web/FinancialConnectionsSessionFetcher.swift\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060f13aff64\u0060 [BANKCON-11476] Refactor FinancialConnectionsAPIClient to support usi\u2026; \u00609c97eab2\u0060 Renames Host View Controller (#1156); \u0060514d3455\u0060 Adds FinancialConnections iOS docs (#1056) (at that commit the file was still \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Host/FinancialConnectionsSessionFetcher.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c32cc0c732a9b1ef6ee0df30b27c3f491559b084a79c587df920256c5f3d02a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PaymentSheetFormFactory\u002BCard.swift \u2194 PaymentSheetFormFactoryConfig.swift: \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory\u002BCard.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactoryConfig.swift\u0060 change together 61% of the time (14 of the 23 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060ea332fb3\u0060 Require flag for funding filter (#5895); \u0060df72a2a2\u0060 Filtering funding type in card field (#5880); \u0060a47b7642\u0060 opensCardScannerAutomatically implementation (#5431) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetFormFactory/PaymentSheetFormFactory\u002BCard.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccea4348c6a2c9518adfc3c5d7b908299cf69eaa9ae9badb98169e9c73f73042"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CryptoOnrampCoordinator.swift \u2194 STPAPIClient\u002BCryptoOnramp.swift: \u0060StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/CryptoOnrampCoordinator.swift\u0060 and \u0060StripeCryptoOnramp/StripeCryptoOnramp/Source/Internal/API Bindings/STPAPIClient\u002BCryptoOnramp.swift\u0060 change together 59% of the time (13 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u00609b60765a\u0060 Thread a country hint through crypto onramp platform settings and pay\u2026; \u006082f6ebd5\u0060 Allow crypto onramp Apple Pay before Link authentication (#7183); \u0060eec2c28b\u0060 CryptoOnramp SDK: Swapped Terms and Conditions \u002B Terms of Service (#7\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCryptoOnramp/StripeCryptoOnramp/Source/Components/CryptoOnrampCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"201616d77a8f72153cba8e175e2672526fdee1f8a2c6c0bcacf94e80386623c7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: LinkController.swift \u2194 LinkFlowControllerHelpers.swift: \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkFlowControllerHelpers.swift\u0060 change together 56% of the time (10 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u00604304e191\u0060 Return from Link early when no funding sources available (#6851); \u0060abf45a91\u0060 Return to login screen after logging out of Link wallet in standalone\u2026; \u00601e2bcd27\u0060 Use Nil as Default Value for Link Supported Payment Methods (#6349) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/LinkController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5742772163bceedbd010c7c36e8c8e023608b29c546820965268d0a133994397"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: STPPaymentMethod.swift \u2194 STPPaymentHandler.swift: \u0060StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethod.swift\u0060 and \u0060StripePayments/StripePayments/Source/PaymentHandler/STPPaymentHandler.swift\u0060 change together 55% of the time (23 of the 42 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u00602d72f6b4\u0060 Add Scalapay API bindings (#7124); \u006079686d93\u0060 Add Kakao Pay API bindings (#7052); \u00609e45cce1\u0060 Add SeQura API bindings (#7070) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePayments/StripePayments/Source/API Bindings/Models/PaymentMethods/STPPaymentMethod.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f622b701a7e9c3d9a9e648a5f77042147b42a9cddfee0e19436aaf44549911"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: NetworkingLinkVerificationDataSource.swift, NetworkingSaveToLinkVerificationDataSource.swift, NetworkingOTPView.swift: 3 files \u2014 \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkVerification/NetworkingLinkVerificationDataSource.swift\u0060, \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingSaveToLinkVerification/NetworkingSaveToLinkVerificationDataSource.swift\u0060, \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/NetworkingOTPView/NetworkingOTPView.swift\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/Native/NetworkingLinkVerification/NetworkingLinkVerificationDataSource.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2564db9ea25a968b19c34c68f94622f26e9857514aa47655ca138a38016066df"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: STPCardScanner.swift \u2194 CardSectionWithScannerView.swift: \u0060StripePaymentSheet/StripePaymentSheet/Source/Helpers/STPCardScanner.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Elements/CardSection/CardSectionWithScannerView.swift\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060716c2a7c\u0060 Refactor card scanner (#5672); \u0060b8433aad\u0060 Revert \u0022Restore direct to card scan (#5307)\u0022 (#5342); \u0060fb53e637\u0060 Restore direct to card scan (#5307) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/Helpers/STPCardScanner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e93e273d2ef14d86573c21ca925fcae7d682f79b322b7ebeec38473fcfce38"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FinancialConnectionsAsyncAPIClient.swift \u2194 NativeFlowController.swift: \u0060StripeFinancialConnections/StripeFinancialConnections/Source/API Bindings/FinancialConnectionsAsyncAPIClient.swift\u0060 and \u0060StripeFinancialConnections/StripeFinancialConnections/Source/Native/NativeFlowController.swift\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006073c091ba\u0060 Add generic error pane for FC SDK (#6900); \u0060a6405f19\u0060 [link] Refactor FC link brand resolution (#6489); \u00603a8f641f\u0060 Add client_attribution_metadata to payment details and adjust for Lin\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeFinancialConnections/StripeFinancialConnections/Source/API Bindings/FinancialConnectionsAsyncAPIClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca794d46a7a0dc86c06276f3d70534c6662e370a391f40d63961da57e16e9fa"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PayWithLinkController.swift \u2194 PaymentSheet\u002BLink.swift: \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/PayWithLinkController.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BLink.swift\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060f4d8cc5c\u0060 PS MainActor Isolate Link coordinators (#6950); \u0060bbf6bf5c\u0060 Refactor Checkout confirm ownership (#6817); \u0060242cbf85\u0060 Adjust when hcaptcha token fetched (#5527) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Link/PayWithLinkController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c316a496fe2e85036fc713181da82f8a9e70d0028249af6d64d6794f30e23be"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CustomerSheetDataSource.swift \u2194 PaymentSheetLoader.swift: \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSheetDataSource.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetLoader.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u00607dcc2002\u0060 Make API calls to internal endpoint to set defaults (#4588); \u0060171edb3d\u0060 Read the default_payment_method field from elements session and use t\u2026; \u00604ddc1cc1\u0060 Filter card brands in Apple Pay and CBC (#4131) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSheetDataSource.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80528e627e43503b64d790487659c1b5f6516b2d3327746a280f75b347f3e4d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CustomerSheet\u002BAPI.swift \u2194 PaymentSheet\u002BAPI.swift: \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSheet\u002BAPI.swift\u0060 and \u0060StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet\u002BAPI.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060dc3f8c99\u0060 Only attach tokens for card pms (#5846); \u00600097be55\u0060 [v25] Async everywhere pt 2.1 - STPPaymentHandler (#5293); \u00607399be71\u0060 Send top-level in addition to under payment_method_data or payment_me\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSheet\u002BAPI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93523616e210cd3322732420b875b70f58551abb61f0d811bac4447543336800"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".jazzy/theme/assets/js/jquery.min.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c160c25d5a15761b73031e3fa7c9e06ccf13c8eb896004ff67129bacd4e7151a"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".jazzy/theme/assets/js/jquery.min.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bde3e4c94589606b2053099d65438fd26a80cfe6f75ecfff118dd4f1d1d0231"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".jazzy/theme/assets/js/jquery.min.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6408b775990c166928d9ccfdd085540dedecf88de965362ae86a9d9f35d68a9a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".jazzy/theme/assets/js/jquery.min.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"998aa6d9af170c29fc41828f0ddf20c021f91a74cb5269e7da9b7a5a7524d998"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".jazzy/theme/templates/task.mustache"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80b13abcde68a1086f1d37ba907d6f6cd471f2b0ac3e1aa9e414fc98efc24eb"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe3DS2/Stripe3DS2DemoUI/Resources/acs_challenge.html"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e47351912c1c3da1d8ac3dd8ceee56afd0506b4bfe71aa5d9505eee15c4372c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".jazzy/theme/templates/doc.mustache"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e85d73663e70358e4fce193dfc20a569156950a584de4c3d3b40caad37fb228"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h4: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".jazzy/theme/templates/doc.mustache"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae25a8ea9e404b5f84275b032edbb772fd4bab0a9a93e46d9db1d8a9f0d482b4"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe3DS2/Stripe3DS2DemoUI/Resources/acs_challenge.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b6e0e99edcfd5ea0d2da8daa3a6fcd8a61d13cb782e9e4159ac851a8525dfe"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe3DS2/Stripe3DS2DemoUI/Resources/acs_challenge.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6c2cb84149321f9186bf3ca6cc237fdbbc91ac2f73e7fdf6a4e190e08ca9ad"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".jazzy/theme/templates/doc.mustache"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8c982bee0262f643dd67f87e66950424111d3a262af18756343bdbdee6d38d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: outline:none/0 with no :focus rule in the same stylesheet removes the focus ring. Provide a visible :focus / :focus-visible style."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Stripe3DS2/Stripe3DS2DemoUI/Resources/acs_challenge.html"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e326febbe8252f2d7d26429d71477712a14321ca2cfd0b13ddf4c5cacc07fef"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no accessibility linting at author time and no automated accessibility check in tests or CI. Add your UI toolkit\u0027s own accessibility assertion to the test suite (Flutter \u0060meetsGuideline\u0060, Espresso \u0060AccessibilityChecks\u0060, XCTest \u0060performAccessibilityAudit\u0060), then gate that test in the pipeline. What was searched, so you can tell an absence from a miss: the 11 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README omits the StripePaymentsUI project entirely \u2014 reported by the model that read the README against this repository; no term search was run for this one, so nothing here has been checked against the tree. Treat it as a reading to confirm, not as a measured contradiction: verify it against the code before acting on it, and if the footprint it describes does exist, this row is wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"343bbbd51ceb8de7a9ff88d79f7c797abf9b5921f8727b67b4d0f4f8a22c5e49"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 5/7 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060Stripe\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 14061 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ENV[\u0027BITRISE_GIT_BRANCH\u0027] || \u0060git rev-parse --abbrev-ref HEAD\u0060.strip\u0060 appears character-identically in 2 files \u2014 ci_scripts/push_snapshots.rb, ci_scripts/trigger_react_native_ci_for_release.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ci_scripts/push_snapshots.rb"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"698b950586cb5837e8949d2a0dc91bd8c5b3f02999276f100427375e818ce9de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060NSClassFromString(\u0022XCTest\u0022) != nil || ProcessInfo.processInfo.environment[\u0022UITesting\u0022] != nil\u0060 appears character-identically in 2 files \u2014 StripeCore/StripeCore/Source/Analytics/STPAnalyticsClient.swift, StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/RotatingCardBrandsView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeCore/StripeCore/Source/Analytics/STPAnalyticsClient.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c435f73290f4e4e0a5f7b14a571f7c7e6ffe6f2b951712053fd61300b4be0611"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060components.count \u003E= 2 \u0026\u0026 components[0].hasPrefix(\u0022seti_\u0022)\u0060 appears character-identically in 2 files \u2014 StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/SetupIntent.swift, StripePayments/StripePayments/Source/API Bindings/Models/SetupIntents/STPSetupIntent.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/SetupIntent.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e00dd04b50cb54b8dc5fb1dc1dfab5463926fff7e8516deaaa86d7d0988d469"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060secretComponents.count \u003E= 2 \u0026\u0026 secretComponents[0].hasPrefix(\u0022pi_\u0022) \u0026\u0026 !secretComponents[1].isEmpty\u0060 appears character-identically in 2 files \u2014 StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntent.swift, StripePayments/StripePayments/Source/API Bindings/Models/PaymentIntents/STPPaymentIntent.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StripeApplePay/StripeApplePay/Source/PaymentsCore/API/Models/PaymentIntent.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3a3175e723dc3748b694513488a9f6769c318f0088598b3a2e23c14946a144"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-134","guid":"f92eb270-a113-5050-a4e8-7173e51af580","name":"CWE-134","shortDescription":{"text":"CWE-134"},"helpUri":"https://cwe.mitre.org/data/definitions/134.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-943","guid":"da8ca609-5263-5d50-8f65-8e61b9587003","name":"CWE-943","shortDescription":{"text":"CWE-943"},"helpUri":"https://cwe.mitre.org/data/definitions/943.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":51,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}