binary-com/binary-next-gen

View on GitHub

Showing 551 of 551 total issues

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

  declare type ContextSpawnFn =
    & (<R, C: Context, Fn: Fn0<R>>(cfn: [C, Fn], ...rest: Array<void>) => SpawnEffect0<C, Fn>)
    & (<T1, R, C: Context, Fn: Fn1<T1, R>>(cfn: [C, Fn], t1: T1, ...rest: Array<void>) => SpawnEffect1<C, Fn, T1>)
    & (<T1, T2, R, C: Context, Fn: Fn2<T1, T2, R>>(cfn: [C, Fn], t1: T1, t2: T2, ...rest: Array<void>) => SpawnEffect2<C, Fn, T1, T2>)
    & (<T1, T2, T3, R, C: Context, Fn: Fn3<T1, T2, T3, R>>(cfn: [C, Fn], t1: T1, t2: T2, t3: T3, ...rest: Array<void>) => SpawnEffect3<C, Fn, T1, T2, T3>)
Severity: Major
Found in flow-typed/npm/redux-saga_v0.11.x.js and 3 other locations - About 5 days to fix
flow-typed/npm/redux-saga_v0.11.x.js on lines 338..346
flow-typed/npm/redux-saga_v0.11.x.js on lines 362..370
flow-typed/npm/redux-saga_v0.11.x.js on lines 386..394

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

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 CallFn =
    & ContextCallFn
    & (<R, Fn: Fn0<R>>(fn: Fn, ...rest: Array<void>) => CallEffect0<null, Fn>)
    & (<T1, R, Fn: Fn1<T1, R>>(fn: Fn, t1: T1, ...rest: Array<void>) => CallEffect1<null, Fn, T1>)
    & (<T1, T2, R, Fn: Fn2<T1, T2, R>>(fn: Fn, t1: T1, t2: T2, ...rest: Array<void>) => CallEffect2<null, Fn, T1, T2>)
Severity: Major
Found in flow-typed/npm/redux-saga_v0.11.x.js and 3 other locations - About 4 days to fix
flow-typed/npm/redux-saga_v0.11.x.js on lines 372..381
flow-typed/npm/redux-saga_v0.11.x.js on lines 396..405
flow-typed/npm/redux-saga_v0.11.x.js on lines 420..429

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

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 CpsFn =
    & ContextCpsFn
    & (<R, Fn: Fn0<R>>(fn: Fn, ...rest: Array<void>) => CpsEffect0<null, Fn>)
    & (<T1, R, Fn: Fn1<T1, R>>(fn: Fn, t1: T1, ...rest: Array<void>) => CpsEffect1<null, Fn, T1>)
    & (<T1, T2, R, Fn: Fn2<T1, T2, R>>(fn: Fn, t1: T1, t2: T2, ...rest: Array<void>) => CpsEffect2<null, Fn, T1, T2>)
Severity: Major
Found in flow-typed/npm/redux-saga_v0.11.x.js and 3 other locations - About 4 days to fix
flow-typed/npm/redux-saga_v0.11.x.js on lines 348..357
flow-typed/npm/redux-saga_v0.11.x.js on lines 372..381
flow-typed/npm/redux-saga_v0.11.x.js on lines 420..429

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

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 ForkFn =
    & ContextForkFn
    & (<R, Fn: Fn0<R>>(fn: Fn, ...rest: Array<void>) => ForkEffect0<null, Fn>)
    & (<T1, R, Fn: Fn1<T1, R>>(fn: Fn, t1: T1, ...rest: Array<void>) => ForkEffect1<null, Fn, T1>)
    & (<T1, T2, R, Fn: Fn2<T1, T2, R>>(fn: Fn, t1: T1, t2: T2, ...rest: Array<void>) => ForkEffect2<null, Fn, T1, T2>)
Severity: Major
Found in flow-typed/npm/redux-saga_v0.11.x.js and 3 other locations - About 4 days to fix
flow-typed/npm/redux-saga_v0.11.x.js on lines 348..357
flow-typed/npm/redux-saga_v0.11.x.js on lines 396..405
flow-typed/npm/redux-saga_v0.11.x.js on lines 420..429

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

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 SpawnFn =
    & ContextSpawnFn
    & (<R, Fn: Fn0<R>>(fn: Fn, ...rest: Array<void>) => SpawnEffect0<null, Fn>)
    & (<T1, R, Fn: Fn1<T1, R>>(fn: Fn, t1: T1, ...rest: Array<void>) => SpawnEffect1<null, Fn, T1>)
    & (<T1, T2, R, Fn: Fn2<T1, T2, R>>(fn: Fn, t1: T1, t2: T2, ...rest: Array<void>) => SpawnEffect2<null, Fn, T1, T2>)
