frisb/fdboost

View on GitHub

Showing 55 of 55 total issues

Function get has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    'get': function(value) {
      switch (typeof value) {
        case 'undefined':
          return this.undefined;
        case 'string':
Severity: Minor
Found in lib/enhance/encoding/typecodes.js - About 1 hr to fix

    Function get has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          get: function() {
            var factory;
            factory = function(version) {
              if (typeof version === 'object') {
                return factory.use(version);
    Severity: Minor
    Found in lib/index.js - About 1 hr to fix

      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

      Avoid too many return statements within this function.
      Open

                  return this.array;
      Severity: Major
      Found in lib/enhance/encoding/typecodes.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return this.object;
        Severity: Major
        Found in lib/enhance/encoding/typecodes.js - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language