kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1934..1986
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1920..1972
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1566..1618
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1654..1706

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

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

var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1934..1986
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1920..1972
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1566..1618
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1654..1706

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

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

var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1934..1986
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1920..1972
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1566..1618
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1654..1706

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

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

var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1934..1986
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1920..1972
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1566..1618
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1654..1706

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

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

var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1934..1986
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1920..1972
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1566..1618
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1654..1706

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

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

var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1934..1986
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1920..1972
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1566..1618
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1654..1706

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

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

var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1934..1986
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1920..1972
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1566..1618
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1654..1706

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

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

var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1934..1986
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1920..1972
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1566..1618
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1654..1706

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

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

var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1920..1972
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1566..1618
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1654..1706
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1654..1706

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

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

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

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

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

Refactorings

Further Reading

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

if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
    $.each( [ "Width", "Height" ], function( i, name ) {
        var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
            type = name.toLowerCase(),
            orig = {
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery-ui/ui/core.js and 2 other locations - About 2 days to fix
samples/adminpanel/app/bower_components/jquery-ui/jquery-ui.js on lines 145..189
samples/adminpanel/app/lib/js/jquery-ui.js on lines 174..218

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

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

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

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

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

Refactorings

Further Reading

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

if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
    $.each( [ "Width", "Height" ], function( i, name ) {
        var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
            type = name.toLowerCase(),
            orig = {
samples/adminpanel/app/bower_components/jquery-ui/ui/core.js on lines 139..183
samples/adminpanel/app/lib/js/jquery-ui.js on lines 174..218

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

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

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

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

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

Refactorings

Further Reading

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

if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
    $.each( [ "Width", "Height" ], function( i, name ) {
        var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
            type = name.toLowerCase(),
            orig = {
Severity: Major
Found in samples/adminpanel/app/lib/js/jquery-ui.js and 2 other locations - About 2 days to fix
samples/adminpanel/app/bower_components/jquery-ui/jquery-ui.js on lines 145..189
samples/adminpanel/app/bower_components/jquery-ui/ui/core.js on lines 139..183

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

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/golang",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/golang_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], function(require, exports, module) {

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
var GolangHighlightRules = require("./golang_highlight_rules").GolangHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src/mode-golang.js on lines 647..701

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

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/golang",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/golang_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], function(require, exports, module) {

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
var GolangHighlightRules = require("./golang_highlight_rules").GolangHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-golang.js on lines 647..701

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

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

Tween.prototype = {
    constructor: Tween,
    init: function( elem, options, prop, end, easing, unit ) {
        this.elem = elem;
        this.prop = prop;
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 6129..6171

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

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

Tween.prototype = {
    constructor: Tween,
    init: function( elem, options, prop, end, easing, unit ) {
        this.elem = elem;
        this.prop = prop;
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery/dist/jquery.js and 1 other location - About 2 days to fix
samples/adminpanel/app/bower_components/jquery/src/effects/Tween.js on lines 11..53

Duplicated Code

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

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

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

Tuning

This issue has a mass of 470.

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/haxe",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/haxe_highlight_rules","ace/mode/matching_brace_outdent","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/mode-haxe.js on lines 632..687

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

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/haxe",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/haxe_highlight_rules","ace/mode/matching_brace_outdent","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-haxe.js on lines 632..687

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

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

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

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

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

Refactorings

Further Reading

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

jQuery.fn.extend({
    queue: function( type, data ) {
        var setter = 2;

        if ( typeof type !== "string" ) {
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery/dist/jquery.js and 1 other location - About 2 days to fix
samples/adminpanel/app/bower_components/jquery/src/queue.js on lines 74..139

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

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

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

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

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

Refactorings

Further Reading

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

jQuery.fn.extend({
    queue: function( type, data ) {
        var setter = 2;

        if ( typeof type !== "string" ) {
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery/src/queue.js and 1 other location - About 2 days to fix
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 3923..3988

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

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