erikras/redux-form

View on GitHub

Showing 141 of 141 total issues

Function createReduxForm has 804 lines of code (exceeds 100 allowed). Consider refactoring.
Open

const createReduxForm = (structure: Structure<*, *>) => {
  const { deepEqual, empty, getIn, setIn, keys, fromJS } = structure
  const isValid = createIsValid(structure)
  return (initialConfig: Config) => {
    const config = {
Severity: Major
Found in src/createReduxForm.js - About 3 days to fix

    Function createReducer has 703 lines of code (exceeds 100 allowed). Consider refactoring.
    Open

    function createReducer<M, L>(structure: Structure<M, L>) {
      const {
        deepEqual,
        empty,
        forEach,
    Severity: Major
    Found in src/createReducer.js - About 3 days to fix

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

        declare type Flow = (<A, B, C, D, E, F, G>(
          ab: UnaryFn<A, B>,
          bc: UnaryFn<B, C>,
          cd: UnaryFn<C, D>,
          de: UnaryFn<D, E>,
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 2 days to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 137..172
      flow-typed/npm/lodash_v4.x.x.js on lines 174..209
      flow-typed/npm/lodash_v4.x.x.js on lines 1430..1465

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

      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

        declare type FlowRight = (<A, B, C, D, E, F, G>(
          fg: UnaryFn<F, G>,
          ef: UnaryFn<E, F>,
          de: UnaryFn<D, E>,
          cd: UnaryFn<C, D>,
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 2 days to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 137..172
      flow-typed/npm/lodash_v4.x.x.js on lines 174..209
      flow-typed/npm/lodash_v4.x.x.js on lines 1393..1428

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

      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

        declare type Flow = (<A, B, C, D, E, F, G>(
          ab: UnaryFn<A, B>,
          bc: UnaryFn<B, C>,
          cd: UnaryFn<C, D>,
          de: UnaryFn<D, E>,
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 2 days to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 174..209
      flow-typed/npm/lodash_v4.x.x.js on lines 1393..1428
      flow-typed/npm/lodash_v4.x.x.js on lines 1430..1465

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

      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

        declare type FlowRight = (<A, B, C, D, E, F, G>(
          fg: UnaryFn<F, G>,
          ef: UnaryFn<E, F>,
          de: UnaryFn<D, E>,
          cd: UnaryFn<C, D>,
      Severity: Major
      Found in flow-typed/npm/lodash_v4.x.x.js and 3 other locations - About 2 days to fix
      flow-typed/npm/lodash_v4.x.x.js on lines 137..172
      flow-typed/npm/lodash_v4.x.x.js on lines 1393..1428
      flow-typed/npm/lodash_v4.x.x.js on lines 1430..1465

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

      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

      let render = () => {
        const FieldNormalizingForm = require('./FieldNormalizingForm').default
        const readme = require('./FieldNormalizing.md')
        const raw = require('!!raw-loader!./FieldNormalizingForm')
        const rawNormalizePhone = require('!!raw-loader!./normalizePhone')
      Severity: Major
      Found in examples/normalizing/src/index.js and 2 other locations - About 1 day to fix
      examples/fieldArrays/src/index.js on lines 31..83
      examples/initializeFromState/src/index.js on lines 34..86

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

      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

      let render = () => {
        const InitializeFromStateForm = require('./InitializeFromStateForm').default
        const readme = require('./InitializeFromState.md')
        const raw = require('!!raw-loader!./InitializeFromStateForm')
        const rawAccount = require('!!raw-loader!./account')
      Severity: Major
      Found in examples/initializeFromState/src/index.js and 2 other locations - About 1 day to fix
      examples/fieldArrays/src/index.js on lines 31..83
      examples/normalizing/src/index.js on lines 31..83

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

      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

      let render = () => {
        const FieldArraysForm = require('./FieldArraysForm').default
        const readme = require('./FieldArrays.md')
        const raw = require('!!raw-loader!./FieldArraysForm')
        const rawValidate = require('!!raw-loader!./validate')
      Severity: Major
      Found in examples/fieldArrays/src/index.js and 2 other locations - About 1 day to fix
      examples/initializeFromState/src/index.js on lines 34..86
      examples/normalizing/src/index.js on lines 31..83

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

      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

      let render = () => {
        const SimpleForm = require('./SimpleForm').default
        const readme = require('./Simple.md')
        const raw = require('!!raw-loader!./SimpleForm')
        ReactDOM.render(
      Severity: Major
      Found in examples/simple/src/index.js and 3 other locations - About 1 day to fix
      examples/fieldLevelValidation/src/index.js on lines 31..78
      examples/selectingFormValues/src/index.js on lines 31..78
      examples/syncValidation/src/index.js on lines 31..78

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

      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

      let render = () => {
        const SyncValidationForm = require('./SyncValidationForm').default
        const readme = require('./SyncValidation.md')
        const raw = require('!!raw-loader!./SyncValidationForm')
        ReactDOM.hydrate(
      Severity: Major
      Found in examples/syncValidation/src/index.js and 3 other locations - About 1 day to fix
      examples/fieldLevelValidation/src/index.js on lines 31..78
      examples/selectingFormValues/src/index.js on lines 31..78
      examples/simple/src/index.js on lines 31..78

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

      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

      let render = () => {
        const SelectingFormValuesForm = require('./SelectingFormValuesForm').default
        const readme = require('./SelectingFormValues.md')
        const raw = require('!!raw-loader!./SelectingFormValuesForm')
        ReactDOM.hydrate(
      Severity: Major
      Found in examples/selectingFormValues/src/index.js and 3 other locations - About 1 day to fix
      examples/fieldLevelValidation/src/index.js on lines 31..78
      examples/simple/src/index.js on lines 31..78
      examples/syncValidation/src/index.js on lines 31..78

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

      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

      let render = () => {
        const FieldLevelValidationForm = require('./FieldLevelValidationForm').default
        const readme = require('./FieldLevelValidation.md')
        const raw = require('!!raw-loader!./FieldLevelValidationForm')
        ReactDOM.hydrate(
      Severity: Major
      Found in examples/fieldLevelValidation/src/index.js and 3 other locations - About 1 day to fix
      examples/selectingFormValues/src/index.js on lines 31..78
      examples/simple/src/index.js on lines 31..78
      examples/syncValidation/src/index.js on lines 31..78

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

      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

        it('should remove async error from middle', () => {
          const state = reducer(
            fromJS({
              foo: {
                values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.arrayRemove.js and 1 other location - About 1 day to fix
      src/__tests__/helpers/reducer.arrayRemove.js on lines 581..632

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

      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

        it('should remove submit error from middle', () => {
          const state = reducer(
            fromJS({
              foo: {
                values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.arrayRemove.js and 1 other location - About 1 day to fix
      src/__tests__/helpers/reducer.arrayRemove.js on lines 423..474

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

      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

        it('should remove submit error from end', () => {
          const state = reducer(
            fromJS({
              foo: {
                values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.arrayRemove.js and 1 other location - About 1 day to fix
      src/__tests__/helpers/reducer.arrayRemove.js on lines 370..421

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

      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

        it('should remove async error from end', () => {
          const state = reducer(
            fromJS({
              foo: {
                values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.arrayRemove.js and 1 other location - About 1 day to fix
      src/__tests__/helpers/reducer.arrayRemove.js on lines 528..579

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

      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

        it('should remove async error from beginning', () => {
          const state = reducer(
            fromJS({
              foo: {
                values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.arrayRemove.js and 1 other location - About 1 day to fix
      src/__tests__/helpers/reducer.arrayRemove.js on lines 475..526

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

      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

        it('should remove submit error from beginning', () => {
          const state = reducer(
            fromJS({
              foo: {
                values: {
      Severity: Major
      Found in src/__tests__/helpers/reducer.arrayRemove.js and 1 other location - About 1 day to fix
      src/__tests__/helpers/reducer.arrayRemove.js on lines 317..368

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

      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

        it('should remove sync errors', () => {
          expect(
            reducer(
              setIn(
                fromJS({
      Severity: Major
      Found in src/__tests__/helpers/reducer.unregisterField.js and 1 other location - About 7 hrs to fix
      src/__tests__/helpers/reducer.unregisterField.js on lines 236..291

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

      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