binary-com/binary-next-gen

View on GitHub

Showing 162 of 551 total issues

File nb_NO.js has 2080 lines of code (exceeds 250 allowed). Consider refactoring.
Open

export default {
    "": {
        "project-id-version": "PACKAGE VERSION",
        "report-msgid-bugs-to": "",
        "pot-creation-date": "2018-01-05 23:43+0200",
Severity: Major
Found in src/_constants/po/nb_NO.js - About 5 days to fix

    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

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

                                  export default {
                                      "": {
                                          "plural-forms": "nplurals=3; plural=(n==1 ? 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/pl.js - About 3 days to fix

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

                                      render() {
                                        const { progress, serverError, formData, statesList, hasError, errors } = this.state;
                                        const { residenceList, loginid, boot } = this.props;
                                        const language = (boot.language || 'en').toLowerCase();
                                        const linkToTermsAndConditions = `https://www.binary.com/${language}/terms-and-conditions.html`;
                                    Severity: Major
                                    Found in src/upgrade/UpgradeToMaltainvestCard.js - About 2 days to fix

                                      Function render has a Cognitive Complexity of 78 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                        render() {
                                          const { progress, serverError, formData, statesList, hasError, errors } = this.state;
                                          const { residenceList, loginid, boot } = this.props;
                                          const language = (boot.language || 'en').toLowerCase();
                                          const linkToTermsAndConditions = `https://www.binary.com/${language}/terms-and-conditions.html`;
                                      Severity: Minor
                                      Found in src/upgrade/UpgradeToMaltainvestCard.js - About 1 day to fix

                                      Cognitive Complexity

                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                      A method's cognitive complexity is based on a few simple rules:

                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                      • Code is considered more complex for each "break in the linear flow of the code"
                                      • Code is considered more complex when "flow breaking structures are nested"

                                      Further reading

                                      File MockContract.js has 647 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      import { nextXDay } from 'binary-utils';
                                      
                                      export const mockedContract = {
                                          asian: {
                                              ASIANU: {
                                      Severity: Major
                                      Found in src/_constants/MockContract.js - About 1 day to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language