kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1160..1227

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

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/jsx_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) {
var oop = require("../lib/oop");
var lang = require("../lib/lang");
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src/mode-jsx.js on lines 45..162

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

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/jsx_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) {
var oop = require("../lib/oop");
var lang = require("../lib/lang");
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsx.js on lines 45..162

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/css","ace/mode/folding/cstyle"], 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-coldfusion.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 717..784
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1452..1519
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1732..1799
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1769..1836
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1160..1227
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1160..1227

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/c_cpp",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/c_cpp_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], 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-dart.js on lines 716..786
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-glsl.js on lines 716..786
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 716..786
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 716..786
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 648..716

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/c_cpp",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/c_cpp_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], 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-c_cpp.js on lines 716..786
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-glsl.js on lines 716..786
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 716..786
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 716..786
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 648..716

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

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