erikras/redux-form

View on GitHub

Showing 125 of 125 total issues

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

  it('should retain dirty values when keepDirty is set', () => {
    const state = reducer(
      fromJS({
        foo: {
          registeredFields: {
Severity: Major
Found in src/__tests__/helpers/reducer.initialize.js and 2 other locations - About 3 hrs to fix
src/__tests__/helpers/reducer.initialize.js on lines 258..288
src/__tests__/helpers/reducer.initialize.js on lines 290..320

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 168.

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

Function createConnectedFields has 149 lines of code (exceeds 100 allowed). Consider refactoring.
Open

export default function createConnectedFields(structure: Structure<any, any>) {
  const { deepEqual, getIn, size } = structure

  const getSyncError = (syncErrors: Object, name: string) => {
    // Because the error for this field might not be at a level in the error structure where
Severity: Major
Found in src/ConnectedFields.js - About 2 hrs to fix

    Function createConnectedFieldArray has 148 lines of code (exceeds 100 allowed). Consider refactoring.
    Open

    export default function createConnectedFieldArray(structure: Structure<any, any>) {
      const { deepEqual, getIn, size, equals, orderChanged } = structure
      const getSyncError = (syncErrors: Object, name: string) => {
        // For an array, the error can _ONLY_ be under _error.
        // This is why this getSyncError is not the same as the
    Severity: Major
    Found in src/ConnectedFieldArray.js - About 2 hrs to fix

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

              updateSyncErrorsIfNeeded = (
                nextSyncErrors: ?Object,
                nextError: ?any,
                lastSyncErrors: ?Object
              ): void => {
      Severity: Major
      Found in src/createReduxForm.js and 1 other location - About 2 hrs to fix
      src/createReduxForm.js on lines 419..436

      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 143.

      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

              updateSyncWarningsIfNeeded = (
                nextSyncWarnings: ?Object,
                nextWarning: any,
                lastSyncWarnings: ?Object
              ): void => {
      Severity: Major
      Found in src/createReduxForm.js and 1 other location - About 2 hrs to fix
      src/createReduxForm.js on lines 346..361

      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 143.

      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

        it('should not remove submit errors if the field is registered multiple times', () => {
          const state = reducer(
            fromJS({
              foo: {
                registeredFields: { bar: { name: 'bar', type: 'field', count: 2 } },
      Severity: Major
      Found in src/__tests__/helpers/reducer.unregisterField.js and 3 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.unregisterField.js on lines 136..156
      src/__tests__/helpers/reducer.unregisterField.js on lines 214..234
      src/__tests__/helpers/reducer.unregisterField.js on lines 293..313

      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 139.

      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

        it('should not remove sync warnings if the field is registered multiple times', () => {
          const state = reducer(
            fromJS({
              foo: {
                registeredFields: { bar: { name: 'bar', type: 'field', count: 2 } },
      Severity: Major
      Found in src/__tests__/helpers/reducer.unregisterField.js and 3 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.unregisterField.js on lines 136..156
      src/__tests__/helpers/reducer.unregisterField.js on lines 175..195
      src/__tests__/helpers/reducer.unregisterField.js on lines 214..234

      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 139.

      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

        it('should not remove sync errors if the field is registered multiple times', () => {
          const state = reducer(
            fromJS({
              foo: {
                registeredFields: { bar: { name: 'bar', type: 'field', count: 2 } },
      Severity: Major
      Found in src/__tests__/helpers/reducer.unregisterField.js and 3 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.unregisterField.js on lines 175..195
      src/__tests__/helpers/reducer.unregisterField.js on lines 214..234
      src/__tests__/helpers/reducer.unregisterField.js on lines 293..313

      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 139.

      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

        it('should not remove async errors if the field is registered multiple times', () => {
          const state = reducer(
            fromJS({
              foo: {
                registeredFields: { bar: { name: 'bar', type: 'field', count: 2 } },
      Severity: Major
      Found in src/__tests__/helpers/reducer.unregisterField.js and 3 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.unregisterField.js on lines 136..156
      src/__tests__/helpers/reducer.unregisterField.js on lines 175..195
      src/__tests__/helpers/reducer.unregisterField.js on lines 293..313

      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 139.

      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 2 hrs to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 1014..1027
      flow-typed/npm/lodash_v4.x.x.js on lines 1132..1145
      flow-typed/npm/lodash_v4.x.x.js on lines 1236..1249

      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

          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 2 hrs to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 1014..1027
      flow-typed/npm/lodash_v4.x.x.js on lines 1065..1078
      flow-typed/npm/lodash_v4.x.x.js on lines 1236..1249

      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

          mergeWith<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 2 hrs to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 1014..1027
      flow-typed/npm/lodash_v4.x.x.js on lines 1065..1078
      flow-typed/npm/lodash_v4.x.x.js on lines 1132..1145

      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 2 hrs to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 1065..1078
      flow-typed/npm/lodash_v4.x.x.js on lines 1132..1145
      flow-typed/npm/lodash_v4.x.x.js on lines 1236..1249

      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 3 locations. Consider refactoring.
      Open

        it('should set value on change and touch with initial value', () => {
          const state = reducer(
            fromJS({
              foo: {
                values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.change.js and 2 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.blur.js on lines 158..188
      src/__tests__/helpers/reducer.change.js on lines 65..95

      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 131.

      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 3 locations. Consider refactoring.
      Open

        it("should allow setting an initialized field to ''", () => {
          const state = reducer(
            fromJS({
              foo: {
                values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.blur.js and 2 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.change.js on lines 33..63
      src/__tests__/helpers/reducer.change.js on lines 65..95

      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 131.

      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 3 locations. Consider refactoring.
      Open

        it("should allow setting an initialized field to ''", () => {
          const state = reducer(
            fromJS({
              foo: {
                values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.change.js and 2 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.blur.js on lines 158..188
      src/__tests__/helpers/reducer.change.js on lines 33..63

      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 131.

      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 3 locations. Consider refactoring.
      Open

          const state = reducer(
            setIn(
              fromJS({
                foo: {
                  values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.arrayRemove.js and 2 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.arrayRemove.js on lines 196..225
      src/__tests__/helpers/reducer.arrayRemove.js on lines 257..286

      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 130.

      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 3 locations. Consider refactoring.
      Open

          const state = reducer(
            setIn(
              fromJS({
                foo: {
                  values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.arrayRemove.js and 2 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.arrayRemove.js on lines 135..164
      src/__tests__/helpers/reducer.arrayRemove.js on lines 196..225

      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 130.

      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 3 locations. Consider refactoring.
      Open

          const state = reducer(
            setIn(
              fromJS({
                foo: {
                  values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.arrayRemove.js and 2 other locations - About 2 hrs to fix
      src/__tests__/helpers/reducer.arrayRemove.js on lines 135..164
      src/__tests__/helpers/reducer.arrayRemove.js on lines 257..286

      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 130.

      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

      Function render has 123 lines of code (exceeds 100 allowed). Consider refactoring.
      Open

              render() {
                // remove some redux-form config-only props
                /* eslint-disable no-unused-vars */
                const {
                  anyTouched,
      Severity: Major
      Found in src/createReduxForm.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language