mbroadst/rethunk

View on GitHub

Showing 252 of 396 total issues

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

Term.prototype.setInsert = function(other) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'setInsert', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.getField = function(field) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, '(...)', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.includes = function(geometry) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'includes', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.prepend = function(value) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'prepend', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.polygonSub = function(geometry) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'polygonSub', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842

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

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 20 locations. Consider refactoring.
Open

Term.prototype.indexDrop = function(name) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'indexDrop', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.get = function(primaryKey) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'get', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.setUnion = function(other) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'setUnion', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.default = function(expression) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'default', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.intersects = function(geometry) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'intersects', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.bracket = function(field) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, '(...)', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.coerceTo = function(type) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'coerceTo', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.append = function(value) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'append', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.setDifference = function(other) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'setDifference', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.inTimezone = function(timezone) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'inTimezone', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.skip = function(value) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'skip', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.mod = function(b) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'mod', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1409..1421
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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 20 locations. Consider refactoring.
Open

Term.prototype.difference = function(other) {
  if (this._fastArity(arguments.length, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 1, 'difference', this);
Severity: Major
Found in lib/term.js and 19 other locations - About 7 hrs to fix
lib/term.js on lines 360..372
lib/term.js on lines 620..632
lib/term.js on lines 917..929
lib/term.js on lines 931..943
lib/term.js on lines 1381..1393
lib/term.js on lines 1395..1407
lib/term.js on lines 1423..1435
lib/term.js on lines 1437..1449
lib/term.js on lines 1451..1463
lib/term.js on lines 1465..1477
lib/term.js on lines 1479..1491
lib/term.js on lines 1493..1505
lib/term.js on lines 1731..1743
lib/term.js on lines 2033..2045
lib/term.js on lines 2424..2436
lib/term.js on lines 2568..2580
lib/term.js on lines 2816..2828
lib/term.js on lines 2830..2842
lib/term.js on lines 2890..2902

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

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

Term.prototype.indexWait = function() {
  var _len = arguments.length; var _args = new Array(_len);
  for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}

  var term = new Term(this._r);
Severity: Major
Found in lib/term.js and 1 other location - About 7 hrs to fix
lib/term.js on lines 374..387

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

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

Term.prototype.indexStatus = function() {
  var _len = arguments.length; var _args = new Array(_len);
  for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}

  var term = new Term(this._r);
Severity: Major
Found in lib/term.js and 1 other location - About 7 hrs to fix
lib/term.js on lines 389..402

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

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