kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

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

exports.isDark = true;
exports.cssClass = "ace-clouds-midnight";
exports.cssText = ".ace-clouds-midnight .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-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
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/merbivore_soft",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-merbivore-soft";
exports.cssText = ".ace-merbivore-soft .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-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
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/pastel_on_dark",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-pastel-on-dark";
exports.cssText = ".ace-pastel-on-dark .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-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
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/kuroir",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = false;
exports.cssClass = "ace-kuroir";
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-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
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/solarized_dark",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-solarized-dark";
exports.cssText = ".ace-solarized-dark .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_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
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

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

var
    // Document location
    ajaxLocParts,
    ajaxLocation,

samples/adminpanel/app/bower_components/jquery/src/ajax.js on lines 12..45

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

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

var
    // Document location
    ajaxLocParts,
    ajaxLocation,

Severity: Major
Found in samples/adminpanel/app/bower_components/jquery/src/ajax.js and 1 other location - About 2 hrs to fix
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 7522..7555

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

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

define("ace/mode/behaviour/html",["require","exports","module","ace/lib/oop","ace/mode/behaviour/xml"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var XmlBehaviour = require("../behaviour/xml").XmlBehaviour;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 2381..2396

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

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

ace.define("ace/mode/behaviour/html",["require","exports","module","ace/lib/oop","ace/mode/behaviour/xml"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var XmlBehaviour = require("../behaviour/xml").XmlBehaviour;
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 2381..2396

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

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 getUserName(default_user){
    var userCookie = getCookie("user");
    if(userCookie){
        userCookie = userCookie.replace(/\"/g, "")
        var decoded = JSON.parse(window.atob(userCookie));
Severity: Major
Found in samples/simple/app/controllers.js and 1 other location - About 2 hrs to fix
samples/adminpanel/app/lib/cosmos/js/utils.js on lines 12..21

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

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.noConflict = function( deep ) {
    if ( window.$ === jQuery ) {
        window.$ = _$;
    }

samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 9166..9176

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

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

ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
"use strict";

exports.isDark = false;
exports.cssClass = "ace-tm";
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-eclipse.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-textmate.js on lines 1..130

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

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

ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
"use strict";

exports.isDark = false;
exports.cssClass = "ace-tm";
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/ext-textarea.js on lines 1..130
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-eclipse.js on lines 1..98

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

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

ace.define("ace/theme/eclipse",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
"use strict";

exports.isDark = false;
exports.cssText = ".ace-eclipse .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/ext-textarea.js on lines 1..130
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/theme-textmate.js on lines 1..130

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

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.noConflict = function( deep ) {
    if ( window.$ === jQuery ) {
        window.$ = _$;
    }

samples/adminpanel/app/bower_components/jquery/src/exports/global.js on lines 13..23

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

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 getUserName(default_user){
    var userCookie = getCookie("user");
    if(userCookie){
        userCookie = userCookie.replace(/\"/g, "")
        var decoded = JSON.parse(window.atob(userCookie));
Severity: Major
Found in samples/adminpanel/app/lib/cosmos/js/utils.js and 1 other location - About 2 hrs to fix
samples/simple/app/controllers.js on lines 13..22

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

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 update_code_status(self, code_status):
        obj_serv = self.settings['object_service']
        promise = obj_serv.save(SYSTEM_USER, OAUTH2_CODE_STATUS_OBJECT_NAME, code_status)
        code_status_id = 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 295..300
cosmos/service/oauth2service.py on lines 309..314

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

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 insert_code_status(self, response):
        obj_serv = self.settings['object_service']
        promise = obj_serv.insert(SYSTEM_USER, OAUTH2_CODE_STATUS_OBJECT_NAME, response)
        code_status_id = 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 295..300
cosmos/service/oauth2service.py on lines 316..321

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

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 insert_auth_request(self, params):
        obj_serv = self.settings['object_service']
        promise = obj_serv.insert(SYSTEM_USER, OAUTH2_REQUESTS_OBJECT_NAME, params)
        req_id = 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 309..314
cosmos/service/oauth2service.py on lines 316..321

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

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

if ( !$.fn.addBack ) {
    $.fn.addBack = function( selector ) {
        return this.add( selector == null ?
            this.prevObject : this.prevObject.filter( selector )
        );
samples/adminpanel/app/bower_components/jquery-ui/ui/core.js on lines 186..192
samples/adminpanel/app/lib/js/jquery-ui.js on lines 221..227

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

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