kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

        $scope.processError = function (data, status) {
            $scope.hasError = true;
            $scope.status = status;
            $scope.status_data = JSON.stringify(data);
        };
samples/adminpanel/app/lib/cosmos/js/controllers/AppStudioCtrl.js on lines 37..41
samples/adminpanel/app/lib/cosmos/js/controllers/FileManagerCtrl.js on lines 36..40
samples/adminpanel/app/lib/cosmos/js/controllers/FormDesignCtrl.js on lines 228..232
samples/adminpanel/app/lib/cosmos/js/controllers/ListCtrl.js on lines 15..19
samples/adminpanel/app/lib/cosmos/js/controllers/ListDetailCtrl.js on lines 16..20
samples/adminpanel/app/lib/cosmos/js/controllers/PageDesignCtrl.js on lines 172..176
samples/adminpanel/app/lib/cosmos/js/controllers/RolesCtrl.js on lines 13..17
samples/adminpanel/app/lib/cosmos/js/controllers/TerminalCtrl.js on lines 31..35
samples/adminpanel/app/lib/cosmos/js/controllers/UsersCtrl.js on lines 14..18
samples/adminpanel/app/lib/cosmos/js/controllers/controllers.js on lines 30..34

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

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

        $scope.processError = function (data, status) {
            $scope.hasError = true;
            $scope.status = status;
            $scope.status_data = JSON.stringify(data);
        };
samples/adminpanel/app/lib/cosmos/js/controllers/FileManagerCtrl.js on lines 36..40
samples/adminpanel/app/lib/cosmos/js/controllers/FileUploadCtrl.js on lines 20..24
samples/adminpanel/app/lib/cosmos/js/controllers/FormDesignCtrl.js on lines 228..232
samples/adminpanel/app/lib/cosmos/js/controllers/ListCtrl.js on lines 15..19
samples/adminpanel/app/lib/cosmos/js/controllers/ListDetailCtrl.js on lines 16..20
samples/adminpanel/app/lib/cosmos/js/controllers/PageDesignCtrl.js on lines 172..176
samples/adminpanel/app/lib/cosmos/js/controllers/RolesCtrl.js on lines 13..17
samples/adminpanel/app/lib/cosmos/js/controllers/TerminalCtrl.js on lines 31..35
samples/adminpanel/app/lib/cosmos/js/controllers/UsersCtrl.js on lines 14..18
samples/adminpanel/app/lib/cosmos/js/controllers/controllers.js on lines 30..34

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

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

            $scope.processError = function (data, status) {
                $scope.hasError = true;
                $scope.status = status;
                $scope.status_data = JSON.stringify(data);
            };
samples/adminpanel/app/lib/cosmos/js/controllers/AppStudioCtrl.js on lines 37..41
samples/adminpanel/app/lib/cosmos/js/controllers/FileManagerCtrl.js on lines 36..40
samples/adminpanel/app/lib/cosmos/js/controllers/FileUploadCtrl.js on lines 20..24
samples/adminpanel/app/lib/cosmos/js/controllers/FormDesignCtrl.js on lines 228..232
samples/adminpanel/app/lib/cosmos/js/controllers/ListCtrl.js on lines 15..19
samples/adminpanel/app/lib/cosmos/js/controllers/ListDetailCtrl.js on lines 16..20
samples/adminpanel/app/lib/cosmos/js/controllers/PageDesignCtrl.js on lines 172..176
samples/adminpanel/app/lib/cosmos/js/controllers/RolesCtrl.js on lines 13..17
samples/adminpanel/app/lib/cosmos/js/controllers/TerminalCtrl.js on lines 31..35
samples/adminpanel/app/lib/cosmos/js/controllers/UsersCtrl.js on lines 14..18

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

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

        $scope.processError = function (data, status) {
            $scope.hasError = true;
            $scope.status = status;
            $scope.status_data = JSON.stringify(data);
        };
samples/adminpanel/app/lib/cosmos/js/controllers/AppStudioCtrl.js on lines 37..41
samples/adminpanel/app/lib/cosmos/js/controllers/FileManagerCtrl.js on lines 36..40
samples/adminpanel/app/lib/cosmos/js/controllers/FileUploadCtrl.js on lines 20..24
samples/adminpanel/app/lib/cosmos/js/controllers/FormDesignCtrl.js on lines 228..232
samples/adminpanel/app/lib/cosmos/js/controllers/ListCtrl.js on lines 15..19
samples/adminpanel/app/lib/cosmos/js/controllers/ListDetailCtrl.js on lines 16..20
samples/adminpanel/app/lib/cosmos/js/controllers/RolesCtrl.js on lines 13..17
samples/adminpanel/app/lib/cosmos/js/controllers/TerminalCtrl.js on lines 31..35
samples/adminpanel/app/lib/cosmos/js/controllers/UsersCtrl.js on lines 14..18
samples/adminpanel/app/lib/cosmos/js/controllers/controllers.js on lines 30..34

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

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

        $scope.processError = function (data, status) {
            $scope.hasError = true;
            $scope.status = status;
            $scope.status_data = JSON.stringify(data);
        };
