binary-com/binary-next-gen

View on GitHub

Showing 162 of 551 total issues

Function render has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    render() {
        const {
            loginID,
            currency,
            turnover,
Severity: Minor
Found in src/reality-check/TradingStatsCard.js - About 1 hr to fix

    Function internalTradeModelToChartTradeModel has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const internalTradeModelToChartTradeModel = tradeObj => {
        const {
            amount,
            basis,
            type,
    Severity: Minor
    Found in src/trade/adapters/TradeObjectAdapter.js - About 1 hr to fix

      Function render has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          render() {
              const { email, salutation, first_name, last_name, date_of_birth, country, loginid } = this.props;
              const fullName = first_name ? salutation + ' ' + first_name + ' ' + last_name : 'N/A';
              const dob = date_of_birth ? epochToDateString(date_of_birth) : 'N/A';
              const isVirtual = /VR/i.test(loginid);
      Severity: Minor
      Found in src/settings/SettingsDetails.js - About 1 hr to fix

        Function render has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            render() {
                const { tradeParams, index, contract } = this.props;
                const { dropdownShown } = this.state;
                const selectedType = getInternalTradeType(tradeParams);
                return (
        Severity: Minor
        Found in src/trade-type-picker/TradeTypeDropDown.js - About 1 hr to fix

          Function render has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              render() {
                  const { errors } = this.state;
                  const { tradingTimes, tradingTimesFilter } = this.props;
                  const filter = tradingTimesFilter.filter;
                  const tradingTimesDate = tradingTimesFilter.date;
          Severity: Minor
          Found in src/trading-times/TradingTimesCard.js - About 1 hr to fix

            Function render has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                render() {
                    const { tradesCount, layoutN } = this.props;
                    const { dropdownShown } = this.state;
            
                    return (
            Severity: Minor
            Found in src/layout-picker/LayoutPicker.js - About 1 hr to fix

              Function render has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  render() {
                      const { contract, digits } = this.props;
                      const backendFailure = openContractSubscriptionFailed(contract);
              
                      if (backendFailure) return null;
              Severity: Minor
              Found in src/portfolio/PortfolioItem.js - About 1 hr to fix

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

                    render() {
                        const { trades } = this.props;
                        const { id } = this.props.params;
                        const { query } = this.props.location;
                        const currency = query.currency;
                Severity: Minor
                Found in src/payout-picker/PayoutPickerCard.js - About 1 hr to fix

                  Function constructor has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    constructor(props) {
                      super(props);
                  
                      this.state = {
                        progress: false,
                  Severity: Minor
                  Found in src/upgrade/UpgradeToMaltainvestCard.js - About 1 hr to fix

                    Function render has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        render() {
                            const { marketTree, allOptionShown, showMarkets, value } = this.props;
                            const markets = Object.keys(marketTree)
                                .filter(market => !(showMarkets && showMarkets.includes(marketTree[market].display_name)));
                    
                    
                    Severity: Minor
                    Found in src/asset-picker/MarketSubmarketPicker.js - About 1 hr to fix

                      Function render has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          render() {
                              const { email, serverError, progress, validatedOnce } = this.state;
                              this.emailIsValid = isValidEmail(email);
                      
                              return (
                      Severity: Minor
                      Found in src/create-account/VerifyEmailCard.js - About 1 hr to fix

                        Function constructor has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            constructor(props) {
                                super(props);
                                this.state = {
                                    hasError: false,
                                    progress: false,
                        Severity: Minor
                        Found in src/upgrade/UpgradeToRealCard.js - About 1 hr to fix

                          Function getTicksByCount has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              (dispatch, getState) => {
                                  const { ticks } = getState();
                                  if (subscribe && !ticks.get(symbol)) {
                                      return api
                                          .getTickHistory(symbol, { end: 'latest', count, adjust_start_time: 1, subscribe: 1 })
                          Severity: Minor
                          Found in src/_actions/TickActions.js - About 1 hr to fix

                            Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                render() {
                                    const { compact, contract, pipSize } = this.props;
                                    if (!contract) return null;
                            
                                    return (
                            Severity: Minor
                            Found in src/contract-details/ContractDetailsCard.js - About 1 hr to fix

                              Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  render() {
                                      const { times } = this.props;
                                      const compact = isMobile();
                              
                                      return (
                              Severity: Minor
                              Found in src/trading-times/TradingTimesTable.js - About 1 hr to fix

                                Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    render() {
                                        return (
                                            <table>
                                                <thead>
                                                    <tr>
                                Severity: Minor
                                Found in src/jp-trade/JpPayoutPicker.js - About 1 hr to fix

                                  Function tradeCreation has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export function* tradeCreation(action) {
                                      const { index, symbol } = action;
                                  
                                      // unsubscribe and remove existing proposal
                                      yield put(unsubscribeProposal(index));
                                  Severity: Minor
                                  Found in src/_trade/saga/LifeCycleSaga.js - About 1 hr to fix

                                    Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        render() {
                                            const { contract, showLongcode, onTradeAgainClicked } = this.props;
                                            const backendFailure = openContractSubscriptionFailed(contract);
                                    
                                            return (backendFailure ?
                                    Severity: Minor
                                    Found in src/contract-details/ContractReceipt.js - About 1 hr to fix

                                      Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          render() {
                                              const { contract } = this.props;
                                      
                                              // exit_tick_time is not return for contract that exit earlier
                                              // eg. TOUCH and EndsINOut
                                      Severity: Minor
                                      Found in src/contract-details/ContractDetailsList.js - About 1 hr to fix

                                        Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            render() {
                                                const { tradeMode } = this.props;
                                        
                                                const tabsBtnClasses = classNames({
                                                    'btn-secondary ': true,
                                        Severity: Minor
                                        Found in src/web/ToggleButtons.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language