SumOfUs/Champaign

View on GitHub

Showing 547 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

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

        declare type Curry = (<A, R>((...r: [A]) => R) => CurriedFunction1<A, R>) &
          (<A, B, R>((...r: [A, B]) => R) => CurriedFunction2<A, B, R>) &
          (<A, B, C, R>((...r: [A, B, C]) => R) => CurriedFunction3<A, B, C, R>) &
          (<A, B, C, D, R>(
            (...r: [A, B, C, D]) => R
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 1 day to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 122..133

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 339.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

        declare type Curry = (<A, R>((...r: [A]) => R) => CurriedFunction1<A, R>) &
          (<A, B, R>((...r: [A, B]) => R) => CurriedFunction2<A, B, R>) &
          (<A, B, C, R>((...r: [A, B, C]) => R) => CurriedFunction3<A, B, C, R>) &
          (<A, B, C, D, R>(
            (...r: [A, B, C, D]) => R
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 1 day to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 1572..1583

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 339.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

        declare type __CurriedFunction6<
          A,
          B,
          C,
          D,
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 1 day to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 1536..1555

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 274.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

        declare type __CurriedFunction6<
          A,
          B,
          C,
          D,
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 1 day to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 86..105

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 274.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

        declare type __CurriedFunction5<
          A,
          B,
          C,
          D,
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 1 day to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 55..71

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 214.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

        declare type __CurriedFunction5<
          A,
          B,
          C,
          D,
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 1 day to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 1505..1521

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 214.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      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

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

              declare type __CurriedFunction4<
                A,
                B,
                C,
                D,
            Severity: Major
            Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 6 hrs to fix
            flow-typed/npm/lodash_v4.x.x.js on lines 1479..1492

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 160.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

              declare type __CurriedFunction4<
                A,
                B,
                C,
                D,
            Severity: Major
            Found in flow-typed/npm/lodash_v4.x.x.js and 1 other location - About 6 hrs to fix
            flow-typed/npm/lodash_v4.x.x.js on lines 29..42

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 160.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            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

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                      this.state.currencyDropdVisible && (
                        <select
                          value={this.props.currency}
                          className="AmountSelection__currency-selector"
                          onChange={(e: SyntheticEvent<HTMLSelectElement>) =>
                app/javascript/components/AmountSelection/AmountSelection.js on lines 106..122

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 149.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        {this.state.currencyDropdVisible && (
                          <select
                            value={this.props.currency}
                            className="AmountSelection__currency-selector"
                            onChange={(e: SyntheticEvent<HTMLSelectElement>) =>
                Severity: Major
                Found in app/javascript/components/AmountSelection/AmountSelection.js and 1 other location - About 5 hrs to fix
                app/javascript/components/CurrencySelector/CurrencySelector.js on lines 34..50

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 149.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 4 locations. Consider refactoring.
                Open

                    extendWith<T: Object, A: Object, B: Object, C: Object, D: Object>(
                      object: T,
                      s1: A,
                      s2: B,
                      s3: C,
                Severity: Major
                Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 4 hrs to fix
                flow-typed/npm/lodash_v4.x.x.js on lines 1005..1018
                flow-typed/npm/lodash_v4.x.x.js on lines 1056..1069
                flow-typed/npm/lodash_v4.x.x.js on lines 1226..1239

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 134.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 4 locations. Consider refactoring.
                Open

                    assignInWith<T: Object, A: Object, B: Object, C: Object, D: Object>(
                      object: T,
                      s1: A,
                      s2: B,
                      s3: C,
                Severity: Major
                Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 4 hrs to fix
                flow-typed/npm/lodash_v4.x.x.js on lines 1056..1069
                flow-typed/npm/lodash_v4.x.x.js on lines 1122..1135
                flow-typed/npm/lodash_v4.x.x.js on lines 1226..1239

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 134.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 4 locations. Consider refactoring.
                Open

                    assignWith<T: Object, A: Object, B: Object, C: Object, D: Object>(
                      object: T,
                      s1: A,
                      s2: B,
                      s3: C,
                Severity: Major
                Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 4 hrs to fix
                flow-typed/npm/lodash_v4.x.x.js on lines 1005..1018
                flow-typed/npm/lodash_v4.x.x.js on lines 1122..1135
                flow-typed/npm/lodash_v4.x.x.js on lines 1226..1239

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 134.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Severity
                Category
                Status
                Source
                Language