frisb/fdboost

View on GitHub

Showing 37 of 55 total issues

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

    AbstractAdapter.prototype.writeUInt8 = function(value) {
      this.verifyData();
      this.data.writeUInt8(value, this.pos);
      this.pos += 1;
    };
Severity: Major
Found in lib/enhance/encoding/adapters/abstract.js and 4 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 110..114
lib/enhance/encoding/adapters/abstract.js on lines 124..128
lib/enhance/encoding/adapters/abstract.js on lines 138..142
lib/enhance/encoding/adapters/abstract.js on lines 166..170

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

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

    AbstractAdapter.prototype.writeDoubleBE = function(value) {
      this.verifyData();
      this.data.writeDoubleBE(value, this.pos);
      this.pos += 8;
    };
Severity: Major
Found in lib/enhance/encoding/adapters/abstract.js and 4 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 124..128
lib/enhance/encoding/adapters/abstract.js on lines 138..142
lib/enhance/encoding/adapters/abstract.js on lines 152..156
lib/enhance/encoding/adapters/abstract.js on lines 166..170

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

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

    AbstractAdapter.prototype.writeInt32BE = function(value) {
      this.verifyData();
      this.data.writeInt32BE(value, this.pos);
      this.pos += 4;
    };
Severity: Major
Found in lib/enhance/encoding/adapters/abstract.js and 4 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 110..114
lib/enhance/encoding/adapters/abstract.js on lines 138..142
lib/enhance/encoding/adapters/abstract.js on lines 152..156
lib/enhance/encoding/adapters/abstract.js on lines 166..170

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

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

    AbstractAdapter.prototype.writeInt32LE = function(value) {
      this.verifyData();
      this.data.writeInt32LE(value, this.pos);
      this.pos += 4;
    };
Severity: Major
Found in lib/enhance/encoding/adapters/abstract.js and 4 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 110..114
lib/enhance/encoding/adapters/abstract.js on lines 124..128
lib/enhance/encoding/adapters/abstract.js on lines 152..156
lib/enhance/encoding/adapters/abstract.js on lines 166..170

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

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

        for (_i = 0, _len = _ref.length; _i < _len; _i++) {
          item = _ref[_i];
          _results.push(encoding.decode(item));
        }
Severity: Major
Found in lib/enhance/encoding/adapters/array.js and 1 other location - About 1 hr to fix
lib/enhance/encoding/adapters/array.js on lines 39..42

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

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

          for (_i = 0, _len = value.length; _i < _len; _i++) {
            item = value[_i];
            _results.push(encoding.encode(item));
          }
Severity: Major
Found in lib/enhance/encoding/adapters/array.js and 1 other location - About 1 hr to fix
lib/enhance/encoding/adapters/array.js on lines 55..58

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

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

  String = (function(_super) {
    __extends(String, _super);

    function String() {
      return String.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/string.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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

  Array = (function(_super) {
    __extends(Array, _super);

    function Array() {
      return Array.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/array.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/string.js on lines 10..19
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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

  Undefined = (function(_super) {
    __extends(Undefined, _super);

    function Undefined() {
      return Undefined.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/undefined.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/string.js on lines 10..19

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

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

  Function = (function(_super) {
    __extends(Function, _super);

    function Function() {
      return Function.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/function.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/string.js on lines 10..19
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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

  Integer = (function(_super) {
    __extends(Integer, _super);

    function Integer() {
      return Integer.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/integer.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/string.js on lines 10..19
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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

  Double = (function(_super) {
    __extends(Double, _super);

    function Double() {
      return Double.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/double.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/string.js on lines 10..19
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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

  DateTime = (function(_super) {
    __extends(DateTime, _super);

    function DateTime() {
      return DateTime.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/datetime.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/string.js on lines 10..19
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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

  Null = (function(_super) {
    __extends(Null, _super);

    function Null() {
      return Null.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/null.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/string.js on lines 10..19
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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

  EncodedString = (function(_super) {
    __extends(EncodedString, _super);

    function EncodedString() {
      return EncodedString.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/abstract.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/string.js on lines 10..19
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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

  Boolean = (function(_super) {
    __extends(Boolean, _super);

    function Boolean() {
      return Boolean.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/boolean.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/object.js on lines 12..21
lib/enhance/encoding/adapters/string.js on lines 10..19
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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

  Object = (function(_super) {
    __extends(Object, _super);

    function Object() {
      return Object.__super__.constructor.apply(this, arguments);
Severity: Major
Found in lib/enhance/encoding/adapters/object.js and 10 other locations - About 1 hr to fix
lib/enhance/encoding/adapters/abstract.js on lines 6..15
lib/enhance/encoding/adapters/array.js on lines 10..19
lib/enhance/encoding/adapters/boolean.js on lines 10..19
lib/enhance/encoding/adapters/datetime.js on lines 12..21
lib/enhance/encoding/adapters/double.js on lines 10..19
lib/enhance/encoding/adapters/function.js on lines 10..19
lib/enhance/encoding/adapters/integer.js on lines 33..42
lib/enhance/encoding/adapters/null.js on lines 10..19
lib/enhance/encoding/adapters/string.js on lines 10..19
lib/enhance/encoding/adapters/undefined.js on lines 10..19

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

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