kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

ace.define("ace/mode/doc_comment_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-c_cpp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-csharp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dart.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dot.js on lines 41..83
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-glsl.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-golang.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-groovy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-java.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript - Copy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsx.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-mysql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pgsql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scala.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sjs.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 610..652
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-typescript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1..43

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

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

ace.define("ace/mode/doc_comment_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-c_cpp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-csharp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dart.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dot.js on lines 41..83
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-glsl.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-golang.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-groovy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haxe.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-java.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript - Copy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsx.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-mysql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pgsql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scala.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sjs.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 610..652
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-typescript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1..43

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

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

ace.define("ace/mode/doc_comment_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-c_cpp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-csharp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dart.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dot.js on lines 41..83
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-glsl.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-golang.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-groovy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haxe.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-java.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript - Copy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsx.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-mysql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pgsql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scala.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sjs.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 610..652
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-typescript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1..43

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

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

ace.define("ace/mode/doc_comment_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-c_cpp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-csharp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dart.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dot.js on lines 41..83
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-golang.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-groovy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haxe.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-java.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript - Copy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsx.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-mysql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pgsql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scala.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sjs.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 610..652
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-typescript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1..43

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

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

ace.define("ace/mode/doc_comment_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-c_cpp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-csharp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dart.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dot.js on lines 41..83
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-glsl.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-golang.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-groovy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haxe.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-java.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript - Copy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsx.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-mysql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pgsql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sjs.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 610..652
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-typescript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1..43

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

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

ace.define("ace/mode/doc_comment_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-c_cpp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-csharp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dart.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dot.js on lines 41..83
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-glsl.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-golang.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-groovy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haxe.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-java.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript - Copy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsx.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-mysql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pgsql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scala.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sjs.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 610..652
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-typescript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1..43

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

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

ace.define("ace/mode/doc_comment_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-c_cpp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-csharp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dart.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dot.js on lines 41..83
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-glsl.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-golang.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-groovy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haxe.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-java.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript - Copy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsx.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-mysql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pgsql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scala.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sjs.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 610..652
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-typescript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1..43

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

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

function winnow( elements, qualifier, not ) {
    if ( jQuery.isFunction( qualifier ) ) {
        return jQuery.grep( elements, function( elem, i ) {
            /* jshint -W018 */
            return !!qualifier.call( elem, i, elem ) !== not;
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 2607..2634

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

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

function winnow( elements, qualifier, not ) {
    if ( jQuery.isFunction( qualifier ) ) {
        return jQuery.grep( elements, function( elem, i ) {
            /* jshint -W018 */
            return !!qualifier.call( elem, i, elem ) !== not;
samples/adminpanel/app/bower_components/jquery/src/traversing/findFilter.js on lines 11..38

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

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/rdoc",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/text_highlight_rules","ace/mode/rdoc_highlight_rules","ace/mode/matching_brace_outdent"], 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-rdoc.js on lines 151..174

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

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/rdoc",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/text_highlight_rules","ace/mode/rdoc_highlight_rules","ace/mode/matching_brace_outdent"], 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-rdoc.js on lines 151..174

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

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

(function() {
    var fragment = document.createDocumentFragment(),
        div = fragment.appendChild( document.createElement( "div" ) ),
        input = document.createElement( "input" );

samples/adminpanel/app/bower_components/jquery/src/manipulation/support.js on lines 5..27

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

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

(function() {
    var fragment = document.createDocumentFragment(),
        div = fragment.appendChild( document.createElement( "div" ) ),
        input = document.createElement( "input" );

samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 4004..4026

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

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

   var Range = require("../range").Range;
   var oop = require("../lib/oop");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-r.js on lines 278..302

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

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

   var Range = require("../range").Range;
   var oop = require("../lib/oop");
samples/adminpanel/app/bower_components/ace-builds/src/mode-r.js on lines 278..302

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

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

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

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

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

Refactorings

Further Reading

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

function focusable( element, isTabIndexNotNaN ) {
    var map, mapName, img,
        nodeName = element.nodeName.toLowerCase();
    if ( "area" === nodeName ) {
        map = element.parentNode;
samples/adminpanel/app/bower_components/jquery-ui/jquery-ui.js on lines 93..112
samples/adminpanel/app/lib/js/jquery-ui.js on lines 122..141

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

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

function buildParams( prefix, obj, traditional, add ) {
    var name;

    if ( jQuery.isArray( obj ) ) {
        // Serialize array item.
samples/adminpanel/app/bower_components/jquery/src/serialize.js on lines 15..41

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

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.each({
    mouseenter: "mouseover",
    mouseleave: "mouseout",
    pointerenter: "pointerover",
    pointerleave: "pointerout"
samples/adminpanel/app/bower_components/jquery/src/event.js on lines 700..726

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

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

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

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

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

Refactorings

Further Reading

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

function focusable( element, isTabIndexNotNaN ) {
    var map, mapName, img,
        nodeName = element.nodeName.toLowerCase();
    if ( "area" === nodeName ) {
        map = element.parentNode;
samples/adminpanel/app/bower_components/jquery-ui/ui/core.js on lines 87..106
samples/adminpanel/app/lib/js/jquery-ui.js on lines 122..141

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

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.each({
    mouseenter: "mouseover",
    mouseleave: "mouseout",
    pointerenter: "pointerover",
    pointerleave: "pointerout"
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery/src/event.js and 1 other location - About 1 day to fix
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 4719..4745

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

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