AugurProject/augur-ui

View on GitHub

Showing 529 of 1,757 total issues

Function componentWillReceiveProps has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  componentWillReceiveProps(nextProps) {
    const {
      orderEthEstimate,
      orderShareEstimate,
      selectedNav,
Severity: Major
Found in src/modules/trading/components/trading--form/trading--form.jsx - About 2 hrs to fix

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

      render() {
        const {
          id,
          description,
          linkPath,
    Severity: Major
    Found in src/modules/notifications/components/notification/notification.jsx - About 2 hrs to fix

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

        render() {
          const { switchUniverse, universe } = this.props;
          const { parent, currentLevel, children } = this.state.universesInfo;
      
          return (

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

          render() {
            const { highestBlock, lastProcessedBlock, isLogged } = this.props;
            const s = this.state;
            const highestBlockBn = createBigNumber(highestBlock);
            const lastProcessedBlockBn = createBigNumber(lastProcessedBlock);
        Severity: Major
        Found in src/modules/block-info/components/block-info-data/block-info-data.jsx - About 2 hrs to fix

          Function drawDepth has 71 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            drawDepth(options) {
              if (this.depthChart) {
                const {
                  marketDepth,
                  orderBookKeys,

            File migrate-rep-form.jsx has 285 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /* eslint jsx-a11y/label-has-for: 0 */
            
            import React, { Component } from "react";
            import PropTypes from "prop-types";
            import classNames from "classnames";
            Severity: Minor
            Found in src/modules/forking/components/migrate-rep-form/migrate-rep-form.jsx - About 2 hrs to fix

              File reporting-payouts.jsx has 284 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              import React, { Component } from "react";
              import PropTypes from "prop-types";
              import classNames from "classnames";
              import ReactTooltip from "react-tooltip";
              import { formatAttoRep } from "utils/format-number";

                Function default has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export default function(
                  market,
                  disputeStakes,
                  newOutcomeDisputeBond,
                  forkThreshold
                Severity: Major
                Found in src/modules/reports/selectors/select-dispute-outcomes.js - About 2 hrs to fix

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

                    render() {
                      const { outcomes, marketId, isMobile, isMobileSmall } = this.props;
                  
                      const numShown =
                        isMobile && !isMobileSmall ? NUM_CELLS_SHOWN_MOBILE : NUM_CELLS_SHOWN;

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

                      render() {
                        const {
                          claimTradingProceeds,
                          closedMarkets,
                          currentTimestamp,
                    Severity: Major
                    Found in src/modules/portfolio/components/positions/positions.jsx - About 2 hrs to fix

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

                        constructor(props) {
                          super(props);
                      
                          this.state = {
                            mainMenu: { scalar: 0, open: false, currentTween: null },
                      Severity: Major
                      Found in src/modules/app/components/app/app.jsx - About 2 hrs to fix

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

                          render() {
                            const s = this.state;
                        
                            return (
                              <section className={Styles.DerivationPathEditor}>
                        Severity: Major
                        Found in src/modules/auth/components/common/derivation-path-editor.jsx - About 2 hrs to fix

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

                            render() {
                              const {
                                currentTime,
                                doesUserHaveRep,
                                marginLeft,

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

                              render() {
                                const {
                                  isExtendedDisplay,
                                  isMobile,
                                  outcomeName,

                              Consider simplifying this complex logical expression.
                              Open

                                if (!assembledMarketsCache[marketId]) {
                                  assembledMarketsCache[marketId] = memoize(
                                    (
                                      marketId,
                                      marketData,
                              Severity: Critical
                              Found in src/modules/markets/selectors/market.js - About 2 hrs to fix

                                Function pollForAccount has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function pollForAccount(dispatch, getState, callback) {
                                  const { loginAccount } = getState();
                                  let accountType =
                                    loginAccount && loginAccount.meta && loginAccount.meta.accountType;
                                
                                
                                Severity: Major
                                Found in src/modules/app/actions/init-augur.js - About 2 hrs to fix

                                  Function loadUniverseInfo has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export function loadUniverseInfo(callback = logError) {
                                    return (dispatch, getState) => {
                                      const { universe, loginAccount, marketsData } = getState();
                                      const universeId = universe.id || UNIVERSE_ID;
                                  
                                  
                                  Severity: Major
                                  Found in src/modules/universe/actions/load-universe-info.js - About 2 hrs to fix

                                    Function default has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export default function(reportableOutcomes, forkMigrationTotals) {
                                      const invalidMarketId = "0.5";
                                      const topOutcomes = 8;
                                    
                                      if (
                                    Severity: Major
                                    Found in src/modules/reports/selectors/select-migrated-totals.js - About 2 hrs to fix

                                      Function default has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      export default function(marketsData = DEFAULT_STATE, action) {
                                        switch (action.type) {
                                          case UPDATE_MARKETS_DATA: // TODO -- allow for the consumption of partial market objects
                                            return {
                                              ...marketsData,
                                      Severity: Major
                                      Found in src/modules/markets/reducers/markets-data.js - About 2 hrs to fix

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

                                          render() {
                                            const {
                                              doesUserHaveRep,
                                              forkEndTime,
                                              history,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language