webcol/Calima

View on GitHub
public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js

Summary

Maintainability
F
3 days
Test Coverage

File sql.js has 280 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
Severity: Minor
Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 2 hrs to fix

    Function tokenBase has 61 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function tokenBase(stream, state) {
        var ch = stream.next();
    
        // call hooks from the mime type
        if (hooks[ch]) {
    Severity: Major
    Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

          } else if ((((support.nCharCast == true && (ch == "n" || ch == "N"))
              || (support.charsetCast == true && ch == "_" && stream.match(/[a-z][a-z0-9]*/i)))
              && (stream.peek() == "'" || stream.peek() == '"'))) {
            // charset casting: _utf8'str', N'str', n'str'
            // ref: http://dev.mysql.com/doc/refman/5.5/en/string-literals.html
      Severity: Critical
      Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

            } else if ((support.commentHash && ch == "#")
                || (ch == "-" && stream.eat("-") && (!support.commentSpaceRequired || stream.eat(" ")))) {
              // 1-line comments
              // ref: https://kb.askmonty.org/en/comment-syntax/
              stream.skipToEnd();
        Severity: Major
        Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

              } else if (support.binaryNumber == true &&
                (((ch == "b" || ch == "B") && stream.match(/^'[01]+'/))
                || (ch == "0" && stream.match(/^b[01]+/)))) {
                // bitstring
                // ref: http://dev.mysql.com/doc/refman/5.5/en/bit-field-literals.html
          Severity: Major
          Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                if (support.hexNumber == true &&
                  ((ch == "0" && stream.match(/^[xX][0-9a-fA-F]+/))
                  || (ch == "x" || ch == "X") && stream.match(/^'[0-9a-fA-F]+'/))) {
                  // hex
                  // ref: http://dev.mysql.com/doc/refman/5.5/en/hexadecimal-literals.html
            Severity: Major
            Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 40 mins to fix

              Avoid too many return statements within this function.
              Open

                    return state.tokenize(stream, state);
              Severity: Major
              Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return null;
                Severity: Major
                Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return "variable-3";
                  Severity: Major
                  Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          if (keywords.hasOwnProperty(word)) return "keyword";
                    Severity: Major
                    Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return null;
                      Severity: Major
                      Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return "variable-2";
                        Severity: Major
                        Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return "number";
                          Severity: Major
                          Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return null;
                            Severity: Major
                            Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    if (builtin.hasOwnProperty(word)) return "builtin";
                              Severity: Major
                              Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return null;
                                Severity: Major
                                Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return "keyword";
                                  Severity: Major
                                  Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return "number";
                                    Severity: Major
                                    Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return "comment";
                                      Severity: Major
                                      Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return "number";
                                        Severity: Major
                                        Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                                return "comment";
                                          Severity: Major
                                          Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                                            Avoid too many return statements within this function.
                                            Open

                                                  return state.tokenize(stream, state);
                                            Severity: Major
                                            Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                                              Avoid too many return statements within this function.
                                              Open

                                                    if (atoms.hasOwnProperty(word)) return "atom";
                                              Severity: Major
                                              Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

                                                Avoid too many return statements within this function.
                                                Open

                                                      if (client.hasOwnProperty(word)) return "string-2";
                                                Severity: Major
                                                Found in public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js - About 30 mins to fix

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

                                                    CodeMirror.defineMIME("text/x-mariadb", {
                                                      name: "sql",
                                                      client: set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),
                                                      keywords: set(sqlKeywords + "accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
                                                      builtin: set("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js on lines 293..307

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

                                                  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

                                                    CodeMirror.defineMIME("text/x-mysql", {
                                                      name: "sql",
                                                      client: set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),
                                                      keywords: set(sqlKeywords + "accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group groupby_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
                                                      builtin: set("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js on lines 309..323

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

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

                                                  (function(mod) {
                                                    if (typeof exports == "object" && typeof module == "object") // CommonJS
                                                      mod(require("../../lib/codemirror"));
                                                    else if (typeof define == "function" && define.amd) // AMD
                                                      define(["../../lib/codemirror"], mod);
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/apl/apl.js on lines 4..175
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/asterisk/asterisk.js on lines 20..198
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/clike/clike.js on lines 4..474
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/clojure/clojure.js on lines 9..243
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/cobol/cobol.js on lines 8..255
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/coffeescript/coffeescript.js on lines 8..369
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/commonlisp/commonlisp.js on lines 4..120
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/css/css.js on lines 4..717
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/cypher/cypher.js on lines 7..146
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/d/d.js on lines 4..218
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/diff/diff.js on lines 4..47
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/dtd/dtd.js on lines 11..142
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/dylan/dylan.js on lines 4..299
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/ecl/ecl.js on lines 4..207
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/eiffel/eiffel.js on lines 4..162
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/erlang/erlang.js on lines 18..622
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/fortran/fortran.js on lines 4..188
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/gas/gas.js on lines 4..345
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/gherkin/gherkin.js on lines 19..178
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/go/go.js on lines 4..184
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/groovy/groovy.js on lines 4..226
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/haskell/haskell.js on lines 4..267
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/haxe/haxe.js on lines 4..518
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/http/http.js on lines 4..113
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/javascript/javascript.js on lines 6..684
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/jinja2/jinja2.js on lines 4..142
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/julia/julia.js on lines 4..301
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/kotlin/kotlin.js on lines 4..280
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/livescript/livescript.js on lines 9..280
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/lua/lua.js on lines 8..159
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/meta.js on lines 4..144
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/mirc/mirc.js on lines 6..193
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/mllike/mllike.js on lines 4..205
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/modelica/modelica.js on lines 6..245
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/nginx/nginx.js on lines 4..178
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/ntriples/ntriples.js on lines 32..186
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/octave/octave.js on lines 4..135
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/pascal/pascal.js on lines 4..109
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/perl/perl.js on lines 7..832
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/pig/pig.js on lines 10..188
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/properties/properties.js on lines 4..78
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/puppet/puppet.js on lines 4..220
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/python/python.js on lines 4..359
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/q/q.js on lines 4..139
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/r/r.js on lines 4..162
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/rpm/rpm.js on lines 4..101
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/ruby/ruby.js on lines 4..285
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/rust/rust.js on lines 4..451
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/sass/sass.js on lines 4..327
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/scheme/scheme.js on lines 8..248
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/shell/shell.js on lines 4..138
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/sieve/sieve.js on lines 4..193
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/smalltalk/smalltalk.js on lines 4..168
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/smarty/smarty.js on lines 8..221
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/solr/solr.js on lines 4..104
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/sparql/sparql.js on lines 4..160
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/stex/stex.js on lines 9..262
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/tcl/tcl.js on lines 6..147
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.js on lines 21..367
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/tiki/tiki.js on lines 4..323
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/toml/toml.js on lines 4..88
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/turtle/turtle.js on lines 4..160
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/vb/vb.js on lines 4..274
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/vbscript/vbscript.js on lines 15..350
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/velocity/velocity.js on lines 4..201
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/verilog/verilog.js on lines 4..364
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/xml/xml.js on lines 4..384
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/xquery/xquery.js on lines 4..447
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/yaml/yaml.js on lines 4..112
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/z80/z80.js on lines 4..100

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

                                                  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

                                                    CodeMirror.defineMIME("text/x-plsql", {
                                                      name:       "sql",
                                                      client:     set("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),
                                                      keywords:   set("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),
                                                      builtin:    set("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least lenght lenghtb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js on lines 351..359

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

                                                  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

                                                    CodeMirror.defineMIME("text/x-hive", {
                                                      name: "sql",
                                                      keywords: set("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external false fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger true unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with"),
                                                      builtin: set("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype"),
                                                      atoms: set("false true null unknown"),
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/sql/sql.js on lines 340..348

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

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

                                                    function popContext(state) {
                                                      state.indent = state.context.indent;
                                                      state.context = state.context.prev;
                                                    }
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/q/q.js on lines 83..83
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/r/r.js on lines 109..112
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/sparql/sparql.js on lines 94..97
                                                  public_/plantillas/inspinia/js/plugins/codemirror/mode/turtle/turtle.js on lines 94..97

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

                                                  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