XingFramework/xing-frontend-utils

View on GitHub

Showing 137 of 208 total issues

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

  $xngToast.error = function (message) {
    var type = arguments.length <= 1 || arguments[1] === undefined ? "error" : arguments[1];

    return this.show({
      parent: toastElement,
Severity: Major
Found in dist/xing-frontend-utils.js and 1 other location - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 3762..3775

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

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

    $rootScope.$on('$stateChangeError', function (event, toState, toParams, fromState, fromParams, error) {
      console.group();
      /*jshint -W075 */
      console.table({ event: event });
      console.table({ error: error });
Severity: Major
Found in dist/xing-frontend-utils.js and 1 other location - About 3 hrs to fix
src/xing-frontend-utils/ui-route-logger.js on lines 53..62

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

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

    $rootScope.$on('$stateChangeError', (event, toState, toParams, fromState, fromParams, error) => {
      console.group();
      /*jshint -W075 */
      console.table({event});
      console.table({error});
Severity: Major
Found in src/xing-frontend-utils/ui-route-logger.js and 1 other location - About 3 hrs to fix
dist/xing-frontend-utils.js on lines 4829..4838

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

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 Filter = (function (_NgNamedAnnotation8) {
      _inherits(Filter, _NgNamedAnnotation8);

      function Filter() {
        _classCallCheck(this, _Filter);
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 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 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

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

    function show(options) {
      if (stack.length) {
        service.hide();
      }

Severity: Major
Found in dist/xing-frontend-utils.js and 1 other location - About 2 hrs to fix
src/xing-frontend-utils/components/toast/interimElement.js on lines 90..100

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

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

    function show(options) {
      if (stack.length) {
        service.hide();
      }

Severity: Major
Found in src/xing-frontend-utils/components/toast/interimElement.js and 1 other location - About 2 hrs to fix
dist/xing-frontend-utils.js on lines 3247..3257

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

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

      }, {
        key: "annotationsFor",
        value: function annotationsFor(AnnotationClass) {
          var OriginalClass = AnnotationClass.originalClass || AnnotationClass;
          if (this.AnnotatedClass.annotations) {
Severity: Major
Found in dist/xing-frontend-utils.js and 1 other location - About 2 hrs to fix
dist/xing-frontend-utils.js on lines 891..903

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

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