codenautas/txt-to-sql

View on GitHub

Showing 200 of 405 total issues

Avoid too many return statements within this function.
Open

  if (x < y) return -1
Severity: Major
Found in web/buffer.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
    Severity: Major
    Found in web/iconv-lite.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return 0
      Severity: Major
      Found in web/iconv-lite.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
        Severity: Major
        Found in web/iconv-lite.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return cachedSetTimeout.call(this, fun, 0);
          Severity: Major
          Found in web/iconv-lite.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              return -1;
            Severity: Major
            Found in web/iconv-lite.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                if (x < y) return -1
              Severity: Major
              Found in web/iconv-lite.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  if (--j < i) return 0;
                Severity: Major
                Found in web/iconv-lite.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return nb;
                  Severity: Major
                  Found in web/iconv-lite.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
                    Severity: Major
                    Found in web/iconv-lite.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
                      Severity: Major
                      Found in web/iconv-lite.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                          if (y < x) return 1
                        Severity: Major
                        Found in web/iconv-lite.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return fromArrayLike(obj.data)
                          Severity: Major
                          Found in web/iconv-lite.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return cachedClearTimeout.call(this, marker);
                            Severity: Major
                            Found in web/iconv-lite.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return 0;
                              Severity: Major
                              Found in web/iconv-lite.js - About 30 mins to fix

                                Function 6 has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                },{"./tables/big5-added.json":11,"./tables/cp936.json":12,"./tables/cp949.json":13,"./tables/cp950.json":14,"./tables/eucjp.json":15,"./tables/gb18030-ranges.json":16,"./tables/gbk-added.json":17,"./tables/shiftjis.json":18}],6:[function(require,module,exports){
                                "use strict";
                                
                                // Update this array if you add/rename/remove files in this directory.
                                // We support Browserify by skipping automatic module discovery and requiring modules directly.
                                Severity: Minor
                                Found in web/iconv-lite.js - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function stringizeStats has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                function stringizeStats(stats) {
                                    var messages=txtToSql.dictionary[stats.lang];
                                    var r=[];
                                    var time = stats.endTime - stats.startTime;
                                    var ms = parseInt((time%1000), 10);
                                Severity: Minor
                                Found in web/txt-to-sql.js - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function adaptBoolean has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                function adaptBoolean(x) {
                                    var v = adaptPlain(x);
                                    if(v==='null') { return v; }
                                    for(var re=0;re<booleanRegExps.length; ++re) {
                                        var rgx = booleanRegExps[re];
                                Severity: Minor
                                Found in web/txt-to-sql.js - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function stringizeStats has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                function stringizeStats(stats) {
                                    var messages=txtToSql.dictionary[stats.lang];
                                    var r=[];
                                    var time = stats.endTime - stats.startTime;
                                    var ms = parseInt((time%1000), 10);
                                Severity: Minor
                                Found in lib/txt-to-sql.js - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function adaptBoolean has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                function adaptBoolean(x) {
                                    var v = adaptPlain(x);
                                    if(v==='null') { return v; }
                                    for(var re=0;re<booleanRegExps.length; ++re) {
                                        var rgx = booleanRegExps[re];
                                Severity: Minor
                                Found in lib/txt-to-sql.js - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Severity
                                Category
                                Status
                                Source
                                Language