teamdigitale/italia-app

View on GitHub
ts/screens/authentication/analytics/spidAnalytics.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function trackLoginSpidError has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function trackLoginSpidError(errorCode?: string) {
  switch (errorCode) {
    case "19": {
      trackLoginSpidAttemptsError();
      return;
Severity: Minor
Found in ts/screens/authentication/analytics/spidAnalytics.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return;
    Severity: Major
    Found in ts/screens/authentication/analytics/spidAnalytics.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return;
      Severity: Major
      Found in ts/screens/authentication/analytics/spidAnalytics.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return;
        Severity: Major
        Found in ts/screens/authentication/analytics/spidAnalytics.ts - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status