codenautas/txt-to-sql

View on GitHub

Showing 200 of 405 total issues

Function read has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

exports.read = function (buffer, offset, isLE, mLen, nBytes) {
Severity: Minor
Found in web/iconv-lite.js - About 35 mins to fix

    Function compare has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
    Severity: Minor
    Found in web/iconv-lite.js - About 35 mins to fix

      Function bidirectionalIndexOf has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
      Severity: Minor
      Found in web/iconv-lite.js - About 35 mins to fix

        Function moduleName has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                    var moduleName=name.replace(/^(\.\/)?(.*\/)*([^./]+)(\.js)?$/, function(match, fromThisPath, path, moduleName, extJs){
        Severity: Minor
        Found in web/require-bro.js - About 35 mins to fix

          Function writeDouble has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function writeDouble (buf, value, offset, littleEndian, noAssert) {
          Severity: Minor
          Found in web/buffer.js - About 35 mins to fix

            Function isValidTime has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            bestGlobals.Datetime.isValidTime = function isValidTime(h, m, s, ms, micros) {
            Severity: Minor
            Found in web/best-globals.js - About 35 mins to fix

              Function bidirectionalIndexOf has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
              Severity: Minor
              Found in web/buffer.js - About 35 mins to fix

                Function compare has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
                Severity: Minor
                Found in web/buffer.js - About 35 mins to fix

                  Function setCol has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  function setCol(info, prop, index, defVal, stateArray) {
                  Severity: Minor
                  Found in lib/txt-to-sql.js - About 35 mins to fix

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

                    (function codenautasModuleDefinition(root, name, factory) {
                        /* global define */
                        /* istanbul ignore next */
                        if(typeof root.globalModuleName !== 'string'){
                            root.globalModuleName = name;
                    Severity: Minor
                    Found in web/best-globals.js - About 35 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 codenautasModuleDefinition has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    (function codenautasModuleDefinition(root, name, factory) {
                        /* global define */
                        /* istanbul ignore next */
                        if(typeof root.globalModuleName !== 'string'){
                            root.globalModuleName = name;
                    Severity: Minor
                    Found in web/js-to-html.js - About 35 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

                    Avoid too many return statements within this function.
                    Open

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

                      Avoid too many return statements within this function.
                      Open

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

                        Avoid too many return statements within this function.
                        Open

                          return 0
                        Severity: Major
                        Found in web/buffer.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/buffer.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/buffer.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/buffer.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                            return window.require.definedModules[name] = window[camelName];
                                Severity: Major
                                Found in web/require-bro.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/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/buffer.js - About 30 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language