Polar — A billing platform for the intelligence era
This report presents the forensic synthetic code analysis of polarsource/polar, a Python project with 10,216 GitHub stars. SynthScan v2.0 examined 845,075 lines of code across 4098 source files, recording 8707 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 15.1 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 8707 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | clients/packages/ui/src/components/ui/chart.tsx | 325 | function getPayloadConfigFromPayload( | CODE |
| LOW | clients/apps/app/auth/refresher.ts | 66 | function oauthTokenEndpointErrorCode(error: unknown): string | undefined { | CODE |
| LOW | clients/apps/app/auth/refresher.ts | 78 | function shouldClearSessionAfterTokenRefreshFailure(error: unknown): boolean { | CODE |
| LOW | clients/apps/app/providers/NotificationsProvider.tsx | 24 | async function registerForPushNotificationsAsync() { | CODE |
| LOW | clients/apps/app/providers/OrganizationProvider.tsx | 31 | export function PolarOrganizationProvider({ children }: PropsWithChildren) { | CODE |
| LOW | …/[organization]/portal/CustomerPortalLayoutWrapper.tsx | 18 | export function CustomerPortalLayoutWrapper({ | CODE |
| LOW | clients/apps/web/src/utils/order.ts | 41 | export function isOrderInDunningLifecycle( | CODE |
| LOW | clients/apps/web/src/utils/order.ts | 141 | export function getChargebackPreventionRefund( | CODE |
| LOW | clients/apps/web/src/utils/i18n/index.ts | 8 | export function parseAcceptLanguageHeader( | CODE |
| LOW⚡ | clients/apps/web/src/utils/i18n/index.ts | 39 | function getLocaleFromAcceptLanguageHeader( | CODE |
| LOW⚡ | clients/apps/web/src/utils/i18n/index.ts | 45 | function getPrimaryLanguageForLocale(locale: string): string { | CODE |
| LOW⚡ | clients/apps/web/src/utils/i18n/index.ts | 49 | export function findMatchingLocaleInAcceptLanguageHeader( | CODE |
| LOW | …/components/Metrics/CancellationsDistributionChart.tsx | 30 | export default function CancellationsDistributionChart({ | CODE |
| LOW | …b/src/components/Metrics/CancellationsStackedChart.tsx | 57 | export default function CancellationsStackedChart({ | CODE |
| LOW | …nents/Metrics/dashboards/DashboardDetailClientPage.tsx | 32 | export default function DashboardDetailClientPage({ | CODE |
| LOW | …src/components/Settings/OrganizationDeleteSettings.tsx | 19 | export default function OrganizationDeleteSettings({ | CODE |
| LOW | …src/components/Settings/BackupCodesRegenerateModal.tsx | 11 | export default function BackupCodesRegenerateModal({ | CODE |
| LOW | …eb/src/components/Auth/OrganizationPermissionGuard.tsx | 11 | export default async function OrganizationPermissionGuard({ | CODE |
| LOW | clients/apps/web/src/components/Benefit/utils.tsx | 109 | export function isBenefitVisibilityConfigurable( | CODE |
| LOW | clients/apps/web/src/hooks/queries/customerPortal.ts | 8 | export function useCustomerPortalCustomer(options?: { | CODE |
| LOW | server/polar/config.py | 30 | def _validate_email_renderer_binary_path(value: Path) -> Path: | CODE |
| LOW | server/polar/config.py | 453 | def get_customer_portal_url_override( | STRING |
| LOW | server/polar/config.py | 672 | def apply_postgres_url_non_pooling(self) -> "Settings": | STRING |
| LOW | server/polar/config.py | 746 | def is_read_replica_configured(self) -> bool: | STRING |
| LOW | server/polar/config.py | 811 | def stripe_descriptor_suffix_max_length(self) -> int: | STRING |
| LOW | server/polar/config.py | 823 | def get_pydantic_gateway_model( | STRING |
| LOW | server/polar/exception_handlers.py | 25 | async def request_validation_exception_handler( | CODE |
| LOW | server/polar/exception_handlers.py | 35 | async def polar_redirection_exception_handler( | CODE |
| LOW | server/polar/redis.py | 34 | async def _disconnect_raise_on_watching(self, conn: Any, error: Exception) -> None: | CODE |
| LOW | server/polar/redis.py | 55 | def _disconnect_raise_on_watching(self, conn: Any, error: Exception) -> None: | CODE |
| LOW | server/polar/operational_errors.py | 21 | def _sql_timeout_error_matcher(exc: BaseException) -> bool: | CODE |
| LOW | server/polar/operational_errors.py | 37 | def _sql_lock_not_available_error_matcher(exc: BaseException) -> bool: | CODE |
| LOW | server/polar/operational_errors.py | 51 | def _sql_deadlock_error_matcher(exc: BaseException) -> bool: | CODE |
| LOW⚡ | server/polar/operational_errors.py | 62 | def _timeout_lock_error_matcher(exc: BaseException) -> bool: | CODE |
| LOW⚡ | server/polar/operational_errors.py | 66 | def _external_event_already_handled_error_matcher(exc: BaseException) -> bool: | CODE |
| LOW⚡ | server/polar/operational_errors.py | 73 | def _tinybird_operational_error_matcher(exc: BaseException) -> bool: | CODE |
| LOW⚡ | server/polar/operational_errors.py | 80 | def _polar_self_client_operational_error_matcher(exc: BaseException) -> bool: | CODE |
| LOW⚡ | server/polar/operational_errors.py | 87 | def _email_sender_operational_error_matcher(exc: BaseException) -> bool: | CODE |
| LOW | server/polar/organization/service.py | 169 | def _is_hosted_website_domain(website_domain: str) -> bool: | CODE |
| LOW | server/polar/organization/service.py | 176 | def _email_domain_matches_website(email_domain: str, website_domain: str) -> bool: | CODE |
| LOW | server/polar/organization/service.py | 451 | async def _validate_currency_change( | CODE |
| LOW | server/polar/organization/service.py | 653 | async def reset_onboarding_for_review( | CODE |
| LOW | server/polar/organization/service.py | 1019 | async def _sync_polar_self_customer_owner( | CODE |
| LOW | server/polar/organization/service.py | 1135 | def _enqueue_cancel_pending_payouts(self, organization: Organization) -> None: | CODE |
| LOW | server/polar/organization/service.py | 1144 | def _enqueue_reject_stripe_account( | CODE |
| LOW | server/polar/organization/service.py | 1171 | async def confirm_organization_reviewed( | CODE |
| LOW | server/polar/organization/service.py | 1422 | async def handle_ongoing_review_verdict( | CODE |
| LOW | server/polar/organization/service.py | 1532 | async def unsnooze_expired_organizations( | CODE |
| LOW | server/polar/organization/service.py | 1552 | async def offboard_expired_organizations( | CODE |
| LOW | server/polar/organization/service.py | 1585 | async def complete_expired_offboarding( | CODE |
| LOW | server/polar/organization/service.py | 1627 | async def cancel_expired_organizations_subscriptions( | CODE |
| LOW | server/polar/organization/service.py | 1646 | async def set_organization_offboarded( | CODE |
| LOW | server/polar/organization/service.py | 1665 | def _transition_to_offboarded( | CODE |
| LOW | server/polar/organization/service.py | 1682 | async def set_organization_under_review( | CODE |
| LOW | server/polar/organization/service.py | 1781 | async def handle_account_risk_signal( | CODE |
| LOW | server/polar/organization/service.py | 1824 | async def set_organization_offboarding( | CODE |
| LOW | server/polar/organization/service.py | 2041 | def _build_identity_verification_check( | CODE |
| LOW | server/polar/organization/service.py | 2081 | def _build_product_description_check( | CODE |
| LOW | server/polar/organization/service.py | 2099 | def _build_payout_account_check( | CODE |
| LOW | server/polar/organization/service.py | 2127 | async def _build_product_configuration_check( | CODE |
| 5542 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | server/polar/organization/schemas.py | 0 | feature settings that organizations can update themselves. other feature settings are managed by polar staff: they're ig | STRING |
| HIGH | sdk/python/polar/v2026_10/inputs.py | 0 | feature settings that organizations can update themselves. other feature settings are managed by polar staff: they're ig | STRING |
| HIGH | sdk/python/polar/v2026_04/inputs.py | 0 | feature settings that organizations can update themselves. other feature settings are managed by polar staff: they're ig | STRING |
| HIGH | server/polar/webhook/schemas.py | 0 | a webhook event. an event represent something that happened in the system that should be sent to the webhook endpoint. i | STRING |
| HIGH | sdk/python/polar/v2026_10/outputs.py | 0 | a webhook event. an event represent something that happened in the system that should be sent to the webhook endpoint. i | STRING |
| HIGH | sdk/python/polar/v2026_04/outputs.py | 0 | a webhook event. an event represent something that happened in the system that should be sent to the webhook endpoint. i | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a new checkout is created. **discord & slack support:** basic | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a new checkout is created. **discord & slack support:** basic | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a new checkout is created. **discord & slack support:** basic | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a checkout is updated. **discord & slack support:** basic | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a checkout is updated. **discord & slack support:** basic | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a checkout is updated. **discord & slack support:** basic | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a checkout expires. this event fires when a checkout reaches its expiration time without being completed. deve | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a checkout expires. this event fires when a checkout reaches its expiration time without being completed. deve | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a checkout expires. this event fires when a checkout reaches its expiration time without being completed. deve | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a new customer is created. a customer can be created: * after a successful checkout. * programmatically via th | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a new customer is created. a customer can be created: * after a successful checkout. * programmatically via th | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a new customer is created. a customer can be created: * after a successful checkout. * programmatically via th | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a customer is updated. this event is fired when the customer details are updated. if you want to be notified w | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a customer is updated. this event is fired when the customer details are updated. if you want to be notified w | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a customer is updated. this event is fired when the customer details are updated. if you want to be notified w | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a customer is deleted. **discord & slack support:** basic | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a customer is deleted. **discord & slack support:** basic | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a customer is deleted. **discord & slack support:** basic | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a customer state has changed. it's triggered when: * customer is created, updated or deleted. * a subscription | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a customer state has changed. it's triggered when: * customer is created, updated or deleted. * a subscription | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a customer state has changed. it's triggered when: * customer is created, updated or deleted. * a subscription | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a new customer seat is assigned. this event is triggered when a seat is assigned to a customer by the organiza | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a new customer seat is assigned. this event is triggered when a seat is assigned to a customer by the organiza | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a new customer seat is assigned. this event is triggered when a seat is assigned to a customer by the organiza | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a customer seat is claimed. this event is triggered when a customer accepts the seat invitation and claims the | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a customer seat is claimed. this event is triggered when a customer accepts the seat invitation and claims the | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a customer seat is claimed. this event is triggered when a customer accepts the seat invitation and claims the | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a customer seat is revoked. this event is triggered when access to a seat is revoked, either manually by the o | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a customer seat is revoked. this event is triggered when access to a seat is revoked, either manually by the o | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a customer seat is revoked. this event is triggered when access to a seat is revoked, either manually by the o | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a new member is created. a member represents an individual within a customer (team). this event is triggered w | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a new member is created. a member represents an individual within a customer (team). this event is triggered w | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a new member is created. a member represents an individual within a customer (team). this event is triggered w | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a member is updated. this event is triggered when member details are updated, such as their name or role withi | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a member is updated. this event is triggered when member details are updated, such as their name or role withi | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a member is updated. this event is triggered when member details are updated, such as their name or role withi | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a member is deleted. this event is triggered when a member is removed from a customer. any active seats assign | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a member is deleted. this event is triggered when a member is removed from a customer. any active seats assign | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a member is deleted. this event is triggered when a member is removed from a customer. any active seats assign | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a new order is created. a new order is created when: * a customer purchases a one-time product. in this case, | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a new order is created. a new order is created when: * a customer purchases a one-time product. in this case, | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a new order is created. a new order is created when: * a customer purchases a one-time product. in this case, | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when an order is updated. an order is updated when: * its status changes, e.g. from `pending` to `paid`. * it's ref | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when an order is updated. an order is updated when: * its status changes, e.g. from `pending` to `paid`. * it's ref | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when an order is updated. an order is updated when: * its status changes, e.g. from `pending` to `paid`. * it's ref | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when an order is paid. when you receive this event, the order is fully processed and payment has been received. **d | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when an order is paid. when you receive this event, the order is fully processed and payment has been received. **d | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when an order is paid. when you receive this event, the order is fully processed and payment has been received. **d | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when an order is fully or partially refunded. **discord & slack support:** full | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when an order is fully or partially refunded. **discord & slack support:** full | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when an order is fully or partially refunded. **discord & slack support:** full | STRING |
| HIGH | server/polar/webhook/webhooks.py | 0 | sent when a new subscription is created. when this event occurs, the subscription `status` might not be `active` yet, as | STRING |
| HIGH | sdk/python/polar/v2026_10/webhooks.py | 0 | sent when a new subscription is created. when this event occurs, the subscription `status` might not be `active` yet, as | STRING |
| HIGH | sdk/python/polar/v2026_04/webhooks.py | 0 | sent when a new subscription is created. when this event occurs, the subscription `status` might not be `active` yet, as | STRING |
| 658 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | terraform/test/ecs.tf | 7 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/ecs.tf | 9 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/vercel-services.tf | 1 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/vercel-services.tf | 3 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/network.tf | 1 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/network.tf | 3 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/aws.tf | 167 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/aws.tf | 169 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/aws.tf | 194 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/aws.tf | 196 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/aws.tf | 256 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/aws.tf | 258 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 2 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 4 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 18 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 20 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 32 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 34 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/test/render.tf | 76 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/test/render.tf | 78 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/test/render.tf | 84 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/test/render.tf | 86 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 174 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 176 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 225 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/render.tf | 227 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/vercel.tf | 1 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/test/vercel.tf | 3 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/ecs.tf | 7 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/ecs.tf | 9 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/network.tf | 1 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/network.tf | 3 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/aws.tf | 188 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/aws.tf | 190 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/aws.tf | 212 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/aws.tf | 214 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/aws.tf | 270 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/aws.tf | 272 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/variables.tf | 1 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/variables.tf | 3 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/sandbox/render.tf | 2 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/sandbox/render.tf | 4 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/sandbox/render.tf | 13 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/sandbox/render.tf | 15 | # ============================================================================ | COMMENT |
| MEDIUM | terraform/sandbox/render.tf | 30 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/render.tf | 32 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/render.tf | 47 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/render.tf | 49 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/sandbox/render.tf | 73 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/sandbox/render.tf | 75 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/sandbox/render.tf | 81 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | terraform/sandbox/render.tf | 83 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/render.tf | 184 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/render.tf | 186 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/render.tf | 233 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/render.tf | 235 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/vercel.tf | 1 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/sandbox/vercel.tf | 3 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/production/ecs.tf | 7 | # ============================================================================= | COMMENT |
| MEDIUM | terraform/production/ecs.tf | 9 | # ============================================================================= | COMMENT |
| 199 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | server/polar/member/service.py | 155 | Soft delete a member. Any active seats assigned to this member will be automatically revoked b | STRING |
| HIGH | server/polar/member/service.py | 545 | Create a new member for a customer. The customer is resolved by either its internal ID (`customer_id`) | STRING |
| HIGH | server/polar/kit/http.py | 72 | Validate that the URL is crawlable (not private/reserved). Args: url: The URL to validate. Return | STRING |
| HIGH | server/polar/tax/tax_id.py | 501 | Validate a tax ID for a given country. Args: number: The tax ID to validate. country: The coun | STRING |
| HIGH | server/polar/tax/tax_id.py | 529 | Convert a tax ID to the format expected by Stripe. Args: value: A tuple containing the tax ID and the | STRING |
| HIGH | server/polar/tax/calculation/__init__.py | 79 | Calculate tax for the given parameters. Tries to calculate tax using the configured tax processors in order. If | STRING |
| HIGH | server/polar/backoffice/forms.py | 63 | Render the form field as HTML. Args: id: The HTML id and name attribute for the field. | STRING |
| HIGH | server/polar/backoffice/components/_description_list.py | 98 | Extract the raw attribute value from the data object. Args: item: The data object to extract from. | STRING |
| HIGH | server/polar/backoffice/components/_description_list.py | 112 | Get the formatted string value for display. This method can be overridden in subclasses to provide custom forma | STRING |
| HIGH | server/polar/backoffice/components/_description_list.py | 146 | Get the formatted datetime string for display. Args: item: The data object to extract the datetime | STRING |
| HIGH | server/polar/backoffice/components/_datatable.py | 211 | Extract the raw attribute value from the model item. Args: item: The model item to extract from. | STRING |
| HIGH | server/polar/backoffice/components/_datatable.py | 225 | Get the formatted string value for display. This method can be overridden in subclasses to provide custom forma | STRING |
| HIGH | server/polar/backoffice/components/_datatable.py | 260 | Get the formatted datetime string for display. Args: item: The model item to extract the datetime f | STRING |
| HIGH | server/polar/product/price_set.py | 48 | Create a PriceSet from a product's prices filtered by currency. Args: product: The product containi | STRING |
| HIGH | server/polar/product/price_set.py | 65 | Create a PriceSet from a sequence of prices filtered by currency. Iterates through the provided currencies in o | STRING |
| HIGH | server/polar/benefit/strategies/base/service.py | 103 | Executes the logic to grant a benefit to a customer. Args: benefit: The Benefit to grant. | STRING |
| HIGH | server/polar/benefit/strategies/base/service.py | 141 | Executes the logic when a subscription is renewed for a new cycle for a granted benefit. Args: | STRING |
| HIGH | server/polar/benefit/strategies/base/service.py | 173 | Executes the logic to revoke a benefit from a customer. Args: benefit: The Benefit to revo | STRING |
| HIGH | server/polar/benefit/strategies/base/service.py | 217 | Validates the benefit properties before creation. Useful if we need to call external logic to make sur | STRING |
| HIGH | sdk/python/polar/v2026_10/services/files.py | 89 | List files. **Scopes**: `files:read` `files:write` Args: organization_id: Filter | STRING |
| HIGH | sdk/python/polar/v2026_10/services/files.py | 378 | List files. **Scopes**: `files:read` `files:write` Args: organization_id: Filter | STRING |
| HIGH | sdk/python/polar/v2026_10/services/payments.py | 106 | List payments. **Scopes**: `payments:read` Args: organization_id: Filter by organ | STRING |
| HIGH | sdk/python/polar/v2026_10/services/payments.py | 273 | List payments. **Scopes**: `payments:read` Args: organization_id: Filter by organ | STRING |
| HIGH | sdk/python/polar/v2026_10/services/checkouts.py | 115 | List checkout sessions. **Scopes**: `checkouts:read` `checkouts:write` Args: orga | STRING |
| HIGH | sdk/python/polar/v2026_10/services/checkouts.py | 487 | List checkout sessions. **Scopes**: `checkouts:read` `checkouts:write` Args: orga | STRING |
| HIGH | sdk/python/polar/v2026_10/services/meters.py | 102 | List meters. **Scopes**: `meters:read` `meters:write` Args: organization_id: Filt | STRING |
| HIGH | sdk/python/polar/v2026_10/services/meters.py | 393 | List meters. **Scopes**: `meters:read` `meters:write` Args: organization_id: Filt | STRING |
| HIGH | sdk/python/polar/v2026_10/services/disputes.py | 91 | List disputes. **Scopes**: `disputes:read` `disputes:write` Args: organization_id | STRING |
| HIGH | sdk/python/polar/v2026_10/services/disputes.py | 278 | List disputes. **Scopes**: `disputes:read` `disputes:write` Args: organization_id | STRING |
| HIGH | sdk/python/polar/v2026_10/services/members.py | 88 | List members with optional customer ID filter. **Scopes**: `members:read` `members:write` Arg | STRING |
| HIGH | sdk/python/polar/v2026_10/services/members.py | 192 | List members with optional customer ID filter. **Scopes**: `members:read` `members:write` Arg | STRING |
| HIGH | sdk/python/polar/v2026_10/services/license_keys.py | 101 | Get license keys connected to the given organization & filters. **Scopes**: `license_keys:read` `licen | STRING |
| HIGH | sdk/python/polar/v2026_10/services/license_keys.py | 450 | Get license keys connected to the given organization & filters. **Scopes**: `license_keys:read` `licen | STRING |
| HIGH | sdk/python/polar/v2026_10/services/customer_meters.py | 93 | List customer meters. **Scopes**: `customer_meters:read` Args: organization_id: F | STRING |
| HIGH | sdk/python/polar/v2026_10/services/customer_meters.py | 242 | List customer meters. **Scopes**: `customer_meters:read` Args: organization_id: F | STRING |
| HIGH | sdk/python/polar/v2026_10/services/checkout_links.py | 92 | List checkout links. **Scopes**: `checkout_links:read` `checkout_links:write` Args: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/checkout_links.py | 370 | List checkout links. **Scopes**: `checkout_links:read` `checkout_links:write` Args: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/events.py | 193 | List event names. **Scopes**: `events:read` `events:write` Args: organization_id: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/events.py | 470 | List event names. **Scopes**: `events:read` `events:write` Args: organization_id: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/refunds.py | 108 | List refunds. **Scopes**: `refunds:read` `refunds:write` Args: id: Filter by refu | STRING |
| HIGH | sdk/python/polar/v2026_10/services/refunds.py | 274 | List refunds. **Scopes**: `refunds:read` `refunds:write` Args: id: Filter by refu | STRING |
| HIGH | sdk/python/polar/v2026_10/services/subscriptions.py | 158 | List subscriptions. **Scopes**: `subscriptions:read` `subscriptions:write` Args: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/subscriptions.py | 651 | List subscriptions. **Scopes**: `subscriptions:read` `subscriptions:write` Args: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/discounts.py | 91 | List discounts. **Scopes**: `discounts:read` `discounts:write` Args: organization | STRING |
| HIGH | sdk/python/polar/v2026_10/services/discounts.py | 361 | List discounts. **Scopes**: `discounts:read` `discounts:write` Args: organization | STRING |
| HIGH | sdk/python/polar/v2026_10/services/products.py | 118 | List products. **Scopes**: `products:read` `products:write` Args: id: Filter by p | STRING |
| HIGH | sdk/python/polar/v2026_10/services/products.py | 431 | List products. **Scopes**: `products:read` `products:write` Args: id: Filter by p | STRING |
| HIGH | sdk/python/polar/v2026_10/services/orders.py | 146 | List orders. **Scopes**: `orders:read` Args: organization_id: Filter by organizat | STRING |
| HIGH | sdk/python/polar/v2026_10/services/orders.py | 657 | List orders. **Scopes**: `orders:read` Args: organization_id: Filter by organizat | STRING |
| HIGH | sdk/python/polar/v2026_10/services/organizations.py | 88 | List organizations. **Scopes**: `organizations:read` `organizations:write` Args: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/organizations.py | 303 | List organizations. **Scopes**: `organizations:read` `organizations:write` Args: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/benefits.py | 127 | List benefits. **Scopes**: `benefits:read` `benefits:write` Args: organization_id | STRING |
| HIGH | sdk/python/polar/v2026_10/services/benefits.py | 526 | List the downloadable files for a benefit with their download statistics. **Scopes**: `benefits:read` | STRING |
| HIGH | sdk/python/polar/v2026_10/services/benefits.py | 628 | List the individual grants for a benefit. It's especially useful to check if a user has been granted a | STRING |
| HIGH | sdk/python/polar/v2026_10/services/benefits.py | 747 | List benefits. **Scopes**: `benefits:read` `benefits:write` Args: organization_id | STRING |
| HIGH | sdk/python/polar/v2026_10/services/benefits.py | 1147 | List the downloadable files for a benefit with their download statistics. **Scopes**: `benefits:read` | STRING |
| HIGH | sdk/python/polar/v2026_10/services/benefits.py | 1250 | List the individual grants for a benefit. It's especially useful to check if a user has been granted a | STRING |
| HIGH | sdk/python/polar/v2026_10/services/custom_fields.py | 103 | List custom fields. **Scopes**: `custom_fields:read` `custom_fields:write` Args: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/custom_fields.py | 448 | List custom fields. **Scopes**: `custom_fields:read` `custom_fields:write` Args: | STRING |
| HIGH | sdk/python/polar/v2026_10/services/webhooks.py | 83 | List webhook endpoints. **Scopes**: `webhooks:read` `webhooks:write` Args: organi | STRING |
| 109 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/polar/tasks.py | 1 | CODE | |
| LOW | server/polar/tasks.py | 2 | CODE | |
| LOW | server/polar/tasks.py | 3 | CODE | |
| LOW | server/polar/tasks.py | 4 | CODE | |
| LOW | server/polar/tasks.py | 5 | CODE | |
| LOW | server/polar/tasks.py | 6 | CODE | |
| LOW | server/polar/tasks.py | 7 | CODE | |
| LOW | server/polar/tasks.py | 8 | CODE | |
| LOW | server/polar/tasks.py | 9 | CODE | |
| LOW | server/polar/tasks.py | 10 | CODE | |
| LOW | server/polar/tasks.py | 11 | CODE | |
| LOW | server/polar/tasks.py | 12 | CODE | |
| LOW | server/polar/tasks.py | 13 | CODE | |
| LOW | server/polar/tasks.py | 14 | CODE | |
| LOW | server/polar/tasks.py | 15 | CODE | |
| LOW | server/polar/tasks.py | 16 | CODE | |
| LOW | server/polar/tasks.py | 17 | CODE | |
| LOW | server/polar/tasks.py | 18 | CODE | |
| LOW | server/polar/tasks.py | 19 | CODE | |
| LOW | server/polar/tasks.py | 20 | CODE | |
| LOW | server/polar/tasks.py | 21 | CODE | |
| LOW | server/polar/tasks.py | 22 | CODE | |
| LOW | server/polar/tasks.py | 23 | CODE | |
| LOW | server/polar/tasks.py | 24 | CODE | |
| LOW | server/polar/tasks.py | 25 | CODE | |
| LOW | server/polar/tasks.py | 26 | CODE | |
| LOW | server/polar/tasks.py | 27 | CODE | |
| LOW | server/polar/tasks.py | 28 | CODE | |
| LOW | server/polar/tasks.py | 29 | CODE | |
| LOW | server/polar/tasks.py | 30 | CODE | |
| LOW | server/polar/tasks.py | 31 | CODE | |
| LOW | server/polar/tasks.py | 32 | CODE | |
| LOW | server/polar/tasks.py | 33 | CODE | |
| LOW | server/polar/tasks.py | 34 | CODE | |
| LOW | server/polar/tasks.py | 35 | CODE | |
| LOW | server/polar/tasks.py | 36 | CODE | |
| LOW | server/polar/tasks.py | 37 | CODE | |
| LOW | server/polar/tasks.py | 38 | CODE | |
| LOW | server/polar/tasks.py | 39 | CODE | |
| LOW | server/polar/tasks.py | 40 | CODE | |
| LOW | server/polar/tasks.py | 41 | CODE | |
| LOW | server/polar/tasks.py | 42 | CODE | |
| LOW | server/polar/tasks.py | 43 | CODE | |
| LOW | server/polar/tasks.py | 44 | CODE | |
| LOW | server/polar/tasks.py | 45 | CODE | |
| LOW | server/polar/openapi.py | 13 | CODE | |
| LOW | server/polar/logfire.py | 23 | CODE | |
| LOW | server/polar/logfire.py | 24 | CODE | |
| LOW | server/polar/logfire.py | 24 | CODE | |
| LOW | server/polar/logfire.py | 25 | CODE | |
| LOW | server/polar/logfire.py | 26 | CODE | |
| LOW | server/polar/__init__.py | 5 | CODE | |
| LOW | server/polar/postgres.py | 8 | CODE | |
| LOW | server/polar/app.py | 8 | CODE | |
| LOW | server/polar/organization/service.py | 44 | CODE | |
| LOW | server/polar/organization/tasks.py | 2 | CODE | |
| LOW | server/polar/organization/tasks.py | 5 | CODE | |
| LOW | server/polar/event_type/__init__.py | 1 | CODE | |
| LOW | server/polar/order/repository.py | 46 | CODE | |
| LOW | server/polar/metrics/metrics.py | 8 | CODE | |
| 666 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | server/polar/transaction/service/dispute.py | 108 | # Create the dispute, i.e. the transaction withdrawing the amount | COMMENT |
| MEDIUM | …rver/polar/customer_portal/endpoints/oauth_accounts.py | 230 | # Create a session only after the OAuth provider has confirmed the code. | COMMENT |
| MEDIUM | …ver/polar/backoffice/organizations_v2/orders_import.py | 340 | # Create a grant manually to force properties | COMMENT |
| MEDIUM | server/polar/backoffice/organizations_v2/analytics.py | 173 | # Create a copy to avoid mutating the original list | COMMENT |
| MEDIUM | server/polar/backoffice/organizations_v2/endpoints.py | 4505 | # Create the credit | COMMENT |
| MEDIUM | server/polar/payout/service.py | 714 | # Create a new payout attempt | COMMENT |
| MEDIUM⚡ | server/tests/organization/test_service.py | 1983 | # Create a review record | COMMENT |
| MEDIUM | server/tests/organization/test_endpoints.py | 1359 | # Create a customer and order for this organization | COMMENT |
| MEDIUM | server/tests/organization/test_endpoints.py | 1392 | # Create a customer and active subscription for this organization | COMMENT |
| MEDIUM | server/tests/organization/test_backfill_members.py | 526 | # Create a benefit grant without member_id (legacy) | COMMENT |
| MEDIUM | server/tests/organization/test_backfill_members.py | 649 | # Create a grant that already has member_id set | COMMENT |
| MEDIUM | server/tests/organization/test_backfill_members.py | 789 | # Create a grant under the old seat-holder customer | COMMENT |
| MEDIUM | server/tests/organization/test_backfill_members.py | 869 | # Create a grant and license key under the old seat-holder customer | COMMENT |
| MEDIUM | …er/tests/organization/test_backfill_benefit_records.py | 652 | # Create a second customer+member for a different grant | COMMENT |
| MEDIUM | server/tests/order/test_service.py | 3483 | # Create a pending order with tax calculation processor ID | COMMENT |
| MEDIUM | server/tests/order/test_service.py | 3498 | # Create a payment | COMMENT |
| MEDIUM | server/tests/order/test_service.py | 3533 | # Create a customer with a billing address so that _calculate_tax | COMMENT |
| MEDIUM | server/tests/order/test_service.py | 4428 | # Create a failed payment with a non-recoverable decline reason | COMMENT |
| MEDIUM | server/tests/order/test_service.py | 6461 | # Create a subscription | COMMENT |
| MEDIUM | server/tests/transaction/service/test_transaction.py | 204 | # Create an old balance transaction (8 days ago - should be available) | COMMENT |
| MEDIUM | server/tests/transaction/service/test_transaction.py | 216 | # Create a recent balance transaction (2 days ago - should NOT be available) | COMMENT |
| MEDIUM | server/tests/transaction/service/test_transaction.py | 227 | # Create a payout transaction (2 days ago - should ALWAYS be available) | COMMENT |
| MEDIUM | server/tests/transaction/service/test_transaction.py | 238 | # Create a payout fee (2 days ago - should ALWAYS be available) | COMMENT |
| MEDIUM | server/tests/transaction/service/test_refund.py | 479 | # Create a charge and order | COMMENT |
| MEDIUM | server/tests/transaction/service/test_refund.py | 490 | # Create the payment transaction | COMMENT |
| MEDIUM | server/tests/transaction/service/test_refund.py | 639 | # Create a charge and order | COMMENT |
| MEDIUM | server/tests/transaction/service/test_refund.py | 650 | # Create the payment transaction | COMMENT |
| MEDIUM⚡ | server/tests/merchant_migration/test_stripe_adapter.py | 115 | # Creating a migration needs both the id and the country; one read serves | COMMENT |
| MEDIUM | server/tests/customer_email_update/test_service.py | 99 | # Create an existing pending verification | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 24 | # Create a checkout | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 27 | # Create a charge with checkout_id in metadata | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 67 | # Create an order | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 74 | # Create a charge with invoice | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 108 | # Create a checkout | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 114 | # Create an order from the checkout | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 122 | # Create a charge with checkout_id in metadata | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 310 | # Create a checkout | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 313 | # Create a payment intent with last_payment_error | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 359 | # Create an order | COMMENT |
| MEDIUM⚡ | server/tests/payment/test_service.py | 366 | # Create a payment intent with last_payment_error | COMMENT |
| MEDIUM | server/tests/payment/test_service.py | 161 | # Create a charge with wallet_id in metadata | COMMENT |
| MEDIUM | server/tests/payment/test_service.py | 200 | # Create a checkout | COMMENT |
| MEDIUM | server/tests/payment/test_service.py | 206 | # Create a charge with checkout_id in metadata | COMMENT |
| MEDIUM | server/tests/payment/test_service.py | 412 | # Create an order | COMMENT |
| MEDIUM | server/tests/payment/test_service.py | 491 | # Create an order | COMMENT |
| MEDIUM | server/tests/payment/test_service.py | 498 | # Create a payment intent with last_payment_error | COMMENT |
| MEDIUM | server/tests/member/test_service.py | 142 | # Create a member | COMMENT |
| MEDIUM | server/tests/member/test_service.py | 522 | # Create the first member (owner) | COMMENT |
| MEDIUM | server/tests/member/test_service.py | 569 | # Create the first member (owner) | COMMENT |
| MEDIUM⚡ | server/tests/member/test_endpoints.py | 200 | # Create a customer for a different organization that the user doesn't have access to | COMMENT |
| MEDIUM⚡ | server/tests/member/test_endpoints.py | 209 | # Create a member | COMMENT |
| MEDIUM | server/tests/member/test_endpoints.py | 156 | # Create a customer | COMMENT |
| MEDIUM | server/tests/member/test_endpoints.py | 1319 | # Create a customer and member | COMMENT |
| MEDIUM | server/tests/member/test_endpoints.py | 1368 | # Create a member for a different organization | COMMENT |
| MEDIUM | server/tests/customer_portal/endpoints/test_customer.py | 89 | # Create a payment method with no subscriptions | COMMENT |
| MEDIUM | server/tests/customer_portal/endpoints/test_customer.py | 115 | # Create an active subscription using the first payment method | COMMENT |
| MEDIUM⚡ | server/tests/customer_portal/endpoints/test_customer.py | 147 | # Create a payment method | COMMENT |
| MEDIUM⚡ | server/tests/customer_portal/endpoints/test_customer.py | 150 | # Create an active subscription using this payment method | COMMENT |
| MEDIUM⚡ | server/tests/customer_portal/endpoints/test_customer.py | 178 | # Create a payment method | COMMENT |
| MEDIUM⚡ | server/tests/customer_portal/endpoints/test_customer.py | 181 | # Create a canceled subscription using this payment method | COMMENT |
| 100 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/polar/middlewares.py | 22 | CODE | |
| LOW | server/polar/organization/service.py | 2139 | CODE | |
| LOW | server/polar/organization/tasks.py | 387 | CODE | |
| LOW | server/polar/organization/tasks.py | 582 | CODE | |
| LOW | server/polar/organization/tasks.py | 965 | CODE | |
| LOW | server/polar/organization/tasks.py | 1093 | CODE | |
| LOW | server/polar/organization/resolver.py | 24 | CODE | |
| LOW | server/polar/webhook/service.py | 231 | CODE | |
| LOW | server/polar/event_type/service.py | 42 | CODE | |
| LOW | server/polar/order/service.py | 1695 | CODE | |
| LOW | server/polar/order/service.py | 1896 | CODE | |
| LOW | server/polar/order/repository.py | 412 | CODE | |
| LOW | server/polar/metrics/service.py | 59 | CODE | |
| LOW | server/polar/metrics/service.py | 81 | CODE | |
| LOW | server/polar/metrics/service.py | 553 | CODE | |
| LOW | server/polar/metrics/queries_tinybird.py | 55 | CODE | |
| LOW | server/polar/metrics/queries_tinybird.py | 117 | CODE | |
| LOW | server/polar/transaction/service/dispute.py | 62 | CODE | |
| LOW | server/polar/transaction/service/refund.py | 61 | CODE | |
| LOW | server/polar/transaction/service/refund.py | 181 | CODE | |
| LOW | server/polar/eventstream/endpoints.py | 26 | CODE | |
| LOW | server/polar/eventstream/endpoints.py | 56 | CODE | |
| LOW | server/polar/custom_field/service.py | 42 | CODE | |
| LOW | server/polar/checkout_link/service.py | 51 | CODE | |
| LOW | server/polar/merchant_migration/precheck.py | 141 | CODE | |
| LOW | server/polar/merchant_migration/precheck.py | 881 | CODE | |
| LOW | server/polar/organization_access_token/service.py | 47 | CODE | |
| LOW | …rver/polar/customer_portal/endpoints/oauth_accounts.py | 118 | CODE | |
| LOW | server/polar/customer_portal/service/subscription.py | 88 | CODE | |
| LOW | server/polar/customer_portal/service/order.py | 66 | CODE | |
| LOW | server/polar/customer_portal/service/benefit_grant.py | 45 | CODE | |
| LOW | server/polar/customer_portal/service/benefit_grant.py | 154 | CODE | |
| LOW | server/polar/kit/schemas.py | 31 | CODE | |
| LOW | server/polar/kit/versioning.py | 243 | CODE | |
| LOW | server/polar/kit/pagination.py | 151 | CODE | |
| LOW | server/polar/kit/pagination.py | 197 | CODE | |
| LOW | server/polar/tax/repository.py | 33 | CODE | |
| LOW | server/polar/user/service.py | 295 | CODE | |
| LOW | server/polar/models/subscription_product_price.py | 47 | CODE | |
| LOW | server/polar/models/order_item.py | 84 | CODE | |
| LOW | server/polar/models/refund.py | 111 | CODE | |
| LOW | server/polar/backoffice/forms.py | 608 | CODE | |
| LOW | server/polar/backoffice/static_urls.py | 6 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 154 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 221 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 661 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 726 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 762 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 895 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 950 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 1002 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 1070 | CODE | |
| LOW | server/polar/backoffice/customers/endpoints.py | 1140 | CODE | |
| LOW | server/polar/backoffice/tasks/forms.py | 40 | CODE | |
| LOW | server/polar/backoffice/tasks/forms.py | 69 | CODE | |
| LOW | server/polar/backoffice/tasks/endpoints.py | 20 | CODE | |
| LOW | server/polar/backoffice/tasks/endpoints.py | 61 | CODE | |
| LOW | server/polar/backoffice/products/endpoints.py | 31 | CODE | |
| LOW | server/polar/backoffice/products/endpoints.py | 83 | CODE | |
| LOW | server/polar/backoffice/products/endpoints.py | 165 | CODE | |
| 200 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/polar/webhook/endpoints.py | 167 | CODE | |
| LOW | server/polar/event_type/service.py | 42 | CODE | |
| LOW | server/polar/event_type/endpoints.py | 25 | CODE | |
| LOW | server/polar/order/service.py | 371 | CODE | |
| LOW | server/polar/order/endpoints.py | 99 | CODE | |
| LOW | server/polar/order/endpoints.py | 178 | CODE | |
| LOW | server/polar/metrics/endpoints.py | 58 | CODE | |
| LOW | server/polar/metrics/endpoints.py | 153 | CODE | |
| LOW | server/polar/checkout_link/endpoints.py | 174 | CODE | |
| LOW | server/polar/auth/service.py | 64 | CODE | |
| LOW | server/polar/auth/oauth2/router.py | 79 | CODE | |
| LOW | server/polar/auth/sso/endpoints.py | 187 | CODE | |
| LOW | server/polar/payment/service.py | 47 | CODE | |
| LOW | server/polar/payment/endpoints.py | 30 | CODE | |
| LOW | server/polar/customer_portal/endpoints/benefit_grant.py | 56 | CODE | |
| LOW | server/polar/customer_portal/service/benefit_grant.py | 45 | CODE | |
| LOW | server/polar/kit/html.py | 22 | CODE | |
| LOW | server/polar/kit/csv.py | 29 | CODE | |
| LOW | server/polar/kit/db/postgres.py | 47 | CODE | |
| LOW | server/polar/kit/db/postgres.py | 83 | CODE | |
| LOW | …r/polar/backoffice/organizations_v2/views/list_view.py | 341 | CODE | |
| LOW | server/polar/backoffice/support_cases/queries.py | 54 | CODE | |
| LOW | server/polar/product/service.py | 74 | CODE | |
| LOW | server/polar/product/endpoints.py | 53 | CODE | |
| LOW | server/polar/subscription/service.py | 511 | CODE | |
| LOW | server/polar/subscription/endpoints.py | 74 | CODE | |
| LOW | server/polar/subscription/endpoints.py | 164 | CODE | |
| LOW | server/polar/email_update/endpoints.py | 63 | CODE | |
| LOW | server/polar/worker/_runner.py | 178 | CODE | |
| LOW | server/polar/meter/endpoints.py | 103 | CODE | |
| LOW | server/polar/event/tinybird_repository.py | 106 | CODE | |
| LOW | server/polar/event/tinybird_repository.py | 222 | CODE | |
| LOW | server/polar/event/tinybird_repository.py | 267 | CODE | |
| LOW | server/polar/event/tinybird_repository.py | 393 | CODE | |
| LOW | server/polar/event/endpoints.py | 71 | CODE | |
| LOW | server/polar/event/endpoints.py | 220 | CODE | |
| LOW | server/polar/event/endpoints.py | 276 | CODE | |
| LOW | server/polar/event/endpoints.py | 328 | CODE | |
| LOW | server/polar/event/endpoints.py | 385 | CODE | |
| LOW | server/polar/refund/service.py | 123 | CODE | |
| LOW | server/polar/refund/endpoints.py | 25 | CODE | |
| LOW | server/polar/benefit/service.py | 36 | CODE | |
| LOW | server/tests/metrics/test_tinybird_metrics.py | 1090 | CODE | |
| LOW | server/tests/transaction/conftest.py | 31 | CODE | |
| LOW | server/tests/merchant_migration/test_stripe_adapter.py | 209 | CODE | |
| LOW | server/tests/merchant_migration/test_precheck.py | 116 | CODE | |
| LOW | server/tests/merchant_migration/_helpers.py | 136 | CODE | |
| LOW | server/tests/dispute/test_service.py | 1484 | CODE | |
| LOW | server/tests/integrations/polar/test_service.py | 2220 | CODE | |
| LOW | server/tests/scripts/test_reingest_missing_events.py | 24 | CODE | |
| LOW | server/tests/organization_review/test_feedback.py | 111 | CODE | |
| LOW | server/tests/refund/test_service.py | 129 | CODE | |
| LOW | server/scripts/preview.py | 1159 | CODE | |
| LOW | sdk/python/polar/v2026_10/services/payments.py | 27 | CODE | |
| LOW | sdk/python/polar/v2026_10/services/payments.py | 91 | CODE | |
| LOW | sdk/python/polar/v2026_10/services/payments.py | 194 | CODE | |
| LOW | sdk/python/polar/v2026_10/services/payments.py | 258 | CODE | |
| LOW | sdk/python/polar/v2026_10/services/checkouts.py | 40 | CODE | |
| LOW | sdk/python/polar/v2026_10/services/checkouts.py | 101 | CODE | |
| LOW | sdk/python/polar/v2026_10/services/checkouts.py | 412 | CODE | |
| 134 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/polar/tasks.py | 47 | __all__ = [ | CODE |
| LOW | server/polar/openapi.py | 97 | __all__ = [ | CODE |
| LOW | server/polar/logfire.py | 240 | __all__ = [ | CODE |
| LOW | server/polar/redis.py | 116 | __all__ = [ | CODE |
| LOW | server/polar/routing.py | 31 | __all__ = ["APIRouter"] | CODE |
| LOW | server/polar/postgres.py | 123 | __all__ = [ | CODE |
| LOW | server/polar/rate_limit.py | 318 | __all__ = [ | CODE |
| LOW | server/polar/sentry.py | 83 | def set_sentry_user(auth_subject: AuthSubject[Subject]) -> None: | CODE |
| LOW | server/polar/event_type/__init__.py | 3 | __all__ = ["EventTypeRepository"] | CODE |
| LOW | server/polar/order/tasks.py | 206 | async def update_product_benefits_grants(product_id: uuid.UUID) -> None: | CODE |
| LOW | server/polar/metrics/metrics.py | 1006 | __all__ = [ | CODE |
| LOW | server/polar/metrics/cache.py | 89 | async def set_cached_metrics(redis: Redis, key: str, response: MetricsResponse) -> None: | CODE |
| LOW | server/polar/transaction/fees/stripe/__init__.py | 75 | __all__ = ["get_reverse_stripe_payout_fees", "get_stripe_account_fee", "round_stripe"] | CODE |
| LOW | server/polar/account_credit/__init__.py | 3 | __all__ = ["account_credit_service"] | CODE |
| LOW | server/polar/merchant_migration/pan_transfer.py | 396 | def _settle(step: PanTransferStep, actor: PanStepActor) -> None: | CODE |
| LOW | server/polar/merchant_migration/adapters/__init__.py | 4 | __all__ = ["SourceAdapter", "StripeAdapter"] | CODE |
| LOW | server/polar/auth/models.py | 147 | __all__ = [ | CODE |
| LOW | server/polar/auth/exception_handlers.py | 17 | __all__ = ["PolarAuthRedirectionError", "auth_redirection_error_exception_handler"] | CODE |
| LOW | server/polar/auth/routing.py | 88 | __all__ = ["DocumentedAuthSubjectAPIRoute"] | CODE |
| LOW | server/polar/member/__init__.py | 3 | __all__ = ["Member", "MemberCreate", "MemberOwnerCreate"] | CODE |
| LOW | server/polar/oauth2/exception_handlers.py | 15 | __all__ = ["OAuth2Error", "oauth2_error_exception_handler"] | CODE |
| LOW | server/polar/oauth2/userinfo.py | 29 | __all__ = ["UserInfo", "generate_user_info"] | CODE |
| LOW | server/polar/oauth2/exceptions.py | 45 | __all__ = ["InsufficientScopeError", "InvalidTokenError"] | CODE |
| LOW | server/polar/oauth2/grants/__init__.py | 31 | __all__ = ["AuthorizationCodeGrant", "CodeChallenge", "register_grants"] | CODE |
| LOW | server/polar/kit/cors.py | 78 | __all__ = ["CORSConfig", "CORSMatcherMiddleware", "Scope"] | CODE |
| LOW | server/polar/kit/routing.py | 211 | __all__ = [ | CODE |
| LOW | server/polar/kit/email.py | 49 | __all__ = [ | CODE |
| LOW | server/polar/kit/repository/__init__.py | 11 | __all__ = [ | CODE |
| LOW | server/polar/kit/extensions/sqlalchemy/__init__.py | 4 | __all__ = ["IntEnum", "StringEnum", "sql"] | CODE |
| LOW | server/polar/kit/extensions/sqlalchemy/sql.py | 8 | __all__ = [ | CODE |
| LOW | server/polar/kit/db/postgres.py | 129 | __all__ = [ | CODE |
| LOW | server/polar/kit/db/models/__init__.py | 3 | __all__ = ["IDModel", "Model", "RateLimitGroupMixin", "RecordModel", "TimestampedModel"] | CODE |
| LOW | server/polar/kit/db/models/base.py | 54 | def set_modified_at(self) -> None: | CODE |
| LOW | server/polar/kit/db/models/base.py | 57 | def set_deleted_at(self) -> None: | CODE |
| LOW | server/polar/tax/tax_id.py | 570 | __all__ = [ | CODE |
| LOW | server/polar/tax/calculation/__init__.py | 231 | __all__ = [ | CODE |
| LOW | server/polar/models/user.py | 161 | async def set_tokens(self, *, access_token: str, refresh_token: str | None) -> None: | CODE |
| LOW | server/polar/models/product_price.py | 500 | def set_identity(instance: ProductPrice, *arg: Any, **kw: Any) -> None: | CODE |
| LOW | server/polar/models/subscription.py | 616 | def update_net_amount_from(self, charge: "Order | Checkout") -> None: | CODE |
| LOW | server/polar/models/subscription.py | 635 | def update_meters(self, prices: Sequence["SubscriptionProductPrice"]) -> None: | CODE |
| LOW | server/polar/models/organization.py | 820 | def set_status(self, status: OrganizationStatus) -> None: | CODE |
| LOW | server/polar/models/order.py | 371 | def update_refunds(self, refunded_amount: int, refunded_tax_amount: int) -> None: | CODE |
| LOW | server/polar/models/__init__.py | 130 | __all__ = [ | CODE |
| LOW | server/polar/models/oauth2_client.py | 127 | async def set_client_secret(self, client_secret: str) -> None: | CODE |
| LOW | server/polar/models/oauth2_client.py | 151 | def set_client_secret_sync(self, client_secret: str) -> None: | CODE |
| LOW⚡ | server/polar/models/benefit_grant.py | 205 | def set_granted(self) -> None: | CODE |
| LOW⚡ | server/polar/models/benefit_grant.py | 210 | def set_revoked(self) -> None: | CODE |
| LOW⚡ | server/polar/models/benefit_grant.py | 215 | def set_grant_failed(self, error: Exception) -> None: | CODE |
| LOW | server/polar/backoffice/__init__.py | 80 | __all__ = ["app"] | CODE |
| LOW | server/polar/backoffice/toast.py | 48 | __all__ = ["add_toast", "render_toasts"] | STRING |
| LOW | server/polar/backoffice/customers/__init__.py | 3 | __all__ = ["router"] | CODE |
| LOW | server/polar/backoffice/organizations_v2/endpoints.py | 4920 | __all__ = ["router"] | CODE |
| LOW | …r/polar/backoffice/organizations_v2/views/list_view.py | 879 | __all__ = ["OrganizationListView"] | CODE |
| LOW | …polar/backoffice/organizations_v2/views/detail_view.py | 940 | __all__ = ["OrganizationDetailView"] | CODE |
| LOW | …ce/organizations_v2/views/sections/overview_section.py | 835 | __all__ = ["OverviewSection"] | CODE |
| LOW | …office/organizations_v2/views/sections/risk_signals.py | 216 | __all__ = [ | CODE |
| LOW | …ice/organizations_v2/views/sections/reviews_section.py | 229 | __all__ = ["ReviewsSection"] | CODE |
| LOW | …ce/organizations_v2/views/sections/settings_section.py | 507 | __all__ = ["SettingsSection"] | CODE |
| LOW | …rganizations_v2/views/sections/support_case_section.py | 773 | __all__ = ["SupportCaseSection"] | CODE |
| LOW | …ations_v2/views/sections/support_cases_list_section.py | 101 | __all__ = ["SupportCasesListSection"] | CODE |
| 107 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/polar/middlewares.py | 254 | except Exception as exc: | CODE |
| LOW | server/polar/organization/service.py | 782 | except Exception as e: | CODE |
| LOW | server/polar/organization/schemas.py | 373 | except Exception: | CODE |
| LOW | server/polar/webhook/tasks.py | 312 | except Exception as e: | CODE |
| LOW | server/polar/external_event/service.py | 73 | except Exception: | CODE |
| LOW | server/polar/order/service.py | 367 | except Exception: | CODE |
| LOW | server/polar/order/service.py | 1204 | except Exception: | CODE |
| LOW | server/polar/order/service.py | 2093 | except Exception as exc: | CODE |
| LOW | server/polar/order/service.py | 2305 | except Exception: | CODE |
| LOW | server/polar/order/service.py | 2720 | except Exception as e: | CODE |
| LOW | server/polar/order/service.py | 2991 | except Exception as e: | CODE |
| LOW | server/polar/transaction/service/dispute.py | 287 | except Exception as e: | CODE |
| LOW | server/polar/transaction/service/refund.py | 175 | except Exception as e: | CODE |
| LOW | server/polar/transaction/service/refund.py | 274 | except Exception as e: | CODE |
| LOW | server/polar/merchant_migration/cutover.py | 258 | except Exception: | CODE |
| LOW | server/polar/merchant_migration/cutover.py | 391 | except Exception: | CODE |
| LOW | server/polar/auth/routing.py | 26 | except Exception: | CODE |
| LOW | server/polar/kit/currency.py | 148 | except Exception: | CODE |
| LOW | …ver/polar/backoffice/organizations_v2/orders_import.py | 407 | except Exception: | CODE |
| LOW | server/polar/backoffice/organizations_v2/endpoints.py | 480 | except Exception: | CODE |
| LOW | server/polar/backoffice/organizations_v2/endpoints.py | 2826 | except Exception as e: | CODE |
| LOW | server/polar/backoffice/organizations_v2/endpoints.py | 4102 | except Exception as e: | CODE |
| LOW | server/polar/backoffice/organizations_v2/endpoints.py | 4141 | except Exception as e: | CODE |
| LOW | …ice/organizations_v2/views/sections/reviews_section.py | 145 | except Exception: | CODE |
| LOW | server/polar/backoffice/email_logs/endpoints.py | 169 | except Exception: | CODE |
| LOW | server/polar/backoffice/benefits/endpoints.py | 186 | except Exception: | CODE |
| LOW | server/polar/backoffice/orders/endpoints.py | 271 | except Exception: | CODE |
| LOW | server/polar/backoffice/orders/endpoints.py | 280 | except Exception: | CODE |
| LOW | server/polar/backoffice/orders/endpoints.py | 815 | except Exception as e: | CODE |
| LOW | server/polar/backoffice/orders/endpoints.py | 984 | except Exception as e: | CODE |
| LOW | server/polar/backoffice/orders/endpoints.py | 1042 | except Exception as e: | CODE |
| LOW | server/polar/backoffice/orders/endpoints.py | 1106 | except Exception as e: | CODE |
| LOW | server/polar/observability/s3_span_exporter.py | 90 | except Exception: | CODE |
| LOW | server/polar/observability/memory_profile.py | 148 | except Exception as e: | CODE |
| LOW | server/polar/observability/remote_write.py | 196 | except Exception as e: | CODE |
| LOW | server/polar/observability/remote_write.py | 243 | except Exception as e: | CODE |
| LOW⚡ | server/polar/observability/slo.py | 109 | except Exception: | CODE |
| LOW | server/polar/observability/slo_report/tasks.py | 87 | except Exception as e: | CODE |
| LOW | server/polar/checkout/service.py | 1511 | except Exception as e: | CODE |
| LOW | server/polar/checkout/service.py | 1572 | except Exception as e: | CODE |
| LOW | server/polar/checkout/service.py | 1691 | except Exception as e: | CODE |
| LOW | server/polar/subscription/scheduler.py | 46 | except Exception as e: | CODE |
| LOW | server/polar/integrations/plain/service.py | 185 | except Exception: | STRING |
| LOW | server/polar/integrations/github/service/user.py | 32 | except Exception as e: | CODE |
| LOW | …olar/integrations/github_repository_benefit/service.py | 275 | except Exception as e: | CODE |
| LOW | server/polar/integrations/tinybird/service.py | 832 | except Exception as e: | CODE |
| LOW | server/polar/integrations/tinybird/service.py | 1492 | except Exception as e: | CODE |
| LOW | server/polar/integrations/tinybird/client.py | 85 | except Exception: | CODE |
| LOW | server/polar/integrations/resend/endpoints.py | 47 | except Exception: | CODE |
| LOW | server/polar/receipt/render.py | 58 | except Exception: | CODE |
| MEDIUM | server/polar/receipt/render.py | 50 | def main() -> int: | CODE |
| LOW | server/polar/support_case/pdf.py | 31 | except Exception: | CODE |
| LOW | server/polar/support_case/pdf.py | 40 | except Exception: | CODE |
| LOW | server/polar/organization_review/analyzer.py | 721 | except Exception as e: | CODE |
| LOW | server/polar/organization_review/policy.py | 57 | except Exception: | CODE |
| LOW | server/polar/organization_review/policy.py | 113 | except Exception as e: | CODE |
| LOW | server/polar/organization_review/agent.py | 112 | except Exception as e: | CODE |
| LOW | server/polar/organization_review/agent.py | 259 | except Exception as e: | CODE |
| LOW | server/polar/organization_review/agent.py | 333 | except Exception as e: | CODE |
| LOW | server/polar/organization_review/collectors/setup.py | 38 | except Exception: | CODE |
| 78 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | clients/apps/orbit/src/app/components/input/page.tsx | 79 | name: 'placeholder', | CODE |
| LOW | clients/apps/orbit/src/app/components/textarea/page.tsx | 75 | name: 'placeholder', | CODE |
| LOW | clients/apps/app/targets/widget/widgets.swift | 16 | return SimpleEntry(date: Date(), configuration: ConfigurationAppIntent(), metricValue: 425, metricValueDouble: n | CODE |
| LOW | clients/apps/app/targets/widget/widgets.swift | 872 | SimpleEntry(date: .now, configuration: config, metricValue: 425, metricValueDouble: nil, organizationName: "Acme Inc | CODE |
| LOW | …rc/components/Settings/OrganizationProfileSettings.tsx | 301 | placeholder="Acme Inc" | CODE |
| LOW | clients/apps/web/src/components/Landing/Pipeline.tsx | 128 | name="John Doe" | CODE |
| LOW | …/apps/web/src/components/Landing/chapters/Platform.tsx | 63 | { name: 'Jane Doe', tokens: '4.1M tokens', margin: '+86%', negative: false }, | CODE |
| LOW | server/polar/member/schemas.py | 25 | _name_example = "Jane Doe" | CODE |
| LOW | server/polar/backoffice/organizations_v2/endpoints.py | 1476 | "placeholder": "Why are you denying this organization?", | CODE |
| LOW | server/polar/backoffice/organizations_v2/endpoints.py | 1644 | "placeholder": reason_placeholder, | CODE |
| LOW | server/polar/backoffice/organizations_v2/endpoints.py | 2186 | "placeholder": reason_placeholder, | CODE |
| LOW | …r/polar/backoffice/organizations_v2/views/list_view.py | 481 | "placeholder": ("Search organizations by name or slug..."), | CODE |
| LOW | server/polar/customer/schemas/customer.py | 58 | _name_example = "John Doe" | CODE |
| LOW | server/emails/src/preview.ts | 85 | billing_name: 'John Doe', | CODE |
| LOW | server/emails/src/preview.ts | 87 | line1: '123 Main Street', | CODE |
| LOW | server/emails/src/emails/webhook_endpoint_disabled.tsx | 60 | email: 'admin@example.com', | CODE |
| LOW | server/emails/src/emails/notification_new_sale.tsx | 64 | billing_address_line1: '123 Main St', | CODE |
| LOW | …er/emails/src/emails/notification_new_subscription.tsx | 40 | subscriber_name: 'John Doe', | CODE |
| LOW | server/emails/src/emails/organization_offboarded.tsx | 42 | email: 'admin@example.com', | CODE |
| LOW | server/tests/organization/test_service.py | 1398 | reset_by="admin@example.com", | CODE |
| LOW | server/tests/organization/test_service.py | 1413 | assert "admin@example.com" in result.internal_notes | CODE |
| LOW | server/tests/organization/test_service.py | 1442 | reset_by="admin@example.com", | CODE |
| LOW | server/tests/organization/test_embed_hosts.py | 129 | "user@example.com", | CODE |
| LOW⚡ | server/tests/organization/test_schemas.py | 85 | "Acme Inc", | CODE |
| LOW | server/tests/order/test_service.py | 3053 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3133 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3156 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3178 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3214 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3236 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3259 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3283 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3305 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3337 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3364 | billing_name="John Doe", | CODE |
| LOW | server/tests/order/test_service.py | 3392 | billing_name="John Doe", | CODE |
| LOW⚡ | server/tests/member/test_repository.py | 113 | save_fixture, organization=organization, email="user@example.com" | CODE |
| LOW⚡ | server/tests/member/test_repository.py | 118 | email="user@example.com", | CODE |
| LOW | …sts/customer_portal/endpoints/test_customer_session.py | 91 | save_fixture, organization=organization, email="user@example.com" | CODE |
| LOW | …sts/customer_portal/endpoints/test_customer_session.py | 349 | save_fixture, organization=organization, email="user@example.com" | CODE |
| LOW | …sts/customer_portal/endpoints/test_customer_session.py | 354 | email="user@example.com", | CODE |
| LOW⚡ | …tests/customer_portal/service/test_customer_session.py | 107 | save_fixture, organization=organization, email="user@example.com" | CODE |
| LOW | …tests/customer_portal/service/test_customer_session.py | 202 | save_fixture, organization=organization, email="user@example.com" | CODE |
| LOW | …tests/customer_portal/service/test_customer_session.py | 207 | email="user@example.com", | CODE |
| LOW⚡ | …er/tests/customer_portal/service/test_benefit_grant.py | 553 | properties={"invited_email": "admin@example.com"}, | CODE |
| LOW⚡ | …er/tests/customer_portal/service/test_benefit_grant.py | 559 | "invited_email": "admin@example.com", | CODE |
| LOW⚡ | …er/tests/customer_portal/service/test_benefit_grant.py | 605 | properties={"invited_email": "admin@example.com"}, | CODE |
| LOW⚡ | …er/tests/customer_portal/service/test_benefit_grant.py | 612 | "invited_email": "admin@example.com", | CODE |
| LOW | …er/tests/customer_portal/service/test_benefit_grant.py | 646 | "invited_email": "admin@example.com", | CODE |
| LOW | …er/tests/customer_portal/service/test_benefit_grant.py | 657 | properties={"invited_email": "admin@example.com"}, | CODE |
| LOW | …er/tests/customer_portal/service/test_benefit_grant.py | 664 | "invited_email": "admin@example.com", | CODE |
| LOW⚡ | server/tests/kit/test_anonymization.py | 36 | result = anonymize_email_for_deletion("user@example.com", created_at) | CODE |
| LOW⚡ | server/tests/kit/test_anonymization.py | 42 | email = "user@example.com" | CODE |
| LOW⚡ | server/tests/kit/test_anonymization.py | 52 | email = "user@example.com" | CODE |
| LOW | server/tests/tax/calculation/test_numeral.py | 16 | line1="123 Main St", | CODE |
| LOW | server/tests/tax/calculation/test_stripe.py | 16 | line1="123 Main St", | CODE |
| LOW | server/tests/models/test_oauth_account.py | 16 | account_email="foo@bar.com", | CODE |
| LOW | …s/observability/observability/test_s3_span_exporter.py | 168 | "attributes": {"Email": "test@test.com", "USERNAME": "test"}, | CODE |
| LOW⚡ | server/tests/checkout/test_service.py | 2977 | "customer_name": "John Doe", | CODE |
| LOW⚡ | server/tests/checkout/test_service.py | 2980 | "company": "Acme Inc", | CODE |
| 76 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | server/polar/product/schemas.py | 768 | "If null, it defaults to the organization's default tax behavior." | CODE |
| HIGH | server/polar/compass/threads/service.py | 273 | # Non-list JSONB (hand-edited / null) fails validation too. | COMMENT |
| HIGH | server/polar/meter/filter.py | 82 | # Otherwise return false | COMMENT |
| HIGH | server/polar/meter/filter.py | 91 | # Otherwise return false | COMMENT |
| HIGH | server/polar/customer/service.py | 754 | # value from this update payload (if explicitly provided and non-null), | COMMENT |
| HIGH | server/tests/dispute/test_service.py | 183 | # Stripe drops network_reason_code and evidence_details.due_by when null, | COMMENT |
| HIGH | server/scripts/snooze_stale_reviews.py | 144 | ELSE internal_notes || E'\\n\\n' || :note | CODE |
| HIGH | server/scripts/reset_unconfigured_grandfathered_orgs.py | 274 | ELSE internal_notes || E'\\n\\n' || :note | CODE |
| HIGH | sdk/python/polar/v2026_10/outputs.py | 6254 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_10/outputs.py | 6302 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_10/outputs.py | 8568 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_10/outputs.py | 8607 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_10/outputs.py | 8659 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_10/outputs.py | 8700 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_04/outputs.py | 6254 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_04/outputs.py | 6302 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_04/outputs.py | 8568 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_04/outputs.py | 8607 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_04/outputs.py | 8659 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/python/polar/v2026_04/outputs.py | 8700 | """The tax behavior of the price. If null, it defaults to the organization's default tax behavior.""" | STRING |
| HIGH | sdk/generator/typescript/types.py | 27 | return f"({inner} | null)" | CODE |
| HIGH | sdk/generator/generator/ir.py | 88 | Produced by the anyOf: [{...}, {type: null}] pattern that is dominant in | STRING |
| HIGH | dev/cli/up_steps/02_setup_node.py | 147 | console.print("Run: [bold]source ~/.nvm/nvm.sh && nvm use[/bold]") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md | 17 | ### Step 1: Read the failing test | COMMENT |
| LOW | …s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md | 21 | ### Step 2: Reproduce the test manually | COMMENT |
| LOW | …s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md | 37 | ### Step 3: Classify the failure | COMMENT |
| LOW | …s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md | 45 | ### Step 4: Take action based on classification | COMMENT |
| LOW | …s/apps/web/e2e/healing/prompts/e2e-checkout-healing.md | 114 | ### Step 5: Check for suspicious recent PRs | COMMENT |
| LOW | .agents/skills/interview-task/SKILL.md | 19 | ## Step 1: fork the Polar repository to a private GitHub repository dedicated to the candidate | COMMENT |
| LOW⚡ | .agents/skills/interview-task/SKILL.md | 33 | ## Step 2: create a branch for the PR | COMMENT |
| LOW⚡ | .agents/skills/interview-task/SKILL.md | 43 | ## Step 3: make changes to the codebase using LLM agent | COMMENT |
| LOW⚡ | .agents/skills/interview-task/SKILL.md | 47 | ## Step 4: create a pull request | COMMENT |
| LOW⚡ | .agents/skills/interview-task/SKILL.md | 55 | ## Step 5: add a comment to the PR asking the candidate to review it | COMMENT |
| LOW | .agents/skills/handbook-backend-development/SKILL.md | 14 | ## Step 1: Create the file | COMMENT |
| LOW | .agents/skills/handbook-backend-development/SKILL.md | 39 | ## Step 2: Explore and draft the content of the entry | COMMENT |
| LOW | .agents/skills/handbook-backend-development/SKILL.md | 43 | ## Step 3: Ask for feedback | COMMENT |
| LOW | .agents/skills/render-env/SKILL.md | 36 | ## Step 1: Add the tfe_variable to each global/{env}.tf | COMMENT |
| LOW | .agents/skills/render-env/SKILL.md | 54 | ## Step 2: Add the variable {} block to each {env}/variables.tf | COMMENT |
| LOW | .agents/skills/render-env/SKILL.md | 68 | ## Step 3: Format | COMMENT |
| LOW | .agents/skills/render-env/SKILL.md | 78 | ## Step 4: Hand off | COMMENT |
| LOW⚡ | .agents/skills/fix-sentry/SKILL.md | 16 | ## Step 1: Analyze the Sentry issue | COMMENT |
| LOW⚡ | .agents/skills/fix-sentry/SKILL.md | 20 | ## Step 2: correlate with Logfire logs | COMMENT |
| LOW⚡ | .agents/skills/fix-sentry/SKILL.md | 28 | ## Step 3: Search source code | COMMENT |
| LOW⚡ | .agents/skills/fix-sentry/SKILL.md | 32 | ### Step 4: Analyze findings | COMMENT |
| LOW⚡ | .agents/skills/fix-sentry/SKILL.md | 36 | ## Step 5: Implement a fix | COMMENT |
| LOW⚡ | .agents/skills/add-locale/SKILL.md | 19 | ## Step 1: Sync main | COMMENT |
| LOW⚡ | .agents/skills/add-locale/SKILL.md | 28 | ## Step 2: Create the branch | COMMENT |
| LOW⚡ | .agents/skills/add-locale/SKILL.md | 34 | ## Step 3: Register the locale | COMMENT |
| LOW | .agents/skills/add-locale/SKILL.md | 48 | ## Step 4: Generate the translation file | COMMENT |
| LOW | .agents/skills/add-locale/SKILL.md | 62 | ## Step 5: Wire the locale into the i18n entrypoint | COMMENT |
| LOW | .agents/skills/add-locale/SKILL.md | 80 | ## Step 6: Update the public docs | COMMENT |
| LOW | .agents/skills/add-locale/SKILL.md | 94 | ## Step 7: Hand back to the user | COMMENT |
| LOW⚡ | server/polar/integrations/plain/service.py | 1348 | # Step 1: Try read-only lookup by email (handles legacy customers) | COMMENT |
| LOW⚡ | server/polar/integrations/plain/service.py | 1357 | # Step 2: Not found by email - upsert with external_id as identifier | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 939 | # Step 1: Find | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 944 | # Step 2: Restore | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 953 | # Step 3: Verify grant | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 961 | # Step 4: Verify license key | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 968 | # Step 5: Running find again should return nothing | COMMENT |
| LOW⚡ | server/tests/customer_seat/test_service.py | 2832 | # Step 1: Assign a seat to the email (this creates a member) | COMMENT |
| LOW⚡ | server/tests/customer_seat/test_service.py | 2839 | # Step 2: Revoke the seat (this clears member_id, customer_id, email from seat) | COMMENT |
| LOW⚡ | server/tests/customer_seat/test_service.py | 2846 | # Step 3: Soft delete the member | COMMENT |
| LOW | server/tests/customer_seat/test_service.py | 2859 | # Step 4: Try to assign a new seat to the same email | COMMENT |
| LOW | server/scripts/migrate_organizations_members.py | 198 | # Step 1: Enable member_model_enabled | COMMENT |
| LOW | server/scripts/migrate_organizations_members.py | 211 | # Step 2: Run backfill steps directly | COMMENT |
| LOW⚡ | server/scripts/tax_filing_imports.py | 234 | # Step 1: Count rows | COMMENT |
| LOW⚡ | server/scripts/tax_filing_imports.py | 240 | # Step 2: Load CSV | COMMENT |
| LOW⚡ | server/scripts/tax_filing_imports.py | 247 | # Step 3: Process batches | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/polar/organization/tasks.py | 644 | # Check if grant belongs to an old seat-holder customer | COMMENT |
| LOW | server/polar/organization/tasks.py | 818 | # Check if customer has any subscriptions | COMMENT |
| LOW | server/polar/organization/tasks.py | 830 | # Check if customer has any orders | COMMENT |
| LOW | server/polar/organization/endpoints.py | 561 | # Check if user is already member of organization | COMMENT |
| LOW | server/polar/organization/endpoints.py | 638 | # Check if user is the only member | COMMENT |
| LOW | server/polar/webhook/service.py | 398 | # Check if all recent events are failures | COMMENT |
| LOW | server/polar/member/service.py | 766 | # Check if caller has permission to transfer ownership | COMMENT |
| LOW | server/polar/oauth2/authorization_server.py | 90 | # Check if this is a public client (token_endpoint_auth_method = none) | COMMENT |
| LOW | server/polar/oauth2/authorization_server.py | 154 | # Check if this is a public client (token_endpoint_auth_method = none) | COMMENT |
| LOW | server/polar/oauth2/grants/authorization_code.py | 339 | # Check if the sub has granted the requested scope or a subset of it | COMMENT |
| LOW | server/polar/models/subscription.py | 646 | # Check if the meter already exists in the subscription | COMMENT |
| LOW | server/polar/backoffice/users/endpoints.py | 648 | # Check if user can be deleted | COMMENT |
| LOW | server/polar/backoffice/orders/endpoints.py | 781 | # Check if order can be refunded | COMMENT |
| LOW | server/polar/backoffice/orders/endpoints.py | 970 | # Check if order can be voided | COMMENT |
| LOW | server/polar/cli/endpoints.py | 40 | # Check if this is a webhook event | COMMENT |
| LOW | server/polar/observability/utils.py | 15 | # Check if app is excluded (e.g., backoffice) | COMMENT |
| LOW⚡ | server/polar/observability/slo.py | 118 | # Check if p99 exceeds target for any critical endpoint: | STRING |
| LOW | server/polar/billing_entry/service.py | 232 | # Check if this meter uses a non-summable aggregation | COMMENT |
| LOW | server/polar/worker/_debounce.py | 73 | # Set TTL to avoid keys being stuck in Redis | COMMENT |
| LOW | server/polar/customer_seat/service.py | 1064 | # Check if seat already assigned to this customer | COMMENT |
| LOW | server/polar/meter/service.py | 228 | # Check if meter is attached to any active ProductPriceMeteredUnit | COMMENT |
| LOW | server/polar/meter/service.py | 252 | # Check if meter is referenced by any active Benefits with meter_credit type | COMMENT |
| LOW | server/polar/refund/service.py | 331 | # Check if there are disputes to link | COMMENT |
| LOW | server/tests/order/test_service.py | 5872 | # Set organization to use customer-based invoice numbering | COMMENT |
| LOW | server/tests/member/test_service.py | 367 | # Set name to None after creation | COMMENT |
| LOW | …sts/customer_portal/endpoints/test_customer_session.py | 393 | # Set name to None | COMMENT |
| LOW | server/scripts/void_eligible_orders.py | 132 | # Check if order is still pending (might have changed since query) | COMMENT |
| LOW | …ver/scripts/transfer_products_between_organizations.py | 134 | # Check if all products belong to the same organization | COMMENT |
| LOW | …ver/scripts/transfer_products_between_organizations.py | 213 | # Check if customer has orders for non-transferring products | COMMENT |
| LOW | …ver/scripts/transfer_products_between_organizations.py | 228 | # Check if customer has subscriptions for non-transferring products | COMMENT |
| LOW | …ver/scripts/transfer_products_between_organizations.py | 348 | # Check if this discount is used by non-transferring products | COMMENT |
| LOW | …ver/scripts/transfer_products_between_organizations.py | 463 | # Check if a customer with the same email already exists in target organization | COMMENT |
| LOW | …ver/scripts/transfer_products_between_organizations.py | 608 | # Check if a customer with the same email already exists in target organization | COMMENT |
| LOW | server/scripts/backfill_missing_balance_order_event.py | 48 | # Check if either event already exists | COMMENT |
| LOW | .github/workflows/link_pr_to_issue.yaml | 44 | # Check if the fix reference already exists in the description | COMMENT |
| LOW | .github/workflows/e2e_flakiness_analysis.yaml | 206 | # Check if Claude created a PR (flaky fix) | COMMENT |
| LOW | dev/docker/scripts/startup.sh | 203 | # Check if any organizations exist to determine if seeds are needed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | terraform/scripts/plan-diff.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | terraform/modules/s3_buckets/main.tf | 101 | } | COMMENT |
| LOW | clients/examples/checkout-components/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | clients/packages/orbit/src/tokens/tokens.stylex.ts | 1 | // ─── Public Token Barrel ────────────────────────────────────────────────────── | COMMENT |
| LOW | clients/packages/orbit/src/tokens/value.stylex.ts | 1 | // ─── Value Tokens (Tier 1 — Primitives) ─────────────────────────────────────── | COMMENT |
| LOW | clients/apps/app/expo-env.d.ts | 1 | /// <reference types="expo/types" /> | COMMENT |
| LOW | …web/src/app/(main)/feedback/question/dashboardPaths.ts | 1 | // Allowed dashboard paths for assistant deep-links. Each entry is appended to | COMMENT |
| LOW | clients/apps/web/src/utils/planSavings.test.ts | 181 | it('returns variable + fixed savings minus monthly plan cost', () => { | COMMENT |
| LOW | infra/preview/deploy.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | infra/preview/setup-base-vm.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | server/alembic.ini | 1 | # A generic, single database configuration. | COMMENT |
| LOW | server/alembic.ini | 21 | # string value is passed to dateutil.tz.gettz() | COMMENT |
| LOW | server/alembic.ini | 41 | # The path separator used here should be the separator specified by "version_path_separator" below. | COMMENT |
| LOW | server/polar/tax/repository.py | 41 | # Only US and Canada are reported at the state level; everywhere else is | COMMENT |
| LOW | server/polar/backoffice/middlewares.py | 61 | COMMENT | |
| LOW | server/polar/subscription/update.py | 241 | """Shared proration for a declared-quantity change (seats or units): one | COMMENT |
| LOW | server/polar/integrations/aws/s3/schemas.py | 141 | # S3 SHA-256 BASE64 validation for multipart upload is special. | COMMENT |
| LOW | server/polar/compass/service.py | 61 | COMMENT | |
| LOW | server/polar/authz/dependencies.py | 221 | # --------------------------------------------------------------------------- | COMMENT |
| LOW | server/polar/startup_program/service.py | 101 | # ``organization_id`` is intentionally omitted: ``POLAR_ACCESS_TOKEN`` | COMMENT |
| LOW | server/polar/invoice/generator.py | 441 | ) -> None: | COMMENT |
| LOW | server/emails/tsconfig.json | 21 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React J | COMMENT |
| LOW | server/emails/tsconfig.json | 41 | // "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in | COMMENT |
| LOW | server/emails/tsconfig.json | 61 | // "noEmit": true, /* Disable emitting files from a compilation. */ | COMMENT |
| LOW | server/emails/tsconfig.json | 81 | // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can | COMMENT |
| LOW | server/emails/tsconfig.json | 101 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly | COMMENT |
| LOW | server/tests/subscription/test_service_prorations.py | 61 | # not a subscription in Stripe. | COMMENT |
| LOW | server/tests/meter/test_service.py | 561 | # Day 1: max(10, 20) = 20, Day 2: NULL (no events), Day 3: max(15, 5) = 15 | COMMENT |
| LOW | server/tests/event/test_service.py | 1981 | # session: AsyncSession, | COMMENT |
| LOW | server/tests/event/test_service.py | 2001 | COMMENT | |
| LOW | server/tests/event/test_service.py | 2021 | # ) | COMMENT |
| LOW | server/scripts/seeds_load.py | 1821 | # }, | COMMENT |
| LOW | .github/workflows/deploy.yml | 41 | # Why per-env: sandbox can be ahead of production (failed prod deploy | COMMENT |
| LOW | .github/workflows/deploy.yml | 81 | # would silently emit "key=" (empty value) instead of aborting. | COMMENT |
| LOW | .github/workflows/deploy-environment.yml | 101 | "${{ inputs.render-worker-service-ids }}" | COMMENT |
| LOW | .github/workflows/deploy-environment.yml | 161 | env: | COMMENT |
| LOW | dev/cli/cli.py | 1 | #!/usr/bin/env -S uv run -s | COMMENT |
| LOW | dev/cli/commands/snap.py | 81 | # a fixed base (env + server boot, both branches) plus per-URL. ONE shared, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | server/polar/integrations/plain/service.py | 1348 | # Step 1: Try read-only lookup by email (handles legacy customers) | COMMENT |
| LOW⚡ | server/polar/integrations/plain/service.py | 1357 | # Step 2: Not found by email - upsert with external_id as identifier | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 939 | # Step 1: Find | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 944 | # Step 2: Restore | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 953 | # Step 3: Verify grant | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 961 | # Step 4: Verify license key | COMMENT |
| LOW⚡ | server/tests/scripts/test_restore_oneoff_grants.py | 968 | # Step 5: Running find again should return nothing | COMMENT |
| LOW⚡ | server/tests/customer_seat/test_service.py | 2832 | # Step 1: Assign a seat to the email (this creates a member) | COMMENT |
| LOW⚡ | server/tests/customer_seat/test_service.py | 2839 | # Step 2: Revoke the seat (this clears member_id, customer_id, email from seat) | COMMENT |
| LOW⚡ | server/tests/customer_seat/test_service.py | 2846 | # Step 3: Soft delete the member | COMMENT |
| LOW | server/tests/customer_seat/test_service.py | 2859 | # Step 4: Try to assign a new seat to the same email | COMMENT |
| LOW | server/scripts/migrate_organizations_members.py | 198 | # Step 1: Enable member_model_enabled | COMMENT |
| LOW | server/scripts/migrate_organizations_members.py | 211 | # Step 2: Run backfill steps directly | COMMENT |
| LOW⚡ | server/scripts/tax_filing_imports.py | 234 | # Step 1: Count rows | COMMENT |
| LOW⚡ | server/scripts/tax_filing_imports.py | 240 | # Step 2: Load CSV | COMMENT |
| LOW⚡ | server/scripts/tax_filing_imports.py | 247 | # Step 3: Process batches | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | clients/apps/web/src/utils/getResizedImage.ts | 27 | // in an SSR/email environment we do this for simplicity and to leverage caching. | COMMENT |
| LOW | server/polar/organization/tasks.py | 508 | # else: no customer and no email — just set customer_id below | COMMENT |
| MEDIUM | server/polar/organization_review/analyzer.py | 700 | # A product-change review is a comprehensive re-review of an | COMMENT |
| LOW | server/polar/event/service.py | 1017 | # events whose root_id was just set because an ancestor arrived in | COMMENT |
| MEDIUM | server/tests/metrics/test_tinybird_metrics.py | 1585 | # The harness commits shared seed data once for speed, so it can't use the | COMMENT |
| MEDIUM | server/tests/metrics/test_service.py | 2325 | # The harness commits shared seed data once for speed, so it can't use the | COMMENT |
| MEDIUM | server/tests/compass/test_endpoints.py | 44 | # harness doesn't provide. Every scenario here 4xxs before it is used, | COMMENT |
| MEDIUM | server/tests/payout/test_endpoints.py | 106 | # harness doesn't provide. The authz check raises before the | COMMENT |
| MEDIUM | dev/cli/commands/status.py | 1 | """Show comprehensive environment status.""" | STRING |
| MEDIUM | dev/cli/commands/status.py | 147 | """Show comprehensive environment status.""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | server/polar/customer/repository.py | 76 | customer_id = Customer.__table__.c.id.default.arg(None) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | server/polar/worker/_broker.py | 259 | # Group completion callbacks for orchestrating task sequences | COMMENT |
| MEDIUM | server/tests/order/test_service.py | 7190 | # here we only assert finalize's orchestration drives it with a paid | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | server/tests/merchant_migration/test_endpoints.py | 334 | CODE | |
| MEDIUM | server/tests/merchant_migration/test_cutover.py | 89 | CODE | |
| MEDIUM | server/tests/cli/test_endpoints.py | 183 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | terraform/scripts/plan-diff.sh | 6 | # Usage: | COMMENT |
| LOW | infra/preview/deploy.sh | 8 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/polar/worker/_runner.py | 178 | async def run_task( | CODE |