Showing 237 of 445 total issues

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

function parseData_(headers, data, path, state, value, query, options, includeFunc) {
  var dataInserted = false;

  if (Array.isArray(value) && isObjectArray_(value)) {
    for (var i = 0; i < value.length; i++) {
Severity: Major
Found in GoogleAppsScript - Pay/ImportJSON.js and 2 other locations - About 2 days to fix
GoogleAppsScript - Associate/ImportJSON.js on lines 372..413
GoogleAppsScript - DeFi/ImportJSON.js on lines 372..413

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

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

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

function parseData_(headers, data, path, state, value, query, options, includeFunc) {
  var dataInserted = false;

  if (Array.isArray(value) && isObjectArray_(value)) {
    for (var i = 0; i < value.length; i++) {
Severity: Major
Found in GoogleAppsScript - DeFi/ImportJSON.js and 2 other locations - About 2 days to fix
GoogleAppsScript - Associate/ImportJSON.js on lines 372..413
GoogleAppsScript - Pay/ImportJSON.js on lines 372..413

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

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

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

function parseData_(headers, data, path, state, value, query, options, includeFunc) {
  var dataInserted = false;

  if (Array.isArray(value) && isObjectArray_(value)) {
    for (var i = 0; i < value.length; i++) {
Severity: Major
Found in GoogleAppsScript - Associate/ImportJSON.js and 2 other locations - About 2 days to fix
GoogleAppsScript - DeFi/ImportJSON.js on lines 372..413
GoogleAppsScript - Pay/ImportJSON.js on lines 372..413

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringDate(date, locale = "FR") {
  if (date && typeof date == "string") {
    return date.split("/").length == 3
      ? locale == "FR"
        ? date.replace(/(^|\/)0+/g, "$1").split("/")[0] +
Severity: Major
Found in GoogleAppsScript - TradFi/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 197..222
GoogleAppsScript - Associate/Common.js on lines 197..222
GoogleAppsScript - DeFi/Common.js on lines 197..222
GoogleAppsScript - ID/Common.js on lines 197..222
GoogleAppsScript - Pay/Common.js on lines 197..222
GoogleAppsScript - WebApp/Common.js on lines 197..222

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringDate(date, locale = "FR") {
  if (date && typeof date == "string") {
    return date.split("/").length == 3
      ? locale == "FR"
        ? date.replace(/(^|\/)0+/g, "$1").split("/")[0] +
Severity: Major
Found in GoogleAppsScript - Pay/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 197..222
GoogleAppsScript - Associate/Common.js on lines 197..222
GoogleAppsScript - DeFi/Common.js on lines 197..222
GoogleAppsScript - ID/Common.js on lines 197..222
GoogleAppsScript - TradFi/Common.js on lines 197..222
GoogleAppsScript - WebApp/Common.js on lines 197..222

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringDate(date, locale = "FR") {
  if (date && typeof date == "string") {
    return date.split("/").length == 3
      ? locale == "FR"
        ? date.replace(/(^|\/)0+/g, "$1").split("/")[0] +
Severity: Major
Found in Common/Common.js and 6 other locations - About 1 day to fix
GoogleAppsScript - Associate/Common.js on lines 197..222
GoogleAppsScript - DeFi/Common.js on lines 197..222
GoogleAppsScript - ID/Common.js on lines 197..222
GoogleAppsScript - Pay/Common.js on lines 197..222
GoogleAppsScript - TradFi/Common.js on lines 197..222
GoogleAppsScript - WebApp/Common.js on lines 197..222

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringDate(date, locale = "FR") {
  if (date && typeof date == "string") {
    return date.split("/").length == 3
      ? locale == "FR"
        ? date.replace(/(^|\/)0+/g, "$1").split("/")[0] +
Severity: Major
Found in GoogleAppsScript - WebApp/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 197..222
GoogleAppsScript - Associate/Common.js on lines 197..222
GoogleAppsScript - DeFi/Common.js on lines 197..222
GoogleAppsScript - ID/Common.js on lines 197..222
GoogleAppsScript - Pay/Common.js on lines 197..222
GoogleAppsScript - TradFi/Common.js on lines 197..222

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringDate(date, locale = "FR") {
  if (date && typeof date == "string") {
    return date.split("/").length == 3
      ? locale == "FR"
        ? date.replace(/(^|\/)0+/g, "$1").split("/")[0] +
Severity: Major
Found in GoogleAppsScript - DeFi/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 197..222
GoogleAppsScript - Associate/Common.js on lines 197..222
GoogleAppsScript - ID/Common.js on lines 197..222
GoogleAppsScript - Pay/Common.js on lines 197..222
GoogleAppsScript - TradFi/Common.js on lines 197..222
GoogleAppsScript - WebApp/Common.js on lines 197..222

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringDate(date, locale = "FR") {
  if (date && typeof date == "string") {
    return date.split("/").length == 3
      ? locale == "FR"
        ? date.replace(/(^|\/)0+/g, "$1").split("/")[0] +
Severity: Major
Found in GoogleAppsScript - Associate/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 197..222
GoogleAppsScript - DeFi/Common.js on lines 197..222
GoogleAppsScript - ID/Common.js on lines 197..222
GoogleAppsScript - Pay/Common.js on lines 197..222
GoogleAppsScript - TradFi/Common.js on lines 197..222
GoogleAppsScript - WebApp/Common.js on lines 197..222

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringDate(date, locale = "FR") {
  if (date && typeof date == "string") {
    return date.split("/").length == 3
      ? locale == "FR"
        ? date.replace(/(^|\/)0+/g, "$1").split("/")[0] +
Severity: Major
Found in GoogleAppsScript - ID/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 197..222
GoogleAppsScript - Associate/Common.js on lines 197..222
GoogleAppsScript - DeFi/Common.js on lines 197..222
GoogleAppsScript - Pay/Common.js on lines 197..222
GoogleAppsScript - TradFi/Common.js on lines 197..222
GoogleAppsScript - WebApp/Common.js on lines 197..222

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

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

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

function defaultTransform_(data, row, column, options) {
  if (data[row][column] == null) {
    if (row < 2 || hasOption_(options, "noInherit")) {
      data[row][column] = "";
    } else {
Severity: Major
Found in GoogleAppsScript - Pay/ImportJSON.js and 2 other locations - About 1 day to fix
GoogleAppsScript - Associate/ImportJSON.js on lines 501..525
GoogleAppsScript - DeFi/ImportJSON.js on lines 501..525

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

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

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

function defaultTransform_(data, row, column, options) {
  if (data[row][column] == null) {
    if (row < 2 || hasOption_(options, "noInherit")) {
      data[row][column] = "";
    } else {
Severity: Major
Found in GoogleAppsScript - Associate/ImportJSON.js and 2 other locations - About 1 day to fix
GoogleAppsScript - DeFi/ImportJSON.js on lines 501..525
GoogleAppsScript - Pay/ImportJSON.js on lines 501..525

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

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

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

function defaultTransform_(data, row, column, options) {
  if (data[row][column] == null) {
    if (row < 2 || hasOption_(options, "noInherit")) {
      data[row][column] = "";
    } else {
Severity: Major
Found in GoogleAppsScript - DeFi/ImportJSON.js and 2 other locations - About 1 day to fix
GoogleAppsScript - Associate/ImportJSON.js on lines 501..525
GoogleAppsScript - Pay/ImportJSON.js on lines 501..525

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringTime(date, locale = "FR") {
  if (typeof date == "string") {
    return _toStringDate(date, locale);
  } else if (typeof date == "object") {
    const day = ("0" + date.getDate()).slice(-2);
Severity: Major
Found in Common/Common.js and 6 other locations - About 1 day to fix
GoogleAppsScript - Associate/Common.js on lines 224..241
GoogleAppsScript - DeFi/Common.js on lines 224..241
GoogleAppsScript - ID/Common.js on lines 224..241
GoogleAppsScript - Pay/Common.js on lines 224..241
GoogleAppsScript - TradFi/Common.js on lines 224..241
GoogleAppsScript - WebApp/Common.js on lines 224..241

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringTime(date, locale = "FR") {
  if (typeof date == "string") {
    return _toStringDate(date, locale);
  } else if (typeof date == "object") {
    const day = ("0" + date.getDate()).slice(-2);
Severity: Major
Found in GoogleAppsScript - Pay/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 224..241
GoogleAppsScript - Associate/Common.js on lines 224..241
GoogleAppsScript - DeFi/Common.js on lines 224..241
GoogleAppsScript - ID/Common.js on lines 224..241
GoogleAppsScript - TradFi/Common.js on lines 224..241
GoogleAppsScript - WebApp/Common.js on lines 224..241

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringTime(date, locale = "FR") {
  if (typeof date == "string") {
    return _toStringDate(date, locale);
  } else if (typeof date == "object") {
    const day = ("0" + date.getDate()).slice(-2);
Severity: Major
Found in GoogleAppsScript - WebApp/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 224..241
GoogleAppsScript - Associate/Common.js on lines 224..241
GoogleAppsScript - DeFi/Common.js on lines 224..241
GoogleAppsScript - ID/Common.js on lines 224..241
GoogleAppsScript - Pay/Common.js on lines 224..241
GoogleAppsScript - TradFi/Common.js on lines 224..241

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringTime(date, locale = "FR") {
  if (typeof date == "string") {
    return _toStringDate(date, locale);
  } else if (typeof date == "object") {
    const day = ("0" + date.getDate()).slice(-2);
Severity: Major
Found in GoogleAppsScript - TradFi/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 224..241
GoogleAppsScript - Associate/Common.js on lines 224..241
GoogleAppsScript - DeFi/Common.js on lines 224..241
GoogleAppsScript - ID/Common.js on lines 224..241
GoogleAppsScript - Pay/Common.js on lines 224..241
GoogleAppsScript - WebApp/Common.js on lines 224..241

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringTime(date, locale = "FR") {
  if (typeof date == "string") {
    return _toStringDate(date, locale);
  } else if (typeof date == "object") {
    const day = ("0" + date.getDate()).slice(-2);
Severity: Major
Found in GoogleAppsScript - DeFi/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 224..241
GoogleAppsScript - Associate/Common.js on lines 224..241
GoogleAppsScript - ID/Common.js on lines 224..241
GoogleAppsScript - Pay/Common.js on lines 224..241
GoogleAppsScript - TradFi/Common.js on lines 224..241
GoogleAppsScript - WebApp/Common.js on lines 224..241

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringTime(date, locale = "FR") {
  if (typeof date == "string") {
    return _toStringDate(date, locale);
  } else if (typeof date == "object") {
    const day = ("0" + date.getDate()).slice(-2);
Severity: Major
Found in GoogleAppsScript - Associate/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 224..241
GoogleAppsScript - DeFi/Common.js on lines 224..241
GoogleAppsScript - ID/Common.js on lines 224..241
GoogleAppsScript - Pay/Common.js on lines 224..241
GoogleAppsScript - TradFi/Common.js on lines 224..241
GoogleAppsScript - WebApp/Common.js on lines 224..241

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

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

Identical blocks of code found in 7 locations. Consider refactoring.
Open

function _toStringTime(date, locale = "FR") {
  if (typeof date == "string") {
    return _toStringDate(date, locale);
  } else if (typeof date == "object") {
    const day = ("0" + date.getDate()).slice(-2);
Severity: Major
Found in GoogleAppsScript - ID/Common.js and 6 other locations - About 1 day to fix
Common/Common.js on lines 224..241
GoogleAppsScript - Associate/Common.js on lines 224..241
GoogleAppsScript - DeFi/Common.js on lines 224..241
GoogleAppsScript - Pay/Common.js on lines 224..241
GoogleAppsScript - TradFi/Common.js on lines 224..241
GoogleAppsScript - WebApp/Common.js on lines 224..241

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

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