kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

function visible( element ) {
    return $.expr.filters.visible( element ) &&
        !$( element ).parents().addBack().filter(function() {
            return $.css( this, "visibility" ) === "hidden";
        }).length;
samples/adminpanel/app/bower_components/jquery-ui/ui/core.js on lines 108..113
samples/adminpanel/app/lib/js/jquery-ui.js on lines 143..148

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

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

  var entityRegexes = {
    escape:   new RegExp('[' + _.keys(entityMap.escape).join('') + ']', 'g'),
    unescape: new RegExp('(' + _.keys(entityMap.unescape).join('|') + ')', 'g')
  };
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 2163..2166

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

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

  var entityRegexes = {
    escape:   new RegExp('[' + _.keys(entityMap.escape).join('') + ']', 'g'),
    unescape: new RegExp('(' + _.keys(entityMap.unescape).join('|') + ')', 'g')
  };
samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 2163..2166

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

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

class RoleGroup(RBACObject):
    def __init__(self, *args, **kwargs):
        RBACObject.__init__(self, *args, **kwargs)
        self.name = None
        self.sid = None
Severity: Major
Found in cosmos/rbac/object.py and 1 other location - About 2 hrs to fix
cosmos/rbac/object.py on lines 47..53

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

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

class Role(RBACObject):
    def __init__(self, *args, **kwargs):
        RBACObject.__init__(self, *args, **kwargs)
        self.name = None
        self.sid = None
Severity: Major
Found in cosmos/rbac/object.py and 1 other location - About 2 hrs to fix
cosmos/rbac/object.py on lines 55..61

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

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

  _.functions = _.methods = function(obj) {
    var names = [];
    for (var key in obj) {
      if (_.isFunction(obj[key])) names.push(key);
    }
samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 1948..1954

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

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 ( !support.optSelected ) {
    jQuery.propHooks.selected = {
        get: function( elem ) {
            var parent = elem.parentNode;
            if ( parent && parent.parentNode ) {
samples/adminpanel/app/bower_components/jquery/src/attributes/prop.js on lines 69..79

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

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

  _.functions = _.methods = function(obj) {
    var names = [];
    for (var key in obj) {
      if (_.isFunction(obj[key])) names.push(key);
    }
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 1948..1954

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

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 ( !support.optSelected ) {
    jQuery.propHooks.selected = {
        get: function( elem ) {
            var parent = elem.parentNode;
            if ( parent && parent.parentNode ) {
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 7109..7119

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

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

  _.times = function(n, iterator, context) {
    var accum = Array(Math.max(0, n));
    for (var i = 0; i < n; i++) accum[i] = iterator.call(context, i);
    return accum;
  };
samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 2140..2144

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

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

  _.times = function(n, iterator, context) {
    var accum = Array(Math.max(0, n));
    for (var i = 0; i < n; i++) accum[i] = iterator.call(context, i);
    return accum;
  };
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 2140..2144

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

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

                            if (item.options.saveValueOnly) {
                                template = '' +
                                    '<label class="control-label">{{item.label}}</label>' +
                                    '<select class="form-control" ng-if="!item.options.hideRefType" ng-model="ref" ' +
                                    'ng-options="lookup.ref as lookup.lookupname for lookup in item.options.lookups"' +
Severity: Major
Found in samples/adminpanel/app/lib/cosmos/js/directives/field.js and 1 other location - About 2 hrs to fix
samples/adminpanel/app/lib/cosmos/js/directives/field.js on lines 587..602

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

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

                            else {
                                template = '' +
                                    '<label class="control-label">{{item.label}}</label>' +
                                    '<select class="form-control" ng-model="val.ref" ' +
                                    'ng-options="lookup.ref as lookup.lookupname for lookup in item.options.lookups"' +
Severity: Major
Found in samples/adminpanel/app/lib/cosmos/js/directives/field.js and 1 other location - About 2 hrs to fix
samples/adminpanel/app/lib/cosmos/js/directives/field.js on lines 571..586

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

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

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

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

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

Refactorings

Further Reading

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

    @gen.coroutine
    def load_auth_request(self, req_id):
        obj_serv = self.settings['object_service']
        cursor = obj_serv.load(SYSTEM_USER, OAUTH2_REQUESTS_OBJECT_NAME, req_id, [])
        request = yield cursor
Severity: Major
Found in cosmos/service/oauth2service.py and 2 other locations - About 2 hrs to fix
cosmos/service/oauth2service.py on lines 323..328
cosmos/service/oauth2service.py on lines 330..335

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

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

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

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

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

Refactorings

Further Reading

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

    @gen.coroutine
    def load_code_status(self, code_status_id):
        obj_serv = self.settings['object_service']
        promise = obj_serv.load(SYSTEM_USER, OAUTH2_CODE_STATUS_OBJECT_NAME, code_status_id, [])
        code_status = yield promise
Severity: Major
Found in cosmos/service/oauth2service.py and 2 other locations - About 2 hrs to fix
cosmos/service/oauth2service.py on lines 302..307
cosmos/service/oauth2service.py on lines 330..335

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

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

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

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

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

Refactorings

Further Reading

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

    @gen.coroutine
    def load_user(self, user_id):
        obj_serv = self.settings['object_service']
        cursor = obj_serv.load(SYSTEM_USER, COSMOS_USERS_OBJECT_NAME, user_id, [])
        user = yield cursor
Severity: Major
Found in cosmos/service/oauth2service.py and 2 other locations - About 2 hrs to fix
cosmos/service/oauth2service.py on lines 302..307
cosmos/service/oauth2service.py on lines 323..328

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

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

ace.define("ace/theme/tomorrow_night",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-tomorrow-night";
exports.cssText = ".ace-tomorrow-night .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-xcode.js on lines 1..89

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 81.

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

ace.define("ace/theme/xcode",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = false;
exports.cssClass = "ace-xcode";
exports.cssText = "\
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-vibrant_ink.js on lines 1..95

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

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

ace.define("ace/theme/terminal",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-terminal-theme";
exports.cssText = ".ace-terminal-theme .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-xcode.js on lines 1..89

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 81.

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

ace.define("ace/theme/tomorrow_night_blue",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-tomorrow-night-blue";
exports.cssText = ".ace-tomorrow-night-blue .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-xcode.js on lines 1..89

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 81.

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