kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

$.widget.bridge = function( name, object ) {
    var fullName = object.prototype.widgetFullName || name;
    $.fn[ name ] = function( options ) {
        var isMethodCall = typeof options === "string",
            args = widget_slice.call( arguments, 1 ),
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery-ui/ui/widget.js and 1 other location - About 2 days to fix
samples/adminpanel/app/bower_components/jquery-ui/jquery-ui.js on lines 478..529

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

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

define("ace/mode/lsl",["require","exports","module","ace/mode/lsl_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/text","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/lib/oop"], function(require, exports, module) {
"use strict";

var Rules = require("./lsl_highlight_rules").LSLHighlightRules;
var Outdent = require("./matching_brace_outdent").MatchingBraceOutdent;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-lsl.js on lines 588..649

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

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

ace.define("ace/mode/lsl",["require","exports","module","ace/mode/lsl_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/text","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/lib/oop"], function(require, exports, module) {
"use strict";

var Rules = require("./lsl_highlight_rules").LSLHighlightRules;
var Outdent = require("./matching_brace_outdent").MatchingBraceOutdent;
samples/adminpanel/app/bower_components/ace-builds/src/mode-lsl.js on lines 588..649

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

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/mel_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src/mode-mel.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 497.

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/mel_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-mel.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 497.

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

jQuery.fn = jQuery.prototype = {
    // The current version of jQuery being used
    jquery: version,

    constructor: jQuery,
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery/dist/jquery.js and 1 other location - About 2 days to fix
samples/adminpanel/app/bower_components/jquery/src/core.js on lines 39..122

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

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

jQuery.fn = jQuery.prototype = {
    // The current version of jQuery being used
    jquery: version,

    constructor: jQuery,
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery/src/core.js and 1 other location - About 2 days to fix
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 92..175

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

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

define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-json.js on lines 562..624

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

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

ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-json.js on lines 562..624

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

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

angular.module('ui.bootstrap.collapse', ['ui.bootstrap.transition'])

  .directive('collapse', ['$transition', function ($transition) {

    return {
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap.js on lines 92..166

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

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

angular.module('ui.bootstrap.collapse', ['ui.bootstrap.transition'])

  .directive('collapse', ['$transition', function ($transition) {

    return {
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 93..167

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

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/scad_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var lang = require("../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 45..153

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

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/scad_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var lang = require("../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src/mode-scad.js on lines 45..153

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

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

ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var lang = require("../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1838..1918
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1439..1519

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

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

ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var lang = require("../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1838..1918
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1439..1519

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

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

ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var lang = require("../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1838..1918
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1439..1519

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

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

ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var lang = require("../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1838..1918
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1439..1519

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

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

ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var lang = require("../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1838..1918
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1439..1519

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

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

ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var lang = require("../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1838..1918
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1439..1519

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

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

ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var lang = require("../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 711..791
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1838..1918
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1439..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1439..1519

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

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