Showing 162 of 551 total issues
File nb_NO.js
has 2080 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"project-id-version": "PACKAGE VERSION",
"report-msgid-bugs-to": "",
"pot-creation-date": "2018-01-05 23:43+0200",
File ru.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
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",
File th.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=1; plural=0;",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File de.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File id.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=1; plural=0;",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File zh_cn.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=1; plural=0;",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File es.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File ja.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"project-id-version": "PACKAGE VERSION",
"pot-creation-date": "",
"po-revision-date": "2017-06-22 13:21+0000",
File pt.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File zh_tw.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=1; plural=0;",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File fr.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=2; plural=(n > 1);",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File nl_BE.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"project-id-version": "PACKAGE VERSION",
"report-msgid-bugs-to": "",
"pot-creation-date": "2017-07-04 18:26+0200",
File vi.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=1; plural=0;",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File en.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"project-id-version": "",
"pot-creation-date": "",
"po-revision-date": "2018-01-24 12:08+0000",
File ach.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=2; plural=(n > 1);",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File it.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export default {
"": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"x-generator": "crowdin.com",
"x-crowdin-project": "nexy-gen",
File pl.js
has 1235 lines of code (exceeds 250 allowed). Consider refactoring. Open
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",
Function render
has 461 lines of code (exceeds 25 allowed). Consider refactoring. Open
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`;
Function render
has a Cognitive Complexity of 78 (exceeds 5 allowed). Consider refactoring. Open
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`;
- Read upRead up
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
Open
import { nextXDay } from 'binary-utils';
export const mockedContract = {
asian: {
ASIANU: {