mbroadst/rethunk

View on GitHub

Showing 396 of 396 total issues

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

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

Term.prototype.ungroup = function() {
  if (this._fastArity(arguments.length, 0) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 0, 'ungroup', this);
Severity: Major
Found in lib/term.js and 1 other location - About 7 hrs to fix
lib/term.js on lines 559..571

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

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.sync = function() {
  if (this._fastArity(arguments.length, 0) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arity(_args, 0, 'sync', this);
Severity: Major
Found in lib/term.js and 1 other location - About 7 hrs to fix
lib/term.js on lines 1174..1186

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

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.floor = function() {
  if (this._fastArityRange(arguments.length, 0, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arityRange(_args, 0, 1, 'floor', this);
Severity: Major
Found in lib/term.js and 1 other location - About 7 hrs to fix
lib/term.js on lines 1931..1943

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

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.ceil = function() {
  if (this._fastArityRange(arguments.length, 0, 1) === false) {
    var _len = arguments.length; var _args = new Array(_len);
    for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
    this._arityRange(_args, 0, 1, 'ceil', this);
Severity: Major
Found in lib/term.js and 1 other location - About 7 hrs to fix
lib/term.js on lines 1917..1929

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

File pool_master.js has 462 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"use strict";
var util = require('util');
var events = require('events');
var Promise = require('bluebird');
var Dequeue = require('double-ended-queue');
Severity: Minor
Found in lib/pool_master.js - About 7 hrs to fix

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

    Term.prototype.keys = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'keys', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.typeOf = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'typeOf', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.fill = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'fill', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.minutes = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'minutes', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.seconds = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'seconds', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.isEmpty = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'isEmpty', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.timeOfDay = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'timeOfDay', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.timezone = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'timezone', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.info = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'info', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.toISO8601 = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'toISO8601', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 2952..2964
    lib/term.js on lines 3015..3025

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

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

    Term.prototype.status = function() {
      if (this._fastArity(arguments.length, 0) === false) {
        var _len = arguments.length; var _args = new Array(_len);
        for (var _i = 0; _i < _len; _i++) {_args[_i] = arguments[_i];}
        this._arity(_args, 0, 'status', this);
    Severity: Major
    Found in lib/term.js and 25 other locations - About 7 hrs to fix
    lib/term.js on lines 312..324
    lib/term.js on lines 1007..1019
    lib/term.js on lines 1584..1596
    lib/term.js on lines 1598..1609
    lib/term.js on lines 1867..1879
    lib/term.js on lines 2047..2059
    lib/term.js on lines 2082..2094
    lib/term.js on lines 2096..2108
    lib/term.js on lines 2110..2122
    lib/term.js on lines 2124..2136
    lib/term.js on lines 2138..2150
    lib/term.js on lines 2152..2164
    lib/term.js on lines 2166..2178
    lib/term.js on lines 2180..2192
    lib/term.js on lines 2194..2206
    lib/term.js on lines 2208..2220
    lib/term.js on lines 2222..2234
    lib/term.js on lines 2236..2248
    lib/term.js on lines 2582..2594
    lib/term.js on lines 2596..2608
    lib/term.js on lines 2723..2734
    lib/term.js on lines 2751..2763
    lib/term.js on lines 2923..2935
    lib/term.js on lines 2938..2950
    lib/term.js on lines 3015..3025

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

    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