Severity: Major
Found in flow-typed/npm/redux-saga_v0.11.x.js and 3 other locations - About 4 days to fix
flow-typed/npm/redux-saga_v0.11.x.js on lines 348..357
flow-typed/npm/redux-saga_v0.11.x.js on lines 372..381
flow-typed/npm/redux-saga_v0.11.x.js on lines 396..405

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

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 ru.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
Open

export default {
    "": {
        "plural-forms": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);",
        "x-generator": "crowdin.com",
        "x-crowdin-project": "nexy-gen",
Severity: Major
Found in src/_constants/po/ru.js - About 3 days to fix

    File th.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    export default {
        "": {
            "plural-forms": "nplurals=1; plural=0;",
            "x-generator": "crowdin.com",
            "x-crowdin-project": "nexy-gen",
    Severity: Major
    Found in src/_constants/po/th.js - About 3 days to fix

      File de.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      export default {
          "": {
              "plural-forms": "nplurals=2; plural=(n != 1);",
              "x-generator": "crowdin.com",
              "x-crowdin-project": "nexy-gen",
      Severity: Major
      Found in src/_constants/po/de.js - About 3 days to fix

        File id.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        export default {
            "": {
                "plural-forms": "nplurals=1; plural=0;",
                "x-generator": "crowdin.com",
                "x-crowdin-project": "nexy-gen",
        Severity: Major
        Found in src/_constants/po/id.js - About 3 days to fix

          File zh_cn.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          export default {
              "": {
                  "plural-forms": "nplurals=1; plural=0;",
                  "x-generator": "crowdin.com",
                  "x-crowdin-project": "nexy-gen",
          Severity: Major
          Found in src/_constants/po/zh_cn.js - About 3 days to fix

            File es.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            export default {
                "": {
                    "plural-forms": "nplurals=2; plural=(n != 1);",
                    "x-generator": "crowdin.com",
                    "x-crowdin-project": "nexy-gen",
            Severity: Major
            Found in src/_constants/po/es.js - About 3 days to fix

              File ja.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              export default {
                  "": {
                      "project-id-version": "PACKAGE VERSION",
                      "pot-creation-date": "",
                      "po-revision-date": "2017-06-22 13:21+0000",
              Severity: Major
              Found in src/_constants/po/ja.js - About 3 days to fix

                File pt.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                export default {
                    "": {
                        "plural-forms": "nplurals=2; plural=(n != 1);",
                        "x-generator": "crowdin.com",
                        "x-crowdin-project": "nexy-gen",
                Severity: Major
                Found in src/_constants/po/pt.js - About 3 days to fix

                  File zh_tw.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  export default {
                      "": {
                          "plural-forms": "nplurals=1; plural=0;",
                          "x-generator": "crowdin.com",
                          "x-crowdin-project": "nexy-gen",
                  Severity: Major
                  Found in src/_constants/po/zh_tw.js - About 3 days to fix

                    File fr.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    export default {
                        "": {
                            "plural-forms": "nplurals=2; plural=(n > 1);",
                            "x-generator": "crowdin.com",
                            "x-crowdin-project": "nexy-gen",
                    Severity: Major
                    Found in src/_constants/po/fr.js - About 3 days to fix

                      File nl_BE.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      export default {
                          "": {
                              "project-id-version": "PACKAGE VERSION",
                              "report-msgid-bugs-to": "",
                              "pot-creation-date": "2017-07-04 18:26+0200",
                      Severity: Major
                      Found in src/_constants/po/nl_BE.js - About 3 days to fix

                        File vi.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        export default {
                            "": {
                                "plural-forms": "nplurals=1; plural=0;",
                                "x-generator": "crowdin.com",
                                "x-crowdin-project": "nexy-gen",
                        Severity: Major
                        Found in src/_constants/po/vi.js - About 3 days to fix

                          File en.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          export default {
                              "": {
                                  "project-id-version": "",
                                  "pot-creation-date": "",
                                  "po-revision-date": "2018-01-24 12:08+0000",
                          Severity: Major
                          Found in src/_constants/po/en.js - About 3 days to fix

                            File ach.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            export default {
                                "": {
                                    "plural-forms": "nplurals=2; plural=(n > 1);",
                                    "x-generator": "crowdin.com",
                                    "x-crowdin-project": "nexy-gen",
                            Severity: Major
                            Found in src/_constants/po/ach.js - About 3 days to fix

                              File it.js has 1235 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              export default {
                                  "": {
                                      "plural-forms": "nplurals=2; plural=(n != 1);",
                                      "x-generator": "crowdin.com",
                                      "x-crowdin-project": "nexy-gen",
                              Severity: Major
                              Found in src/_constants/po/it.js - About 3 days to fix
                                Severity
                                Category
                                Status
                                Source
                                Language