samples/adminpanel/app/lib/cosmos/js/controllers/AppStudioCtrl.js on lines 37..41
samples/adminpanel/app/lib/cosmos/js/controllers/FileUploadCtrl.js on lines 20..24
samples/adminpanel/app/lib/cosmos/js/controllers/FormDesignCtrl.js on lines 228..232
samples/adminpanel/app/lib/cosmos/js/controllers/ListCtrl.js on lines 15..19
samples/adminpanel/app/lib/cosmos/js/controllers/ListDetailCtrl.js on lines 16..20
samples/adminpanel/app/lib/cosmos/js/controllers/PageDesignCtrl.js on lines 172..176
samples/adminpanel/app/lib/cosmos/js/controllers/RolesCtrl.js on lines 13..17
samples/adminpanel/app/lib/cosmos/js/controllers/TerminalCtrl.js on lines 31..35
samples/adminpanel/app/lib/cosmos/js/controllers/UsersCtrl.js on lines 14..18
samples/adminpanel/app/lib/cosmos/js/controllers/controllers.js on lines 30..34

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

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

    $scope.processError = function (data, status) {
        $scope.hasError = true;
        $scope.status = status;
        $scope.status_data = JSON.stringify(data);
    };
samples/adminpanel/app/lib/cosmos/js/controllers/AppStudioCtrl.js on lines 37..41
samples/adminpanel/app/lib/cosmos/js/controllers/FileManagerCtrl.js on lines 36..40
samples/adminpanel/app/lib/cosmos/js/controllers/FileUploadCtrl.js on lines 20..24
samples/adminpanel/app/lib/cosmos/js/controllers/FormDesignCtrl.js on lines 228..232
samples/adminpanel/app/lib/cosmos/js/controllers/ListCtrl.js on lines 15..19
samples/adminpanel/app/lib/cosmos/js/controllers/ListDetailCtrl.js on lines 16..20
samples/adminpanel/app/lib/cosmos/js/controllers/PageDesignCtrl.js on lines 172..176
samples/adminpanel/app/lib/cosmos/js/controllers/RolesCtrl.js on lines 13..17
samples/adminpanel/app/lib/cosmos/js/controllers/TerminalCtrl.js on lines 31..35
samples/adminpanel/app/lib/cosmos/js/controllers/controllers.js on lines 30..34

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

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

    $scope.processError = function (data, status) {
        $scope.hasError = true;
        $scope.status = status;
        $scope.status_data = JSON.stringify(data);
    };
samples/adminpanel/app/lib/cosmos/js/controllers/AppStudioCtrl.js on lines 37..41
samples/adminpanel/app/lib/cosmos/js/controllers/FileManagerCtrl.js on lines 36..40
samples/adminpanel/app/lib/cosmos/js/controllers/FileUploadCtrl.js on lines 20..24
samples/adminpanel/app/lib/cosmos/js/controllers/FormDesignCtrl.js on lines 228..232
samples/adminpanel/app/lib/cosmos/js/controllers/ListCtrl.js on lines 15..19
samples/adminpanel/app/lib/cosmos/js/controllers/ListDetailCtrl.js on lines 16..20
samples/adminpanel/app/lib/cosmos/js/controllers/PageDesignCtrl.js on lines 172..176
samples/adminpanel/app/lib/cosmos/js/controllers/RolesCtrl.js on lines 13..17
samples/adminpanel/app/lib/cosmos/js/controllers/UsersCtrl.js on lines 14..18
samples/adminpanel/app/lib/cosmos/js/controllers/controllers.js on lines 30..34

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

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

    $scope.processError = function (data, status) {
        $scope.hasError = true;
        $scope.status = status;
        $scope.status_data = JSON.stringify(data);
    };
samples/adminpanel/app/lib/cosmos/js/controllers/AppStudioCtrl.js on lines 37..41
samples/adminpanel/app/lib/cosmos/js/controllers/FileManagerCtrl.js on lines 36..40
samples/adminpanel/app/lib/cosmos/js/controllers/FileUploadCtrl.js on lines 20..24
samples/adminpanel/app/lib/cosmos/js/controllers/FormDesignCtrl.js on lines 228..232
samples/adminpanel/app/lib/cosmos/js/controllers/ListDetailCtrl.js on lines 16..20
samples/adminpanel/app/lib/cosmos/js/controllers/PageDesignCtrl.js on lines 172..176
samples/adminpanel/app/lib/cosmos/js/controllers/RolesCtrl.js on lines 13..17
samples/adminpanel/app/lib/cosmos/js/controllers/TerminalCtrl.js on lines 31..35
samples/adminpanel/app/lib/cosmos/js/controllers/UsersCtrl.js on lines 14..18
samples/adminpanel/app/lib/cosmos/js/controllers/controllers.js on lines 30..34

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

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

