kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

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

var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src/mode-c_cpp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-csharp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-d.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-dart.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-dot.js on lines 41..83
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-glsl.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-golang.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-groovy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-haxe.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-jade.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-java.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-javascript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-jsp.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-jsx.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-liquid.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-mysql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-nix.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-objectivec.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-pgsql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-protobuf.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-scala.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-sjs.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 610..652
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-typescript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1..43

Duplicated Code

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

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

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

Tuning

This issue has a mass of 201.

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

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

var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
samples/adminpanel/app/bower_components/ace-builds/src/mode-c_cpp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-coldfusion.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-csharp.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-d.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-dart.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-dot.js on lines 41..83
samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-glsl.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-golang.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-groovy.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-haxe.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-jade.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-java.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-javascript.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-jsp.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-jsx.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-liquid.js on lines 145..187
samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-mysql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-nix.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-objectivec.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-pgsql.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-protobuf.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-scad.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-scala.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-sjs.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 610..652
samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1..43
samples/adminpanel/app/bower_components/ace-builds/src/mode-typescript.js on lines 1..43

Duplicated Code

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

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

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

Tuning

This issue has a mass of 201.

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

var oop = require("../lib/oop");
var CMode = require("./c_cpp").Mode;
samples/adminpanel/app/bower_components/ace-builds/src/mode-protobuf.js on lines 855..877

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

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

var oop = require("../lib/oop");
var CMode = require("./c_cpp").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 855..877

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

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

ace.define("ace/mode/erlang",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/erlang_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-actionscript.js on lines 200..221
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 440..461
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-forth.js on lines 223..244
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haskell.js on lines 305..326
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ini.js on lines 133..154
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 645..666
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-prolog.js on lines 297..318
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rust.js on lines 188..209

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

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

ace.define("ace/mode/d",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/d_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-actionscript.js on lines 200..221
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-erlang.js on lines 935..956
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-forth.js on lines 223..244
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haskell.js on lines 305..326
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ini.js on lines 133..154
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 645..666
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-prolog.js on lines 297..318
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rust.js on lines 188..209

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

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

ace.define("ace/mode/forth",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/forth_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-actionscript.js on lines 200..221
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 440..461
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-erlang.js on lines 935..956
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haskell.js on lines 305..326
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ini.js on lines 133..154
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 645..666
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-prolog.js on lines 297..318
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rust.js on lines 188..209

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

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

ace.define("ace/mode/haskell",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/haskell_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-actionscript.js on lines 200..221
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 440..461
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-erlang.js on lines 935..956
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-forth.js on lines 223..244
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ini.js on lines 133..154
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 645..666
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-prolog.js on lines 297..318
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rust.js on lines 188..209

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

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

ace.define("ace/mode/objectivec",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/objectivec_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-actionscript.js on lines 200..221
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 440..461
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-erlang.js on lines 935..956
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-forth.js on lines 223..244
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haskell.js on lines 305..326
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ini.js on lines 133..154
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-prolog.js on lines 297..318
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rust.js on lines 188..209

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

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

ace.define("ace/mode/prolog",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/prolog_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-actionscript.js on lines 200..221
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 440..461
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-erlang.js on lines 935..956
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-forth.js on lines 223..244
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haskell.js on lines 305..326
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ini.js on lines 133..154
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 645..666
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rust.js on lines 188..209

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

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

ace.define("ace/mode/rust",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/rust_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-actionscript.js on lines 200..221
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 440..461
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-erlang.js on lines 935..956
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-forth.js on lines 223..244
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haskell.js on lines 305..326
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ini.js on lines 133..154
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 645..666
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-prolog.js on lines 297..318

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

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

ace.define("ace/mode/ini",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ini_highlight_rules","ace/mode/folding/ini"], 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-actionscript.js on lines 200..221
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 440..461
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-erlang.js on lines 935..956
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-forth.js on lines 223..244
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haskell.js on lines 305..326
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 645..666
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-prolog.js on lines 297..318
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rust.js on lines 188..209

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

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

ace.define("ace/mode/actionscript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/actionscript_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";

var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 440..461
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-erlang.js on lines 935..956
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-forth.js on lines 223..244
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haskell.js on lines 305..326
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ini.js on lines 133..154
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 645..666
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-prolog.js on lines 297..318
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rust.js on lines 188..209

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

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

jQuery.each({
    appendTo: "append",
    prependTo: "prepend",
    insertBefore: "before",
    insertAfter: "after",
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 5423..5448

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

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

1:[function(_dereq_,module,exports){
var identifierStartTable = [];

for (var i = 0; i < 128; i++) {
  identifierStartTable[i] =
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 1323..1348

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

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

7:[function(_dereq_,module,exports){
"use strict";

var state = {
  syntax: {},
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 8515..8544

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

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

1:[function(_dereq_,module,exports){
var identifierStartTable = [];

for (var i = 0; i < 128; i++) {
  identifierStartTable[i] =
samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 1323..1348

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

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

jQuery.each({
    appendTo: "append",
    prependTo: "prepend",
    insertBefore: "before",
    insertAfter: "after",
samples/adminpanel/app/bower_components/jquery/src/manipulation.js on lines 554..579

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

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/ext/beautify",["require","exports","module","ace/token_iterator","ace/ext/beautify/php_rules"], function(require, exports, module) {
"use strict";
var TokenIterator = require("ace/token_iterator").TokenIterator;

var phpTransform = require("./beautify/php_rules").transform;
samples/adminpanel/app/bower_components/ace-builds/demo/kitchen-sink/demo.js on lines 6612..6636

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

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/ext/beautify",["require","exports","module","ace/token_iterator","ace/ext/beautify/php_rules"], function(require, exports, module) {
"use strict";
var TokenIterator = require("ace/token_iterator").TokenIterator;

var phpTransform = require("./beautify/php_rules").transform;
samples/adminpanel/app/bower_components/ace-builds/src/ext-beautify.js on lines 306..330

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

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