kuasha/cosmos

View on GitHub
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jade.js

Summary

Maintainability
F
2 mos
Test Coverage

File mode-jade.js has 1817 lines of code (exceeds 250 allowed). Consider refactoring.
Open

ace.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;

    Function JavaScriptHighlightRules has 293 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var JavaScriptHighlightRules = function() {
        var keywordMapper = this.createKeywordMapper({
            "variable.language":
                "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|"  + // Constructors
                "Namespace|QName|XML|XMLList|"                                             + // E4X

      Function ScssHighlightRules has 223 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var ScssHighlightRules = function() {
          
          var properties = lang.arrayToMap( (function () {
      
              var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");

        Function LessHighlightRules has 198 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var LessHighlightRules = function() {
            
            var properties = lang.arrayToMap( (function () {
        
                var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");

          Function JadeHighlightRules has 181 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var JadeHighlightRules = function() {
          
              var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
                  "u[0-9a-fA-F]{4}|" + // unicode
                  "[0-2][0-7]{0,2}|" + // oct

            Function CoffeeHighlightRules has 174 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function CoffeeHighlightRules() {
                    var identifier = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*";
            
                    var keywords = (
                        "this|throw|then|try|typeof|super|switch|return|break|by|continue|" +

              Function MarkdownHighlightRules has 153 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var MarkdownHighlightRules = function() {
                  HtmlHighlightRules.call(this);
              
                  this.$rules["start"].unshift({
                      token : "empty_line",

                Function XmlHighlightRules has 146 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var XmlHighlightRules = function(normalize) {
                    this.$rules = {
                        start : [
                            {token : "string.cdata.xml", regex : "<\\!\\[CDATA\\[", next : "cdata"},
                            {

                  Function CssHighlightRules has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var CssHighlightRules = function() {
                  
                      var keywordMapper = this.createKeywordMapper({
                          "support.function": supportFunction,
                          "support.constant": supportConstant,

                    Function properties has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var properties = lang.arrayToMap( (function () {
                    
                            var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");
                            
                            var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" + 

                      Function properties has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          var properties = lang.arrayToMap( (function () {
                      
                              var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");
                              
                              var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" + 

                        Function HtmlHighlightRules has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var HtmlHighlightRules = function() {
                            XmlHighlightRules.call(this);
                        
                            this.addRules({
                                attributes: [{

                          Function getFoldWidget has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              this.getFoldWidget = function(session, foldStyle, row) {
                                  var line = session.getLine(row);
                                  var indent = line.search(/\S/);
                                  var next = session.getLine(row + 1);
                                  var prev = session.getLine(row - 1);

                            Function embedTagRules has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                this.embedTagRules = function(HighlightRules, prefix, tag){
                                    this.$rules.tag.unshift({
                                        token : ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
                                        regex : "(<)(" + tag + "(?=\\s|>|$))",
                                        next: [

                              Avoid too many return statements within this function.
                              Open

                                                      return "support.constant.color";

                                Avoid too many return statements within this function.
                                Open

                                                        return "variable.language";

                                  Avoid too many return statements within this function.
                                  Open

                                                          return "text";

                                    Avoid too many return statements within this function.
                                    Open

                                                            return "variable.language";

                                      Avoid too many return statements within this function.
                                      Open

                                                  return "";

                                        Avoid too many return statements within this function.
                                        Open

                                                                return "support.constant.color";

                                          Avoid too many return statements within this function.
                                          Open

                                                                  return "text";

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

                                            ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
                                            "use strict";
                                            
                                            var oop = require("../lib/oop");
                                            var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 189..499
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 189..499
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-groovy.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 189..499
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-java.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript - Copy.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 189..499
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 189..499
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pgsql.js on lines 402..712
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scala.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sjs.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 654..964
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-typescript.js on lines 45..355
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 45..355

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

                                            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

                                            ace.define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], 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-sass.js on lines 1..253
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scss.js on lines 1..253

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

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

                                            ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
                                            "use strict";
                                            
                                            var oop = require("../lib/oop");
                                            var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 501..709
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 501..709
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 501..709
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 501..709
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 501..709
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 937..1145
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 1..209
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1229..1437
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-xml.js on lines 1..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 1231.

                                            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/less_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], 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-less.js on lines 1..228

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

                                            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/coffee_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
                                            "use strict";
                                            
                                                var oop = require("../lib/oop");
                                                var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coffee.js on lines 1..201

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

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                            ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules","ace/mode/html_highlight_rules","ace/mode/css_highlight_rules"], 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-markdown.js on lines 2340..2533

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

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                            ace.define("ace/mode/jade_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/markdown_highlight_rules","ace/mode/scss_highlight_rules","ace/mode/less_highlight_rules","ace/mode/coffee_highlight_rules","ace/mode/javascript_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-jade.js on lines 1673..1883

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

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

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

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

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

                                            Refactorings

                                            Further Reading

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

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

                                            Duplicated Code

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

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

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

                                            Tuning

                                            This issue has a mass of 809.

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                            ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], 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 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-css.js on lines 1..143
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 1..143
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 1..143
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 1..143
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 1..143
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 1..143
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1546..1688
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-stylus.js on lines 1..143
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 937..1079
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 937..1079

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

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                            ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], 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 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 711..791
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 711..791
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 711..791
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 711..791
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 711..791
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1838..1918
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1439..1519
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-velocity.js on lines 1439..1519

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

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

                                            ace.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-noconflict/mode-c_cpp.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-coldfusion.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-csharp.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-curly.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-d.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dart.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-django.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-dot.js on lines 41..83
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ejs.js on lines 145..187
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 145..187
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-glsl.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-golang.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-groovy.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-handlebars.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-haxe.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-html_ruby.js on lines 145..187
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-java.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript - Copy.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-javascript.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsp.js on lines 145..187
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-jsx.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-liquid.js on lines 145..187
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-luapage.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-markdown.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-mysql.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-nix.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-objectivec.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-pgsql.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-protobuf.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-rhtml.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scad.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-scala.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sjs.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-smarty.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-soy_template.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-svg.js on lines 610..652
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-twig.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-typescript.js on lines 1..43
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/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 205.

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

                                            ace.define("ace/mode/jade",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/jade_highlight_rules","ace/mode/folding/coffee"], 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-apache_conf.js on lines 290..310
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-assembly_x86.js on lines 165..185
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-cirru.js on lines 182..202
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-sass.js on lines 391..412
                                            samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-toml.js on lines 121..141

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

                                            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

                                            There are no issues that match your filters.

                                            Category
                                            Status