kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

ace.define("ace/mode/python_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-python.js on lines 1..155

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

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/python_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-pgsql.js on lines 178..332

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

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

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

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

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

Refactorings

Further Reading

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

define("ace/mode/ftl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/html_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 793..954

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/ftl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/html_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js on lines 793..954

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

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

var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src/mode-python.js on lines 1..155

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

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

var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src/mode-pgsql.js on lines 178..332

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

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

$.ui.plugin.add("resizable", "grid", {

    resize: function() {
        var that = $(this).resizable( "instance" ),
            o = that.options,
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery-ui/jquery-ui.js and 1 other location - About 4 days to fix
samples/adminpanel/app/bower_components/jquery-ui/ui/resizable.js on lines 959..1024

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

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/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-markdown.js on lines 2535..2629

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

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

$.ui.plugin.add("resizable", "grid", {

    resize: function() {
        var that = $(this).resizable( "instance" ),
            o = that.options,
samples/adminpanel/app/bower_components/jquery-ui/jquery-ui.js on lines 3865..3930

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

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/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-markdown.js on lines 2535..2629

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-abap.js on lines 97..182
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-assembly_x86.js on lines 78..163
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haml.js on lines 356..441
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 2590..2675
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1885..1970
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ruby.js on lines 266..351
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-snippets.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-space.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 2481..2566
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-abap.js on lines 97..182
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-assembly_x86.js on lines 78..163
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 95..180
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haml.js on lines 356..441
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1885..1970
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ruby.js on lines 266..351
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-snippets.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-space.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 2481..2566
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-abap.js on lines 97..182
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-assembly_x86.js on lines 78..163
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 95..180
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 2590..2675
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1885..1970
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ruby.js on lines 266..351
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-snippets.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-space.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 2481..2566
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-abap.js on lines 97..182
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-assembly_x86.js on lines 78..163
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 95..180
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haml.js on lines 356..441
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 2590..2675
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ruby.js on lines 266..351
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-snippets.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-space.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 2481..2566
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-abap.js on lines 97..182
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-assembly_x86.js on lines 78..163
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 95..180
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haml.js on lines 356..441
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 2590..2675
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1885..1970
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-snippets.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-space.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 2481..2566
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-abap.js on lines 97..182
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-assembly_x86.js on lines 78..163
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 95..180
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haml.js on lines 356..441
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 2590..2675
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1885..1970
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ruby.js on lines 266..351
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-space.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 2481..2566
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-abap.js on lines 97..182
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-assembly_x86.js on lines 78..163
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 95..180
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haml.js on lines 356..441
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 2590..2675
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1885..1970
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ruby.js on lines 266..351
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-snippets.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 2481..2566
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-assembly_x86.js on lines 78..163
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 95..180
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haml.js on lines 356..441
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 2590..2675
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1885..1970
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ruby.js on lines 266..351
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-snippets.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-space.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 2481..2566
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-abap.js on lines 97..182
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 95..180
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haml.js on lines 356..441
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 2590..2675
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1885..1970
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ruby.js on lines 266..351
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-snippets.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-space.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 2481..2566
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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

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

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

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

Refactorings

Further Reading

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

ace.define("ace/mode/folding/velocity",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], 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-noconflict/mode-abap.js on lines 97..182
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-assembly_x86.js on lines 78..163
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 95..180
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 243..328
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 2535..2620
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haml.js on lines 356..441
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 2590..2675
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js on lines 1885..1970
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-logiql.js on lines 75..160
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-makefile.js on lines 188..273
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pascal.js on lines 84..169
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ruby.js on lines 266..351
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 304..389
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-snippets.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-space.js on lines 1..86
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 305..390
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-yaml.js on lines 122..207

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

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