binary-com/binary-next-gen

View on GitHub

Showing 551 of 551 total issues

Avoid too many return statements within this function.
Open

                return state;
Severity: Major
Found in src/_reducers/trades/TradesProposalInfoReducer.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return state.remove(action.index);
    Severity: Major
    Found in src/_reducers/trades/TradesParamsReducer.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return state
                      .set(action.panel + 'ActiveTab', action.index)
                      .set(action.panel + 'PanelVisible', !(panelVisible && sameTabSelected));
      Severity: Major
      Found in src/_reducers/WorkspaceReducer.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return state;
        Severity: Major
        Found in src/_reducers/BoughtContractsReducer.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return state.set(index, fromJS(params));
          Severity: Major
          Found in src/_reducers/trades/TradesParamsReducer.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return state.map(t => t.update('dateStart', v => {
                            if (v && v < now + 350) {
                                const newDateInSecondsResolution = now + 350;
                                const newDateInMinutesResolution = newDateInSecondsResolution - (newDateInSecondsResolution % 60);
                                return newDateInMinutesResolution;
            Severity: Major
            Found in src/_reducers/trades/TradesParamsReducer.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return state
                              .setIn([index, 'receipt'], receipt)
                              .setIn([index, 'mostRecentContractId'], receipt.contract_id);
              Severity: Major
              Found in src/_reducers/trades/TradesPurchaseInfoReducer.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return initialState;
                Severity: Major
                Found in src/_reducers/SettingsReducer.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return initialState;
                  Severity: Major
                  Found in src/_reducers/AccountReducer.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                              return state.set('currencies_config', currencies_config);
                    Severity: Major
                    Found in src/_reducers/AccountReducer.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return state.remove(action.index);
                      Severity: Major
                      Found in src/_reducers/trades/TradesProposalInfoReducer.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return initialState;
                        Severity: Major
                        Found in src/_reducers/trades/TradesProposalInfoReducer.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return state.set('token', action.token);
                          Severity: Major
                          Found in src/_reducers/AccountReducer.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return state.set('landing_company', action.landing_company);
                            Severity: Major
                            Found in src/_reducers/AccountReducer.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return state;
                              Severity: Major
                              Found in src/_reducers/TickReducer.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return state.setIn([index, fieldName], fieldValue);
                                Severity: Major
                                Found in src/_reducers/trades/TradesProposalInfoReducer.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return state.setIn([action.index, action.fieldName], action.fieldValue);
                                  Severity: Major
                                  Found in src/_reducers/trades/TradesParamsReducer.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                    return state.update(action.index, v => v.merge(action.params));
                                    Severity: Major
                                    Found in src/_reducers/trades/TradesParamsReducer.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return initialState;
                                      Severity: Major
                                      Found in src/_reducers/trades/TradesParamsReducer.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return initialState;
                                        Severity: Major
                                        Found in src/_reducers/trades/TradesParamsReducer.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language