| src/api/admin-disputes.js:95 |
complexity |
Async function 'handleAdminUpdateDispute' has a complexity of 19. Maximum allowed is 10. |
| src/api/admin-disputes.js:95 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed. |
| src/api/admin-disputes.test.js:10 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed. |
| src/api/admin-keys.js:24 |
complexity |
Async function 'handleCreateAdminKey' has a complexity of 13. Maximum allowed is 10. |
| src/api/admin.js:373 |
complexity |
Async function 'handleExportData' has a complexity of 11. Maximum allowed is 10. |
| src/api/auth.js:103 |
complexity |
Async function 'handleLogout' has a complexity of 22. Maximum allowed is 10. |
| src/api/auth.js:103 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 30 to the 15 allowed. |
| src/api/auth.js:278 |
complexity |
Async function 'handleCreateApiKey' has a complexity of 14. Maximum allowed is 10. |
| src/api/auth.js:386 |
complexity |
Async function 'handleUpdateApiKey' has a complexity of 17. Maximum allowed is 10. |
| src/api/auth.js:386 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed. |
| src/api/auth.js:455 |
complexity |
Async function 'handleDeleteAccount' has a complexity of 14. Maximum allowed is 10. |
| src/api/auth.js:455 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed. |
| src/api/clerk-webhook.js:72 |
complexity |
Async function 'handleClerkWebhook' has a complexity of 11. Maximum allowed is 10. |
| src/api/content-deletion.js:13 |
complexity |
Async function 'handleDeleteContent' has a complexity of 28. Maximum allowed is 10. |
| src/api/content-deletion.js:13 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 32 to the 15 allowed. |
| src/api/content.js:75 |
complexity |
Async function 'handleUploadContent' has a complexity of 77. Maximum allowed is 10. |
| src/api/content.js:75 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 93 to the 15 allowed. |
| src/api/content.js:611 |
complexity |
Async function 'handleExtendContent' has a complexity of 21. Maximum allowed is 10. |
| src/api/content.js:611 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed. |
| src/api/content.js:839 |
complexity |
Async function 'handleDownloadContent' has a complexity of 40. Maximum allowed is 10. |
| src/api/content.js:839 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 59 to the 15 allowed. |
| src/api/disputes.js:12 |
complexity |
Async function 'handleCreateDispute' has a complexity of 15. Maximum allowed is 10. |
| src/api/downloads.js:14 |
complexity |
Async function 'routeDownloads' has a complexity of 39. Maximum allowed is 10. |
| src/api/downloads.js:14 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 58 to the 15 allowed. |
| src/api/oauth.js:110 |
complexity |
Function 'validateAuthorizeRequest' has a complexity of 16. Maximum allowed is 10. |
| src/api/oauth.js:162 |
complexity |
Function 'grantedAccess' has a complexity of 30. Maximum allowed is 10. |
| src/api/oauth.js:162 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed. |
| src/api/oauth.js:200 |
complexity |
Async function 'createGrant' has a complexity of 11. Maximum allowed is 10. |
| src/api/oauth.js:338 |
complexity |
Async function 'handleOAuthAuthorize' has a complexity of 14. Maximum allowed is 10. |
| src/api/oauth.js:426 |
complexity |
Async function 'handleGetOAuthAuthorizePage' has a complexity of 16. Maximum allowed is 10. |
| src/api/oauth.js:426 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed. |
| src/api/oauth.js:869 |
complexity |
Async function 'handleOAuthToken' has a complexity of 30. Maximum allowed is 10. |
| src/api/oauth.js:869 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 46 to the 15 allowed. |
| src/api/payments.js:27 |
complexity |
Async function 'handleCreateDeposit' has a complexity of 13. Maximum allowed is 10. |
| src/api/payments.js:287 |
complexity |
Async function 'handleCheckoutSessionCompleted' has a complexity of 21. Maximum allowed is 10. |
| src/api/payments.js:287 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 36 to the 15 allowed. |
| src/api/payments.js:490 |
complexity |
Async function 'handleCreateDonation' has a complexity of 15. Maximum allowed is 10. |
| src/api/payments.js:490 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. |
| src/api/publish.js:24 |
complexity |
Async function 'handlePublish' has a complexity of 24. Maximum allowed is 10. |
| src/api/publish.js:24 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed. |
| src/api/rate-limit.js:18 |
complexity |
Async function 'handlePurchaseRateLimit' has a complexity of 19. Maximum allowed is 10. |
| src/api/rate-limit.js:18 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed. |
| src/api/suppliers.js:23 |
complexity |
Async function 'handleCreateSupplier' has a complexity of 12. Maximum allowed is 10. |
| src/api/user.js:13 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed. |
| src/auth/download-tokens.js:67 |
complexity |
Async function 'verifyDownloadToken' has a complexity of 12. Maximum allowed is 10. |
| src/auth/download-tokens.js:78 |
complexity |
Async function 'verifyDownloadOAuth' has a complexity of 15. Maximum allowed is 10. |
| src/auth/dpop.js:15 |
complexity |
Async function 'verifyDPoP' has a complexity of 28. Maximum allowed is 10. |
| src/auth/dpop.js:15 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed. |
| src/auth/middleware.js:120 |
complexity |
Async function 'validateApiKey' has a complexity of 12. Maximum allowed is 10. |
| src/auth/middleware.js:276 |
complexity |
Async function 'validateOAuthAccessToken' has a complexity of 22. Maximum allowed is 10. |
| src/auth/middleware.js:276 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed. |
| src/auth/middleware.js:420 |
complexity |
Async function 'authenticateUncached' has a complexity of 24. Maximum allowed is 10. |
| src/auth/middleware.js:420 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 48 to the 15 allowed. |
| src/auth/scopes.js:136 |
complexity |
Function 'parseCaveats' has a complexity of 15. Maximum allowed is 10. |
| src/auth/scopes.js:136 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed. |
| src/auth/scopes.js:176 |
complexity |
Function 'checkCaveats' has a complexity of 14. Maximum allowed is 10. |
| src/durable-objects/admin-action-log.js:21 |
complexity |
Async method 'fetch' has a complexity of 15. Maximum allowed is 10. |
| src/durable-objects/alert-store.js:38 |
complexity |
Async method 'fetch' has a complexity of 11. Maximum allowed is 10. |
| src/durable-objects/application-registry.js:11 |
complexity |
Function 'validateAppFields' has a complexity of 14. Maximum allowed is 10. |
| src/durable-objects/application-registry.js:11 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. |
| src/durable-objects/application-registry.js:95 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed. |
| src/durable-objects/application-registry.js:95 |
complexity |
Async method 'fetch' has a complexity of 17. Maximum allowed is 10. |
| src/durable-objects/application-registry.js:211 |
complexity |
Async method 'updateApplication' has a complexity of 11. Maximum allowed is 10. |
| src/durable-objects/backup-index.js:28 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed. |
| src/durable-objects/backup-index.js:28 |
complexity |
Async method 'fetch' has a complexity of 16. Maximum allowed is 10. |
| src/durable-objects/content-metadata.js:47 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 40 to the 15 allowed. |
| src/durable-objects/content-metadata.js:47 |
complexity |
Async method 'handleRequest' has a complexity of 38. Maximum allowed is 10. |
| src/durable-objects/content-metadata.js:209 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 23 to the 15 allowed. |
| src/durable-objects/content-metadata.js:209 |
complexity |
Async method 'reserveDownloads' has a complexity of 21. Maximum allowed is 10. |
| src/durable-objects/deletion-record.js:19 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed. |
| src/durable-objects/deletion-record.js:19 |
complexity |
Async method 'fetch' has a complexity of 23. Maximum allowed is 10. |
| src/durable-objects/dispute-index.js:25 |
complexity |
Async method 'fetch' has a complexity of 13. Maximum allowed is 10. |
| src/durable-objects/dispute-record.js:49 |
complexity |
Async method 'handleRequest' has a complexity of 12. Maximum allowed is 10. |
| src/durable-objects/dispute-record.js:92 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 32 to the 15 allowed. |
| src/durable-objects/dispute-record.js:92 |
complexity |
Async method 'createDispute' has a complexity of 31. Maximum allowed is 10. |
| src/durable-objects/dispute-record.js:302 |
complexity |
Async method 'updateDispute' has a complexity of 11. Maximum allowed is 10. |
| src/durable-objects/download-budget.js:33 |
complexity |
Async function 'returnLease' has a complexity of 19. Maximum allowed is 10. |
| src/durable-objects/download-budget.js:33 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. |
| src/durable-objects/download-budget.js:68 |
complexity |
Async function 'handleDownloadBudget' has a complexity of 82. Maximum allowed is 10. |
| src/durable-objects/download-budget.js:68 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 124 to the 15 allowed. |
| src/durable-objects/expiration-index.js:22 |
complexity |
Async method 'fetch' has a complexity of 13. Maximum allowed is 10. |
| src/durable-objects/infrastructure-cost.js:43 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 35 to the 15 allowed. |
| src/durable-objects/infrastructure-cost.js:43 |
complexity |
Async method 'fetch' has a complexity of 32. Maximum allowed is 10. |
| src/durable-objects/infrastructure-cost.js:121 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 59 to the 15 allowed. |
| src/durable-objects/infrastructure-cost.js:121 |
complexity |
Async method 'recordSnapshot' has a complexity of 51. Maximum allowed is 10. |
| src/durable-objects/infrastructure-cost.js:184 |
complexity |
Async arrow function has a complexity of 12. Maximum allowed is 10. |
| src/durable-objects/infrastructure-cost.js:310 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed. |
| src/durable-objects/infrastructure-cost.js:310 |
complexity |
Async method 'getCostSummary' has a complexity of 16. Maximum allowed is 10. |
| src/durable-objects/payment-record.js:15 |
complexity |
Async method 'fetch' has a complexity of 13. Maximum allowed is 10. |
| src/durable-objects/payment-record.js:63 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. |
| src/durable-objects/payment-record.js:63 |
complexity |
Async method 'createTransaction' has a complexity of 18. Maximum allowed is 10. |
| src/durable-objects/platform-stats.js:25 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 26 to the 15 allowed. |
| src/durable-objects/platform-stats.js:25 |
complexity |
Async method 'handleRequest' has a complexity of 22. Maximum allowed is 10. |
| src/durable-objects/platform-stats.js:140 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 31 to the 15 allowed. |
| src/durable-objects/platform-stats.js:140 |
complexity |
Async method 'getStats' has a complexity of 28. Maximum allowed is 10. |
| src/durable-objects/platform-stats.js:226 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed. |
| src/durable-objects/platform-stats.js:226 |
complexity |
Async method 'getFinancialStats' has a complexity of 22. Maximum allowed is 10. |
| src/durable-objects/supplier-registry.js:45 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed. |
| src/durable-objects/supplier-registry.js:45 |
complexity |
Async method 'handleRequest' has a complexity of 20. Maximum allowed is 10. |
| src/durable-objects/supplier-registry.js:135 |
complexity |
Async method 'createOrUpdateSupplier' has a complexity of 13. Maximum allowed is 10. |
| src/durable-objects/supplier-registry.js:301 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed. |
| src/durable-objects/supplier-registry.js:301 |
complexity |
Async method 'recordRequest' has a complexity of 15. Maximum allowed is 10. |
| src/durable-objects/user-profile.js:94 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 84 to the 15 allowed. |
| src/durable-objects/user-profile.js:94 |
complexity |
Async method 'handleRequest' has a complexity of 80. Maximum allowed is 10. |
| src/durable-objects/user-profile.js:785 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. |
| src/durable-objects/user-profile.js:785 |
complexity |
Async method 'updateApiKey' has a complexity of 17. Maximum allowed is 10. |
| src/durable-objects/user-profile.js:1012 |
complexity |
Async method 'narrowOAuthGrant' has a complexity of 11. Maximum allowed is 10. |
| src/durable-objects/user-profile.js:1274 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed. |
| src/durable-objects/user-profile.js:1274 |
complexity |
Async method 'rotateOAuthRefreshToken' has a complexity of 21. Maximum allowed is 10. |
| src/durable-objects/user-profile.js:1437 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. |
| src/durable-objects/user-profile.js:1437 |
complexity |
Async method 'debitBalance' has a complexity of 18. Maximum allowed is 10. |
| src/index.js:178 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 43 to the 15 allowed. |
| src/index.js:178 |
complexity |
Async method 'fetch' has a complexity of 33. Maximum allowed is 10. |
| src/index.js:418 |
complexity |
Async method 'runAnomalyDetection' has a complexity of 11. Maximum allowed is 10. |
| src/index.js:892 |
complexity |
Async function 'handleHealth' has a complexity of 28. Maximum allowed is 10. |
| src/index.js:892 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 35 to the 15 allowed. |
| src/index.js:1172 |
complexity |
Async function 'checkClerk' has a complexity of 15. Maximum allowed is 10. |
| src/index.js:1172 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed. |
| src/index.js:1227 |
complexity |
Async function 'checkStripe' has a complexity of 13. Maximum allowed is 10. |
| src/index.js:1227 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed. |
| src/integration/content-lifecycle.test.js:17 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed. |
| src/services/account-move.js:42 |
complexity |
Function 'isFresh' has a complexity of 12. Maximum allowed is 10. |
| src/services/account-move.js:102 |
complexity |
Async function 'moveAccount' has a complexity of 35. Maximum allowed is 10. |
| src/services/account-move.js:102 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 38 to the 15 allowed. |
| src/services/cost-monitor-rollover.test.js:24 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 34 to the 15 allowed. |
| src/services/cost-monitor-rollover.test.js:41 |
complexity |
Async arrow function has a complexity of 14. Maximum allowed is 10. |
| src/services/cost-monitor.js:73 |
complexity |
Function 'measureUsage' has a complexity of 14. Maximum allowed is 10. |
| src/services/cost-monitor.js:73 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed. |
| src/services/cost-monitor.js:194 |
complexity |
Async function 'refreshCompletedMonth' has a complexity of 16. Maximum allowed is 10. |
| src/services/cost-monitor.js:194 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed. |
| src/services/cost-monitor.js:233 |
complexity |
Async function 'runCostMonitor' has a complexity of 13. Maximum allowed is 10. |
| src/services/cost-safety.test.js:214 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 23 to the 15 allowed. |
| src/utils/backup.js:53 |
complexity |
Async function 'handleBackupRequest' has a complexity of 12. Maximum allowed is 10. |
| src/utils/backup.js:53 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. |
| src/utils/credential-spend.js:39 |
complexity |
Function 'findSpender' has a complexity of 12. Maximum allowed is 10. |
| src/utils/download-budget.js:15 |
complexity |
Function 'downloadIdentityValid' has a complexity of 12. Maximum allowed is 10. |
| src/utils/supplier-fallback.js:63 |
complexity |
Async function 'fetchFromAlternate' has a complexity of 13. Maximum allowed is 10. |
| src/utils/supplier-fallback.js:160 |
complexity |
Async function 'tryAlternateSuppliers' has a complexity of 20. Maximum allowed is 10. |
| src/utils/supplier-fallback.js:160 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 40 to the 15 allowed. |
| src/utils/supplier-validation.js:11 |
complexity |
Function 'validateSupplierURL' has a complexity of 21. Maximum allowed is 10. |
| src/utils/supplier-validation.js:11 |
sonarjs/cognitive-complexity |
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed. |