jQuery._evalUrl = function( url ) {
    return jQuery.ajax({
        url: url,
        type: "GET",
        dataType: "script",
samples/adminpanel/app/bower_components/jquery/src/manipulation/_evalUrl.js on lines 5..14

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

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

jQuery._evalUrl = function( url ) {
    return jQuery.ajax({
        url: url,
        type: "GET",
        dataType: "script",
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 8316..8325

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

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

  _.delay = function(func, wait) {
    var args = slice.call(arguments, 2);
    return setTimeout(function(){ return func.apply(null, args); }, wait);
  };
samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 1817..1820

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

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

  _.delay = function(func, wait) {
    var args = slice.call(arguments, 2);
    return setTimeout(function(){ return func.apply(null, args); }, wait);
  };
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 1817..1820

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

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

        var isOverElementHeight = (this.options.axis === "x") || isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),
Severity: Major
Found in samples/adminpanel/app/lib/js/jquery-ui.js and 1 other location - About 1 hr to fix
samples/adminpanel/app/lib/js/jquery-ui.js on lines 4058..4058

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

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

            isOverElementWidth = (this.options.axis === "y") || isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),
Severity: Major
Found in samples/adminpanel/app/lib/js/jquery-ui.js and 1 other location - About 1 hr to fix
samples/adminpanel/app/lib/js/jquery-ui.js on lines 4057..4057

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

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

angular.module("template/modal/backdrop.html", []).run(["$templateCache", function($templateCache) {
  $templateCache.put("template/modal/backdrop.html",
    "<div class=\"modal-backdrop fade\"\n" +
    "     ng-class=\"{in: animate}\"\n" +
    "     ng-style=\"{'z-index': 1040 + (index && 1 || 0) + index*10}\"\n" +
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3858..3865
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3985..3992
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3994..4001
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 4033..4040
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 4109..4116

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

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

angular.module("template/rating/rating.html", []).run(["$templateCache", function($templateCache) {
  $templateCache.put("template/rating/rating.html",
    "<span ng-mouseleave=\"reset()\" ng-keydown=\"onKeydown($event)\" tabindex=\"0\" role=\"slider\" aria-valuemin=\"0\" aria-valuemax=\"{{range.length}}\" aria-valuenow=\"{{value}}\">\n" +
    "    <i ng-repeat=\"r in range track by $index\" ng-mouseenter=\"enter($index + 1)\" ng-click=\"rate($index + 1)\" class=\"glyphicon\" ng-class=\"$index < value && (r.stateOn || 'glyphicon-star') || (r.stateOff || 'glyphicon-star-empty')\">\n" +
    "        <span class=\"sr-only\">({{ $index < value ? '*' : ' ' }})</span>\n" +
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3858..3865
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3950..3957
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3985..3992
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3994..4001
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 4109..4116

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

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

angular.module("template/typeahead/typeahead-popup.html", []).run(["$templateCache", function($templateCache) {
  $templateCache.put("template/typeahead/typeahead-popup.html",
    "<ul class=\"dropdown-menu\" ng-if=\"isOpen()\" ng-style=\"{top: position.top+'px', left: position.left+'px'}\" style=\"display: block;\" role=\"listbox\" aria-hidden=\"{{!isOpen()}}\">\n" +
    "    <li ng-repeat=\"match in matches track by $index\" ng-class=\"{active: isActive($index) }\" ng-mouseenter=\"selectActive($index)\" ng-click=\"selectMatch($index)\" role=\"option\" id=\"{{match.id}}\">\n" +
    "        <div typeahead-match index=\"$index\" match=\"match\" query=\"query\" template-url=\"templateUrl\"></div>\n" +
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3858..3865
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3950..3957
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3985..3992
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3994..4001
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 4033..4040

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

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

angular.module("template/tooltip/tooltip-html-unsafe-popup.html", []).run(["$templateCache", function($templateCache) {
  $templateCache.put("template/tooltip/tooltip-html-unsafe-popup.html",
    "<div class=\"tooltip {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" +
    "  <div class=\"tooltip-arrow\"></div>\n" +
    "  <div class=\"tooltip-inner\" bind-html-unsafe=\"content\"></div>\n" +
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3858..3865
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3950..3957
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3994..4001
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 4033..4040
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 4109..4116

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

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

angular.module("template/datepicker/datepicker.html", []).run(["$templateCache", function($templateCache) {
  $templateCache.put("template/datepicker/datepicker.html",
    "<div ng-switch=\"datepickerMode\" role=\"application\" ng-keydown=\"keydown($event)\">\n" +
    "  <daypicker ng-switch-when=\"day\" tabindex=\"0\"></daypicker>\n" +
    "  <monthpicker ng-switch-when=\"month\" tabindex=\"0\"></monthpicker>\n" +
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3950..3957
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3985..3992
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3994..4001
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 4033..4040
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 4109..4116

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

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

if ( window.ActiveXObject ) {
    jQuery( window ).on( "unload", function() {
        for ( var key in xhrCallbacks ) {
            xhrCallbacks[ key ]();
        }
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 8532..8538

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

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