kuasha/cosmos

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

Summary

Maintainability
F
1 mo
Test Coverage

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

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");
Severity: Major
Found in samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js - About 2 days to fix

    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
    Severity: Major
    Found in samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js - About 1 day to fix

      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"},
                  {
      Severity: Major
      Found in samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js - About 5 hrs to fix

        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,
        Severity: Major
        Found in samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js - About 4 hrs to fix

          Function FtlLangHighlightRules has 80 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var FtlLangHighlightRules = function () {
          
              var stringBuiltIns = "\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|"
                  + "ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|"
                  + "left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|"
          Severity: Major
          Found in samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js - About 3 hrs to fix

            Function FtlHighlightRules has 48 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var FtlHighlightRules = function() {
                HtmlHighlightRules.call(this);
            
                var directives = "assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|"
                    + "ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|"
            Severity: Minor
            Found in samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js - About 1 hr to fix

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

              var HtmlHighlightRules = function() {
                  XmlHighlightRules.call(this);
              
                  this.addRules({
                      attributes: [{
              Severity: Minor
              Found in samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js - About 1 hr to fix

                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: [
                Severity: Minor
                Found in samples/adminpanel/app/bower_components/ace-builds/src/mode-ftl.js - About 1 hr to fix

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

                  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/mode-coldfusion.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 189..499
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-groovy.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 189..499
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-jade.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-java.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-javascript.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-jsp.js on lines 189..499
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-liquid.js on lines 189..499
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-pgsql.js on lines 402..712
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-scala.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-sjs.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 654..964
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-typescript.js on lines 45..355
                  samples/adminpanel/app/bower_components/ace-builds/src/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 1441.

                  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

                  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/mode-coldfusion.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 501..709
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 501..709
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-jade.js on lines 357..565
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-jsp.js on lines 501..709
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-liquid.js on lines 501..709
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 937..1145
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-svg.js on lines 1..209
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-velocity.js on lines 1229..1437
                  samples/adminpanel/app/bower_components/ace-builds/src/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 1227.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  define("ace/mode/ftl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/html_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
                  "use strict";
                  
                  var oop = require("../lib/oop");
                  var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
                  samples/adminpanel/app/bower_components/ace-builds/src-noconflict/mode-ftl.js on lines 793..954

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 817.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  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/mode-coldfusion.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-css.js on lines 1..143
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 1..143
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 1..143
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-jade.js on lines 567..709
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-jsp.js on lines 1..143
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-liquid.js on lines 1..143
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1546..1688
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-stylus.js on lines 1..143
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 937..1079
                  samples/adminpanel/app/bower_components/ace-builds/src/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 718.

                  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

                  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/mode-coldfusion.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-curly.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-django.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-ejs.js on lines 711..791
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-handlebars.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-html.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-html_ruby.js on lines 711..791
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-jade.js on lines 711..791
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-jsp.js on lines 711..791
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-liquid.js on lines 711..791
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-luapage.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-markdown.js on lines 1838..1918
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-rhtml.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-smarty.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-soy_template.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-twig.js on lines 1439..1519
                  samples/adminpanel/app/bower_components/ace-builds/src/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 485.

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

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

                  define("ace/mode/ftl",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ftl_highlight_rules"], function(require, exports, module) {
                  "use strict";
                  
                  var oop = require("../lib/oop");
                  var TextMode = require("./text").Mode;
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-gitignore.js on lines 33..50
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-lucene.js on lines 51..69
                  samples/adminpanel/app/bower_components/ace-builds/src/mode-properties.js on lines 55..72

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 132.

                  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