Skip to content

added tests for coverage

c175e74
Select commit
Loading
Failed to load commit list.
Open

feature/stripe-checkout #570

added tests for coverage
c175e74
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed May 6, 2026 in 43s

Quality Gate failed

Failed conditions
11.2% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 217 in src/api/functions/stripe.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1PStzkjWnJGYBcRWdI&open=AZ1PStzkjWnJGYBcRWdI&pullRequest=570

Check warning on line 905 in src/api/routes/stripe.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected lexical declaration in case block.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1PStzSjWnJGYBcRWdF&open=AZ1PStzSjWnJGYBcRWdF&pullRequest=570

Check warning on line 903 in src/api/routes/stripe.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected lexical declaration in case block.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1PStzSjWnJGYBcRWdE&open=AZ1PStzSjWnJGYBcRWdE&pullRequest=570

Check warning on line 260 in src/ui/pages/stripe/StripePaymentStatus.page.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ36lKM60pso1i0yj4ie&open=AZ36lKM60pso1i0yj4ie&pullRequest=570

Check warning on line 361 in tests/unit/stripe.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1PStwqjWnJGYBcRWdB&open=AZ1PStwqjWnJGYBcRWdB&pullRequest=570

Check warning on line 582 in src/api/functions/stripe.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this conditional structure or edit its code blocks so that they're not all the same.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1PStzkjWnJGYBcRWdJ&open=AZ1PStzkjWnJGYBcRWdJ&pullRequest=570

Check warning on line 1180 in src/api/routes/stripe.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1PStzSjWnJGYBcRWdH&open=AZ1PStzSjWnJGYBcRWdH&pullRequest=570

Check warning on line 699 in src/api/routes/stripe.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected lexical declaration in case block.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ3582vRh4cAuMZrHoj_&open=AZ3582vRh4cAuMZrHoj_&pullRequest=570

Check warning on line 700 in src/api/routes/stripe.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected lexical declaration in case block.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ3582vRh4cAuMZrHokA&open=AZ3582vRh4cAuMZrHokA&pullRequest=570

Check warning on line 262 in src/ui/pages/stripe/StripePaymentStatus.page.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ36lKM60pso1i0yj4if&open=AZ36lKM60pso1i0yj4if&pullRequest=570

Check warning on line 91 in src/ui/pages/stripe/StripePaymentStatus.page.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1pjlNDCMRywbZ2BGSh&open=AZ1pjlNDCMRywbZ2BGSh&pullRequest=570

Check warning on line 280 in src/ui/pages/stripe/StripePaymentStatus.page.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1pjlNDCMRywbZ2BGSm&open=AZ1pjlNDCMRywbZ2BGSm&pullRequest=570

Check warning on line 414 in tests/unit/stripe.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1PStwqjWnJGYBcRWdC&open=AZ1PStwqjWnJGYBcRWdC&pullRequest=570

Check warning on line 21 in src/ui/pages/stripe/StripePaymentStatus.page.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'IconArrowLeft'.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ2xpFG3vn5gzXa5lThk&open=AZ2xpFG3vn5gzXa5lThk&pullRequest=570

Check warning on line 658 in src/api/routes/stripe.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1PStzSjWnJGYBcRWdD&open=AZ1PStzSjWnJGYBcRWdD&pullRequest=570

Check warning on line 1078 in src/api/routes/stripe.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=acm-uiuc_core&issues=AZ1PStzSjWnJGYBcRWdG&open=AZ1PStzSjWnJGYBcRWdG&pullRequest=570