LukeSheard/Monzo-Dashboard

View on GitHub

Showing 16 of 63 total issues

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

  render() {
    const {
      activeUrl,
      loggedIn,
    } = this.props;
Severity: Major
Found in src/common/components/header/index.jsx - About 2 hrs to fix

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

      render() {
        const {
          store,
          renderProps,
        } = this.props;
    Severity: Major
    Found in src/server/html/index.jsx - About 2 hrs to fix

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

        render() {
          const {
            children,
          } = this.props;
          const {
      Severity: Major
      Found in src/common/views/app.jsx - About 2 hrs to fix

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

          render() {
            const {
              disabled,
              error,
              dateFormat,
        Severity: Minor
        Found in src/common/components/form/date.jsx - About 2 hrs to fix

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

            render() {
              const {
                amount,
                currency,
                date,
          Severity: Minor
          Found in src/common/components/transaction-list/transaction/index.jsx - About 1 hr to fix

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

            export default function (req, res) {
              const {
                code,
                state,
              } = req.query;
            Severity: Minor
            Found in src/server/token/issue.js - About 1 hr to fix

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

              export default function (req, res) {
                const refreshCookie = get(`signedCookies[${COOKIE_REFRESH_NAME}]`, req);
              
                if (isEmpty(refreshCookie)) {
                  return res.redirect('/login');
              Severity: Minor
              Found in src/server/token/refresh.js - About 1 hr to fix

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

                  render() {
                    const {
                      children,
                      error,
                      label,
                Severity: Minor
                Found in src/common/components/form/select.jsx - About 1 hr to fix

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

                    render() {
                      const {
                        disabled,
                        error,
                        label,
                  Severity: Minor
                  Found in src/common/components/form/field.jsx - About 1 hr to fix

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

                      render() {
                        const {
                          accounts,
                          fields: {
                            activeAccount,
                    Severity: Minor
                    Found in src/common/routes/settings/index.jsx - About 1 hr to fix

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

                        render() {
                          const {
                            fields: {
                              startDate,
                              endDate,
                      Severity: Minor
                      Found in src/common/components/transaction-list/filters/index.jsx - About 1 hr to fix

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

                          render() {
                            const {
                              balance,
                              currency,
                              spendToday,
                        Severity: Minor
                        Found in src/common/components/balance/index.jsx - About 1 hr to fix

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

                            render() {
                              const {
                                onCancel,
                                signOut,
                              } = this.props;
                          Severity: Minor
                          Found in src/common/routes/sign-out/index.jsx - About 1 hr to fix

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

                              render() {
                                const {
                                  date,
                                  transactions,
                                } = this.props;
                            Severity: Minor
                            Found in src/common/components/transaction-list/group/index.jsx - About 1 hr to fix

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

                              export default function (history = createMemoryHistory(), initialState = {}) {
                                const sagaMiddleware = createSagaMiddleware();
                              
                                let plugins;
                                if (_DEV_) {
                              Severity: Minor
                              Found in src/common/store/index.js - About 1 hr to fix

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

                                export function start() {
                                  const {
                                    CLIENT_ID,
                                    CLIENT_SECRET,
                                    STATE_TOKEN,
                                Severity: Minor
                                Found in src/server/index.js - About 1 hr to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language