SumOfUs/Champaign

View on GitHub

Showing 111 of 547 total issues

File lodash_v4.x.x.js has 5273 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// flow-typed signature: 911f4ab10b9a871625482b7b6622b76b
// flow-typed version: a0e86fa7fb/lodash_v4.x.x/flow_>=v0.63.x

declare module "lodash" {
  declare type __CurriedFunction1<A, R, AA: A> = (...r: [AA]) => R;
Severity: Major
Found in flow-typed/npm/lodash_v4.x.x.js - About 2 wks to fix

    File jquery_v3.x.x.js has 1047 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // flow-typed signature: d71d314ca25fc6c20610a3ba80af9df0
    // flow-typed version: 9698a46399/jquery_v3.x.x/flow_>=v0.28.x
    
    /* eslint-disable max-len, no-unused-vars, flowtype/no-weak-types */
    
    
    Severity: Major
    Found in flow-typed/npm/jquery_v3.x.x.js - About 2 days to fix

      File FundraiserView.test.js has 526 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import React from 'react';
      import configureStore from '../state';
      import { Provider } from 'react-redux';
      import FundraiserView from './FundraiserView';
      import { changeStep } from '../state/fundraiser/actions';
      Severity: Major
      Found in app/javascript/fundraiser/FundraiserView.test.js - About 1 day to fix

        File Payment.js has 472 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        // @flow
        import $ from 'jquery';
        import React, { Component } from 'react';
        import { FormattedMessage, FormattedHTMLMessage } from 'react-intl';
        import { connect } from 'react-redux';
        Severity: Minor
        Found in app/javascript/components/Payment/Payment.js - About 7 hrs to fix

          File jest_v23.x.x.js has 444 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          // flow-typed signature: 78c200acffbcc16bba9478f5396c3a00
          // flow-typed version: b2980740dd/jest_v23.x.x/flow_>=v0.39.x
          
          type JestMockFn<TArguments: $ReadOnlyArray<*>, TReturn> = {
            (...args: TArguments): TReturn,
          Severity: Minor
          Found in flow-typed/npm/jest_v23.x.x.js - About 6 hrs to fix

            File webpack_v4.x.x.js has 419 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // flow-typed signature: 2795c40d7224062bf0980781a3d4dad0
            // flow-typed version: 7f95efe47a/webpack_v4.x.x/flow_>=v0.71.x
            
            declare module 'webpack' {
              declare class WebpackError extends Error {
            Severity: Minor
            Found in flow-typed/npm/webpack_v4.x.x.js - About 6 hrs to fix

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

                render() {
                  const {
                    member,
                    hideRecurring,
                    fundraiser: {
              Severity: Major
              Found in app/javascript/components/Payment/Payment.js - About 5 hrs to fix

                File moment_v2.x.x.js has 366 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                // flow-typed signature: b8d2d85f70b82d72377cf60c3606a2d9
                // flow-typed version: 0cd8e983b3/moment_v2.x.x/flow_>=v0.25.x
                
                type moment$MomentOptions = {
                  y?: number | string,
                Severity: Minor
                Found in flow-typed/npm/moment_v2.x.x.js - About 4 hrs to fix

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

                    render() {
                      if (!this.state.data) {
                        return this.renderLoading();
                      }
                  
                  
                  Severity: Major
                  Found in app/javascript/call_tool_analytics/CallToolAnalyticsView.js - About 4 hrs to fix

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

                      render() {
                        const {
                          fundraiser: {
                            formId,
                            fields,
                    Severity: Major
                    Found in app/javascript/fundraiser/FundraiserView.js - About 3 hrs to fix

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

                        render() {
                          return (
                            <div className="email-target">
                              <div className="email-target-form">
                                <form
                      Severity: Major
                      Found in app/javascript/email_pension/EmailRepresentativeView.js - About 3 hrs to fix

                        ActionForm has 31 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        const ActionForm = Backbone.View.extend({
                          el: 'form.action-form',
                          HIDDEN_FIELDS: [
                            'source',
                            'akid',
                        Severity: Minor
                        Found in app/javascript/member-facing/backbone/action_form.js - About 3 hrs to fix

                          File action_form.js has 322 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          // @flow
                          import $ from 'jquery';
                          import I18n from 'champaign-i18n';
                          import React from 'react';
                          import { render } from 'react-dom';
                          Severity: Minor
                          Found in app/javascript/member-facing/backbone/action_form.js - About 3 hrs to fix

                            Function fetchInitialState has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            const fetchInitialState = vals => {
                              const defaults = {
                                paymentMethods: [],
                                locale: 'en',
                                member: {},
                            Severity: Major
                            Found in app/javascript/fundraiser/FundraiserView.test.js - About 3 hrs to fix

                              File reducer.js has 310 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              // @flow
                              import {
                                compact,
                                includes,
                                isEmpty,
                              Severity: Minor
                              Found in app/javascript/state/fundraiser/reducer.js - About 3 hrs to fix

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

                                  render() {
                                    return (
                                      <div className="email-target">
                                        <div className="email-target-form">
                                          <form onSubmit={this.onSubmit} className="action-form form--big">
                                Severity: Major
                                Found in app/javascript/email_pension/EmailPensionView.js - About 3 hrs to fix

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

                                    render() {
                                      if (!this.props.paymentMethods.length || this.props.hidden) return null;
                                  
                                      return (
                                        <div className="ExpressDonation">
                                  Severity: Major
                                  Found in app/javascript/components/ExpressDonation/ExpressDonation.js - About 3 hrs to fix

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

                                      render() {
                                        const { errors } = this.state;
                                        return (
                                          <div className="EmailToolView">
                                            <div className="EmailToolView-form">
                                    Severity: Major
                                    Found in app/javascript/email_tool/EmailToolView.js - About 3 hrs to fix

                                      File action_queue.rb has 282 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      require 'active_support/concern'
                                      
                                      module ActionQueue
                                        module Enqueable
                                          extend ActiveSupport::Concern
                                      Severity: Minor
                                      Found in app/services/action_queue.rb - About 2 hrs to fix

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

                                          render() {
                                            return (
                                              <div className="AmountSelection-container section">
                                                <Thermometer />
                                                <DonationBands
                                        Severity: Major
                                        Found in app/javascript/components/AmountSelection/AmountSelection.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language