kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

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

var oop = require("../../lib/oop");
var MixedFoldMode = require("./mixed").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1974..1991
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1944..1961

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

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

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

var oop = require("../../lib/oop");
var MixedFoldMode = require("./mixed").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 2224..2241
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1974..1991
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1944..1961

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

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

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

var oop = require("../../lib/oop");
var MixedFoldMode = require("./mixed").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 2224..2241
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1974..1991
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1944..1961

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

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

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

var oop = require("../../lib/oop");
var MixedFoldMode = require("./mixed").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 2224..2241
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1974..1991
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1944..1961

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

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

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

var oop = require("../../lib/oop");
var MixedFoldMode = require("./mixed").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 2224..2241
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1974..1991
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1944..1961

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

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

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

var oop = require("../../lib/oop");
var MixedFoldMode = require("./mixed").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 2224..2241
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1974..1991
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1944..1961

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

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

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

var oop = require("../../lib/oop");
var MixedFoldMode = require("./mixed").FoldMode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 2224..2241
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1974..1991
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1944..1961
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1944..1961

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

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

    $scope.removeFile = function (index) {
        var file = $scope.uploaded_files[index];
        if (confirm('Are you sure you want to delete the file ' + file.filename + '?')) {
            var file_id = file.file_id;
            CosmosService.delete('/gridfs/' + $scope.fileObjectName + '/' + file_id + '/', function (data) {
samples/adminpanel/app/lib/cosmos/js/controllers/FileUploadCtrl.js on lines 66..78

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

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

        $scope.removeFile = function (index) {
            var file = $scope.uploaded_files[index];
            if (confirm('Are you sure you want to delete the file ' + file.filename + '?')) {
                var file_id = file.file_id;
                CosmosService.delete('/gridfs/' + $scope.fileObjectName + '/' + file_id + '/', function (data) {
samples/adminpanel/app/lib/cosmos/js/directives/directives.js on lines 541..553

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

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

function genFx( type, includeWidth ) {
    var which,
        i = 0,
        attrs = { height: type };

samples/adminpanel/app/bower_components/jquery/src/effects.js on lines 83..101

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

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

function genFx( type, includeWidth ) {
    var which,
        i = 0,
        attrs = { height: type };

samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 6301..6319

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

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

  _.every = _.all = function(obj, predicate, context) {
    predicate || (predicate = _.identity);
    var result = true;
    if (obj == null) return result;
    if (nativeEvery && obj.every === nativeEvery) return obj.every(predicate, context);
samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 1482..1491

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

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

  _.every = _.all = function(obj, predicate, context) {
    predicate || (predicate = _.identity);
    var result = true;
    if (obj == null) return result;
    if (nativeEvery && obj.every === nativeEvery) return obj.every(predicate, context);
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 1482..1491

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

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

var oop = require("../lib/oop");
var HtmlMode = require("./html").Mode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 2414..2434

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

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

var oop = require("../lib/oop");
var HtmlMode = require("./html").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 2414..2434

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

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

ace.define("ace/mode/gitignore",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/gitignore_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 956..974
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-lucene.js on lines 51..69
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-properties.js on lines 55..72

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

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

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

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-gitignore.js on lines 33..50
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-lucene.js on lines 51..69
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-properties.js on lines 55..72

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

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

ace.define("ace/mode/properties",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/properties_highlight_rules"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 956..974
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-gitignore.js on lines 33..50
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-lucene.js on lines 51..69

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

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

ace.define("ace/mode/lucene",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/lucene_highlight_rules"], function(require, exports, module) {
'use strict';

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 956..974
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-gitignore.js on lines 33..50
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-properties.js on lines 55..72

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

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

  var flatten = function(input, shallow, output) {
    if (shallow && _.every(input, _.isArray)) {
      return concat.apply(output, input);
    }
    each(input, function(value) {
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 1654..1666

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

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