feat(x402): production-grade HTTP payment rails, persistent stores, w… - #480
feat(x402): production-grade HTTP payment rails, persistent stores, w…#480Unclebaffa wants to merge 4 commits into
Quality Gate failed
Failed conditions
C Security Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension
SonarQube for IDE
Annotations
Check warning on line 29 in __tests__/x402-subscriptions-persistence.test.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(onDisk).toHaveLength(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.
See more on https://sonarcloud.io/project/issues?id=Bitcoindefi_Open-Stellar&issues=AaAbCu5mqAnnN-dvfNy_&open=AaAbCu5mqAnnN-dvfNy_&pullRequest=480
Check warning on line 5 in lib/protocols/x402.ts
sonarqubecloud / SonarCloud Code Analysis
Remove this unused import of 'writeSubscriptions'.
See more on https://sonarcloud.io/project/issues?id=Bitcoindefi_Open-Stellar&issues=AaAbCu6HqAnnN-dvfNzB&open=AaAbCu6HqAnnN-dvfNzB&pullRequest=480
Check warning on line 32 in __tests__/x402-webhooks.test.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(deliveries).toHaveLength(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.
See more on https://sonarcloud.io/project/issues?id=Bitcoindefi_Open-Stellar&issues=AaAbCuZ3qAnnN-dvfNy-&open=AaAbCuZ3qAnnN-dvfNy-&pullRequest=480
Check warning on line 36 in lib/protocols/x402-webhooks.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=Bitcoindefi_Open-Stellar&issues=AaAbCu6UqAnnN-dvfNzD&open=AaAbCu6UqAnnN-dvfNzD&pullRequest=480
Check warning on line 40 in lib/protocols/x402-webhooks.ts
sonarqubecloud / SonarCloud Code Analysis
Make sure that using this pseudorandom number generator is safe here.
See more on https://sonarcloud.io/project/issues?id=Bitcoindefi_Open-Stellar&issues=AaAbCu6UqAnnN-dvfNzE&open=AaAbCu6UqAnnN-dvfNzE&pullRequest=480
Check warning on line 54 in __tests__/x402-subscriptions-persistence.test.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(result.renewed).toHaveLength(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.
See more on https://sonarcloud.io/project/issues?id=Bitcoindefi_Open-Stellar&issues=AaAbCu5mqAnnN-dvfNzA&open=AaAbCu5mqAnnN-dvfNzA&pullRequest=480
Check failure on line 22 in lib/protocols/x402-webhooks.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=Bitcoindefi_Open-Stellar&issues=AaAbCu6UqAnnN-dvfNzC&open=AaAbCu6UqAnnN-dvfNzC&pullRequest=480