teamdigitale/italia-app

View on GitHub
ts/store/reducers/wallet/payment.ts

Summary

Maintainability
C
1 day
Test Coverage

Function reducer has 142 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const reducer = (
  state: PaymentState = PAYMENT_INITIAL_STATE,
  action: Action
): PaymentState => {
  switch (action.type) {
Severity: Major
Found in ts/store/reducers/wallet/payment.ts - About 5 hrs to fix

    File payment.ts has 273 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import * as pot from "@pagopa/ts-commons/lib/pot";
    import * as O from "fp-ts/lib/Option";
    import { createSelector } from "reselect";
    import { getType } from "typesafe-actions";
    import { PspData } from "../../../../definitions/pagopa/PspData";
    Severity: Minor
    Found in ts/store/reducers/wallet/payment.ts - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status