XingFramework/Relayer

View on GitHub

Showing 591 of 591 total issues

Function trace has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      trace: function(expr, val, path) {
         function addRet(elems) { ret = ret.concat(elems); }
         // no expr to follow? return path and value as the result of this trace branch
         if (!expr.length){ return [{path: path, value: val}]; }

Severity: Minor
Found in dist/relayer/jsonpath.js - About 1 hr to fix

    Function trace has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          trace: function(expr, val, path) {
             function addRet(elems) { ret = ret.concat(elems); }
             // no expr to follow? return path and value as the result of this trace branch
             if (!expr.length){ return [{path: path, value: val}]; }
    
    
    Severity: Minor
    Found in src/relayer/jsonpath.js - About 1 hr to fix

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

        ($traceurRuntime.createClass)(AnimationInjector, {
          get annotationClass() {
            return Animation;
          },
          instantiateOne: function(module, animation, metadata) {
      Severity: Major
      Found in dist/relayer.es5.js and 7 other locations - About 1 hr to fix
      dist/relayer.es5.js on lines 2506..2514
      dist/relayer.es5.js on lines 2520..2528
      dist/relayer.es5.js on lines 2534..2542
      dist/relayer.es5.js on lines 2548..2556
      dist/relayer.es5.js on lines 2562..2570
      dist/relayer.es5.js on lines 2576..2584
      dist/relayer.es5.js on lines 2604..2612

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

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

        ($traceurRuntime.createClass)(FilterInjector, {
          get annotationClass() {
            return Filter;
          },
          instantiateOne: function(module, filter, metadata) {
      Severity: Major
      Found in dist/relayer.es5.js and 7 other locations - About 1 hr to fix
      dist/relayer.es5.js on lines 2506..2514
      dist/relayer.es5.js on lines 2520..2528
      dist/relayer.es5.js on lines 2534..2542
      dist/relayer.es5.js on lines 2548..2556
      dist/relayer.es5.js on lines 2562..2570
      dist/relayer.es5.js on lines 2576..2584
      dist/relayer.es5.js on lines 2590..2598

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

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

        ($traceurRuntime.createClass)(ConstantInjector, {
          get annotationClass() {
            return Constant;
          },
          instantiateOne: function(module, constant, metadata) {
      Severity: Major
      Found in dist/relayer.es5.js and 7 other locations - About 1 hr to fix
      dist/relayer.es5.js on lines 2506..2514
      dist/relayer.es5.js on lines 2520..2528
      dist/relayer.es5.js on lines 2534..2542
      dist/relayer.es5.js on lines 2548..2556
      dist/relayer.es5.js on lines 2562..2570
      dist/relayer.es5.js on lines 2590..2598
      dist/relayer.es5.js on lines 2604..2612

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

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

        ($traceurRuntime.createClass)(ServiceInjector, {
          get annotationClass() {
            return Service;
          },
          instantiateOne: function(module, service, metadata) {
      Severity: Major
      Found in dist/relayer.es5.js and 7 other locations - About 1 hr to fix
      dist/relayer.es5.js on lines 2506..2514
      dist/relayer.es5.js on lines 2534..2542
      dist/relayer.es5.js on lines 2548..2556
      dist/relayer.es5.js on lines 2562..2570
      dist/relayer.es5.js on lines 2576..2584
      dist/relayer.es5.js on lines 2590..2598
      dist/relayer.es5.js on lines 2604..2612

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

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

        ($traceurRuntime.createClass)(ProviderInjector, {
          get annotationClass() {
            return Provider;
          },
          instantiateOne: function(module, provider, metadata) {
      Severity: Major
      Found in dist/relayer.es5.js and 7 other locations - About 1 hr to fix
      dist/relayer.es5.js on lines 2506..2514
      dist/relayer.es5.js on lines 2520..2528
      dist/relayer.es5.js on lines 2534..2542
      dist/relayer.es5.js on lines 2562..2570
      dist/relayer.es5.js on lines 2576..2584
      dist/relayer.es5.js on lines 2590..2598
      dist/relayer.es5.js on lines 2604..2612

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

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

        ($traceurRuntime.createClass)(FactoryInjector, {
          get annotationClass() {
            return Factory;
          },
          instantiateOne: function(module, factory, metadata) {
      Severity: Major
      Found in dist/relayer.es5.js and 7 other locations - About 1 hr to fix
      dist/relayer.es5.js on lines 2506..2514
      dist/relayer.es5.js on lines 2520..2528
      dist/relayer.es5.js on lines 2548..2556
      dist/relayer.es5.js on lines 2562..2570
      dist/relayer.es5.js on lines 2576..2584
      dist/relayer.es5.js on lines 2590..2598
      dist/relayer.es5.js on lines 2604..2612

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

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

        ($traceurRuntime.createClass)(DirectiveInjector, {
          get annotationClass() {
            return Directive;
          },
          instantiateOne: function(module, directive, metadata) {
      Severity: Major
      Found in dist/relayer.es5.js and 7 other locations - About 1 hr to fix
      dist/relayer.es5.js on lines 2520..2528
      dist/relayer.es5.js on lines 2534..2542
      dist/relayer.es5.js on lines 2548..2556
      dist/relayer.es5.js on lines 2562..2570
      dist/relayer.es5.js on lines 2576..2584
      dist/relayer.es5.js on lines 2590..2598
      dist/relayer.es5.js on lines 2604..2612

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

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

        ($traceurRuntime.createClass)(ValueInjector, {
          get annotationClass() {
            return Value;
          },
          instantiateOne: function(module, value, metadata) {
      Severity: Major
      Found in dist/relayer.es5.js and 7 other locations - About 1 hr to fix
      dist/relayer.es5.js on lines 2506..2514
      dist/relayer.es5.js on lines 2520..2528
      dist/relayer.es5.js on lines 2534..2542
      dist/relayer.es5.js on lines 2548..2556
      dist/relayer.es5.js on lines 2576..2584
      dist/relayer.es5.js on lines 2590..2598
      dist/relayer.es5.js on lines 2604..2612

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

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

      var ListResource = (function (_Resource) {
        function ListResource() {
          _classCallCheck(this, ListResource);
      
          if (_Resource != null) {
      Severity: Major
      Found in dist/cjs/relayer/ListResource.js and 2 other locations - About 1 hr to fix
      dist/cjs/relayer/relationshipDescriptions/ManyRelationshipDescription.js on lines 47..59
      dist/cjs/relayer/relationshipDescriptions/MapRelationshipDescription.js on lines 47..59

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

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

      var MapRelationshipDescription = (function (_MultipleRelationshipDescription) {
        function MapRelationshipDescription() {
          _classCallCheck(this, MapRelationshipDescription);
      
          if (_MultipleRelationshipDescription != null) {
      dist/cjs/relayer/ListResource.js on lines 17..29
      dist/cjs/relayer/relationshipDescriptions/ManyRelationshipDescription.js on lines 47..59

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

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

      var ManyRelationshipDescription = (function (_MultipleRelationshipDescription) {
        function ManyRelationshipDescription() {
          _classCallCheck(this, ManyRelationshipDescription);
      
          if (_MultipleRelationshipDescription != null) {
      dist/cjs/relayer/ListResource.js on lines 17..29
      dist/cjs/relayer/relationshipDescriptions/MapRelationshipDescription.js on lines 47..59

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

      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

      Function SingleRelationshipDescription has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var SingleRelationshipDescription = (function (_RelationshipDescription) {
        function SingleRelationshipDescription(relationshipInitializerFactory, resourceMapperFactory, resourceSerializerFactory, inflector, primaryResourceTransformerFactory, embeddedRelationshipTransformerFactory, resolvedEndpointFactory, loadedDataEndpointFactory, templatedUrlFactory, name, ResourceClass, initialValues) {
          _classCallCheck(this, SingleRelationshipDescription);
      
          _get(Object.getPrototypeOf(SingleRelationshipDescription.prototype), "constructor", this).call(this, relationshipInitializerFactory, resourceMapperFactory, resourceSerializerFactory, inflector, name, ResourceClass, initialValues);

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

                  } else {
                    if (this.relationships[name] instanceof _TemplatedUrlJs.TemplatedUrl) {
                      throw "Error: non-async relationships must be embedded";
                    } else {
                      if (uriParams) {
        Severity: Major
        Found in dist/cjs/relayer/decorators/RelatedResourceDecorator.js and 1 other location - About 1 hr to fix
        dist/cjs/relayer/decorators/RelatedResourceDecorator.js on lines 102..112

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

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

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

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

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

        Refactorings

        Further Reading

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

                this._errorFn = function (uriParams) {
                  if (this.relationships[name] instanceof _TemplatedUrlJs.TemplatedUrl) {
                    throw "Error: non-async relationships must be embedded";
                  } else {
                    if (uriParams) {
        Severity: Major
        Found in dist/cjs/relayer/decorators/RelatedResourceDecorator.js and 1 other location - About 1 hr to fix
        dist/cjs/relayer/decorators/RelatedResourceDecorator.js on lines 79..89

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

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

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

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

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

        Refactorings

        Further Reading

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

        class Injectable {
          constructor() {
        
          }
        
        
        Severity: Major
        Found in src/relayer/injector.js and 1 other location - About 1 hr to fix
        dist/relayer/injector.js on lines 45..57

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

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

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

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

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

        Refactorings

        Further Reading

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

        class FactoryInjectable extends Injectable {
        
          constructor(Target) {
            super();
            this.Target = Target;
        Severity: Major
        Found in dist/relayer/injector.js and 1 other location - About 1 hr to fix
        src/relayer/injector.js on lines 71..81

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

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

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

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

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

        Refactorings

        Further Reading

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

        class FactoryInjectable extends Injectable {
        
          constructor(Target) {
            super();
            this.Target = Target;
        Severity: Major
        Found in src/relayer/injector.js and 1 other location - About 1 hr to fix
        dist/relayer/injector.js on lines 71..81

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

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

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

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

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

        Refactorings

        Further Reading

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

        class Injectable {
          constructor() {
        
          }
        
        
        Severity: Major
        Found in dist/relayer/injector.js and 1 other location - About 1 hr to fix
        src/relayer/injector.js on lines 45..57

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

        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