kuasha/cosmos

View on GitHub
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/lsl.js

Summary

Maintainability
D
2 days
Test Coverage

File lsl.js has 1039 lines of code (exceeds 250 allowed). Consider refactoring.
Open

ace.define("ace/snippets/lsl",["require","exports","module"], function(require, exports, module) {
"use strict";

exports.snippetText = "snippet @\n\
    @${1:label};\n\

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

    ace.define("ace/snippets/lsl",["require","exports","module"], function(require, exports, module) {
    "use strict";
    
    exports.snippetText = "snippet @\n\
        @${1:label};\n\
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/actionscript.js on lines 1..159
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/c_cpp.js on lines 1..138
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/clojure.js on lines 1..97
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/coffee.js on lines 1..102
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/css.js on lines 1..974
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/dart.js on lines 1..90
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/diff.js on lines 1..18
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/django.js on lines 1..115
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/erlang.js on lines 1..167
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/haml.js on lines 1..27
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/haskell.js on lines 1..89
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/html.js on lines 1..835
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/java.js on lines 1..241
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/javascript.js on lines 1..189
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/jsoniq.js on lines 1..68
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/jsp.js on lines 1..106
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/lua.js on lines 1..28
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/makefile.js on lines 1..11
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/markdown.js on lines 1..95
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/perl.js on lines 1..354
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/php.js on lines 1..283
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/protobuf.js on lines 1..7
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/python.js on lines 1..165
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/r.js on lines 1..128
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/ruby.js on lines 1..935
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/sh.js on lines 1..90
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/snippets.js on lines 1..16
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/sql.js on lines 1..33
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/tcl.js on lines 1..99
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/tex.js on lines 1..197
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/textile.js on lines 1..37
    samples/adminpanel/app/bower_components/ace-builds/src-noconflict/snippets/xquery.js on lines 1..68

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

    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