XingFramework/xing-frontend-utils

View on GitHub

Showing 208 of 208 total issues

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

    var Provider = (function (_NgNamedAnnotation5) {
      _inherits(Provider, _NgNamedAnnotation5);

      function Provider() {
        _classCallCheck(this, _Provider);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var AsModule = (function (_Module) {
      _inherits(AsModule, _Module);

      function AsModule() {
        _classCallCheck(this, _AsModule);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var Constant = (function (_NgNamedAnnotation7) {
      _inherits(Constant, _NgNamedAnnotation7);

      function Constant() {
        _classCallCheck(this, _Constant);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var Value = (function (_NgNamedAnnotation6) {
      _inherits(Value, _NgNamedAnnotation6);

      function Value() {
        _classCallCheck(this, _Value);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var Template = (function (_ViewBase) {
      _inherits(Template, _ViewBase);

      function Template() {
        _classCallCheck(this, _Template);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var Config = (function (_NgAnnotation) {
      _inherits(Config, _NgAnnotation);

      function Config() {
        _classCallCheck(this, _Config);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var View = (function (_ViewBase2) {
      _inherits(View, _ViewBase2);

      function View() {
        _classCallCheck(this, _View);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597

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

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

    var Run = (function (_NgAnnotation2) {
      _inherits(Run, _NgAnnotation2);

      function Run() {
        _classCallCheck(this, _Run);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var Directive = (function (_NgNamedAnnotation2) {
      _inherits(Directive, _NgNamedAnnotation2);

      function Directive() {
        _classCallCheck(this, _Directive);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var Factory = (function (_NgNamedAnnotation4) {
      _inherits(Factory, _NgNamedAnnotation4);

      function Factory() {
        _classCallCheck(this, _Factory);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var Service = (function (_NgNamedAnnotation3) {
      _inherits(Service, _NgNamedAnnotation3);

      function Service() {
        _classCallCheck(this, _Service);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var Animation = (function (_NgNamedAnnotation9) {
      _inherits(Animation, _NgNamedAnnotation9);

      function Animation() {
        _classCallCheck(this, _Animation);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 625..637
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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

    var Controller = (function (_NgNamedAnnotation) {
      _inherits(Controller, _NgNamedAnnotation);

      function Controller() {
        _classCallCheck(this, _Controller);
Severity: Major
Found in dist/xing-frontend-utils.js and 13 other locations - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 593..605
dist/xing-frontend-utils.js on lines 609..621
dist/xing-frontend-utils.js on lines 641..653
dist/xing-frontend-utils.js on lines 657..669
dist/xing-frontend-utils.js on lines 673..685
dist/xing-frontend-utils.js on lines 689..701
dist/xing-frontend-utils.js on lines 705..717
dist/xing-frontend-utils.js on lines 721..733
dist/xing-frontend-utils.js on lines 737..749
dist/xing-frontend-utils.js on lines 753..765
dist/xing-frontend-utils.js on lines 783..795
dist/xing-frontend-utils.js on lines 1585..1597
dist/xing-frontend-utils.js on lines 1601..1613

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

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 InterimElementFactory has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function InterimElementFactory($q, $rootScope, $timeout, $rootElement, $animate, $xngCompiler) {

  return function createInterimElementService(defaults) {

    /**
Severity: Major
Found in dist/xing-frontend-utils.js - About 3 hrs to fix

    Function InterimElementFactory has 82 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function InterimElementFactory($q, $rootScope, $timeout, $rootElement, $animate, $xngCompiler) {
    
      return function createInterimElementService(defaults) {
    
        /**
    Severity: Major
    Found in src/xing-frontend-utils/components/toast/interimElement.js - About 3 hrs to fix

      Function createInterimElementService has 81 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        return function createInterimElementService(defaults) {
      
          /**
           * @ngdoc service
           * @name $$interimElement.$service
      Severity: Major
      Found in dist/xing-frontend-utils.js - About 3 hrs to fix

        Function createInterimElementService has 80 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          return function createInterimElementService(defaults) {
        
            /**
             * @ngdoc service
             * @name $$interimElement.$service
        Severity: Major
        Found in src/xing-frontend-utils/components/toast/interimElement.js - About 3 hrs to fix

          Function 22 has 79 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{"a1atscript":1}],22:[function(require,module,exports){
          "use strict";
          
          Object.defineProperty(exports, "__esModule", {
            value: true
          Severity: Major
          Found in dist/xing-frontend-utils.js - About 3 hrs to fix

            Function 19 has 78 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{}],19:[function(require,module,exports){
            "use strict";
            
            (function () {
            
            
            Severity: Major
            Found in dist/xing-frontend-utils.js - About 3 hrs to fix

              Function xngToastService has 78 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function xngToastService($timeout, $$interimElement, $animate, $xngSwipe, Inflector) {
              
                var factoryDef = {
                  onShow: onShow,
                  onRemove: onRemove,
              Severity: Major
              Found in dist/xing-frontend-utils.js - About 3 hrs to fix
                Severity
                Category
                Status
                Source
                Language