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/coffee/helpers",["require","exports","module"], function(require, exports, module) {

  var buildLocationData, extend, flatten, last, repeat, syntaxErrorToString, _ref;

  exports.starts = function(string, literal, start) {
samples/adminpanel/app/bower_components/ace-builds/src/worker-coffee.js on lines 1811..2054

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

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/coffee/helpers",["require","exports","module"], function(require, exports, module) {

  var buildLocationData, extend, flatten, last, repeat, syntaxErrorToString, _ref;

  exports.starts = function(string, literal, start) {
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-coffee.js on lines 1811..2054

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

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/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"], function(require, exports, module) {
"use strict";

var oop = require("./lib/oop");
var lang = require("./lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src/ext-split.js on lines 1..236

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

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/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"], function(require, exports, module) {
"use strict";

var oop = require("./lib/oop");
var lang = require("./lib/lang");
samples/adminpanel/app/bower_components/ace-builds/demo/kitchen-sink/demo.js on lines 2188..2423

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

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

$.Widget.prototype = {
    widgetName: "widget",
    widgetEventPrefix: "",
    defaultElement: "<div>",
    options: {
samples/adminpanel/app/bower_components/jquery-ui/ui/widget.js on lines 235..503

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

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

$.Widget.prototype = {
    widgetName: "widget",
    widgetEventPrefix: "",
    defaultElement: "<div>",
    options: {
samples/adminpanel/app/bower_components/jquery-ui/jquery-ui.js on lines 534..802

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

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

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

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

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

Refactorings

Further Reading

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

var effectSize = $.effects.effect.size = function( o, done ) {

    // Create element
    var original, baseline, factor,
        el = $( this ),
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 26..231
samples/adminpanel/app/lib/js/jquery-ui.js on lines 11062..11267

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

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

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

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

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

Refactorings

Further Reading

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

return $.effects.effect.size = function( o, done ) {

    // Create element
    var original, baseline, factor,
        el = $( this ),
samples/adminpanel/app/bower_components/jquery-ui/jquery-ui.js on lines 15584..15789
samples/adminpanel/app/lib/js/jquery-ui.js on lines 11062..11267

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

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

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

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

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

Refactorings

Further Reading

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

$.effects.effect.size = function( o, done ) {

    // Create element
    var original, baseline, factor,
        el = $( this ),
Severity: Major
Found in samples/adminpanel/app/lib/js/jquery-ui.js and 2 other locations - About 1 wk to fix
samples/adminpanel/app/bower_components/jquery-ui/jquery-ui.js on lines 15584..15789
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 26..231

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

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

angular.module('ui.bootstrap.timepicker', [])

.constant('timepickerConfig', {
  hourStep: 1,
  minuteStep: 1,
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap.js on lines 3166..3419

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

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

angular.module('ui.bootstrap.timepicker', [])

.constant('timepickerConfig', {
  hourStep: 1,
  minuteStep: 1,
samples/adminpanel/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js on lines 3167..3420

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

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

ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var lang = require("../../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1988..2222
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1280..1514
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 344..578
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-xml.js on lines 344..578

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

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

ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var lang = require("../../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1988..2222
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1280..1514
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 344..578
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-xml.js on lines 344..578

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

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

ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var lang = require("../../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1988..2222
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1280..1514
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 344..578
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-xml.js on lines 344..578

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

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

ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var lang = require("../../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1988..2222
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1280..1514
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 344..578
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-xml.js on lines 344..578

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

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

ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var lang = require("../../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1988..2222
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1280..1514
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 344..578
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-xml.js on lines 344..578

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

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

ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var lang = require("../../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1988..2222
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1280..1514
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 344..578
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-xml.js on lines 344..578

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

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

ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var lang = require("../../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1988..2222
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1280..1514
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 344..578
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1708..1942

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

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

ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var lang = require("../../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1988..2222
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 344..578
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-xml.js on lines 344..578

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

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

ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"], function(require, exports, module) {
"use strict";

var oop = require("../../lib/oop");
var lang = require("../../lib/lang");
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1988..2222
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1280..1514
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 344..578
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1708..1942
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-xml.js on lines 344..578

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

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