codenautas/txt-to-sql

View on GitHub

Showing 200 of 405 total issues

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

},{}],3:[function(require,module,exports){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
Severity: Minor
Found in web/iconv-lite.js - About 2 wks 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 buffer has a Cognitive Complexity of 733 (exceeds 5 allowed). Consider refactoring.
Open

},{}],"buffer":[function(require,module,exports){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
Severity: Minor
Found in web/buffer.js - About 2 wks 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

File iconv-lite.js has 4936 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
'use strict'

exports.byteLength = byteLength
exports.toByteArray = toByteArray
Severity: Major
Found in web/iconv-lite.js - About 2 wks to fix

    Function buffer has 1322 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{}],"buffer":[function(require,module,exports){
    /*!
     * The buffer module from node.js, for the browser.
     *
     * @author   Feross Aboukhadijeh <https://feross.org>
    Severity: Major
    Found in web/buffer.js - About 6 days to fix

      Function 3 has 1322 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{}],3:[function(require,module,exports){
      /*!
       * The buffer module from node.js, for the browser.
       *
       * @author   Feross Aboukhadijeh <https://feross.org>
      Severity: Major
      Found in web/iconv-lite.js - About 6 days to fix

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

        },{"base64-js":1,"ieee754":22}],4:[function(require,module,exports){
        "use strict";
        var Buffer = require("safer-buffer").Buffer;
        
        // Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
        Severity: Minor
        Found in web/iconv-lite.js - About 5 days 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

        File buffer.js has 1518 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
        'use strict'
        
        exports.byteLength = byteLength
        exports.toByteArray = toByteArray
        Severity: Major
        Found in web/buffer.js - About 4 days to fix

          File js-to-html.js has 1358 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          "use strict";
          /*jshint eqnull:true */
          /*jshint node:true */
          
          (function codenautasModuleDefinition(root, name, factory) {
          Severity: Major
          Found in web/js-to-html.js - About 3 days to fix

            File txt-to-sql.js has 933 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            "use strict";
            
            var txtToSql = {};
            
            var changing = require('best-globals').changing;    
            Severity: Major
            Found in web/txt-to-sql.js - About 2 days to fix

              File txt-to-sql.js has 933 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              "use strict";
              
              var txtToSql = {};
              
              var changing = require('best-globals').changing;    
              Severity: Major
              Found in lib/txt-to-sql.js - About 2 days to fix

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

                },{"_process":23,"buffer":3}],26:[function(require,module,exports){
                'use strict';
                
                var Buffer = require('safe-buffer').Buffer;
                
                
                Severity: Minor
                Found in web/iconv-lite.js - About 2 days 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 9 has 448 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{"safer-buffer":25}],9:[function(require,module,exports){
                "use strict";
                
                // Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.
                module.exports = {
                Severity: Major
                Found in web/iconv-lite.js - About 2 days to fix

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

                  },{"safer-buffer":25}],20:[function(require,module,exports){
                  "use strict";
                  var Buffer = require("safer-buffer").Buffer;
                  
                  // UTF-7 codec, according to https://tools.ietf.org/html/rfc2152
                  Severity: Minor
                  Found in web/iconv-lite.js - About 2 days 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 4 has 393 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  },{"base64-js":1,"ieee754":22}],4:[function(require,module,exports){
                  "use strict";
                  var Buffer = require("safer-buffer").Buffer;
                  
                  // Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
                  Severity: Major
                  Found in web/iconv-lite.js - About 1 day to fix

                    Function 13 has 273 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    },{}],13:[function(require,module,exports){
                    module.exports=[
                    ["0","\u0000",127],
                    ["8141","갂갃갅갆갋",4,"갘갞갟갡갢갣갥",6,"갮갲갳갴"],
                    ["8161","갵갶갷갺갻갽갾갿걁",9,"걌걎",5,"걕"],
                    Severity: Major
                    Found in web/iconv-lite.js - About 1 day to fix

                      File best-globals.js has 615 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      "use strict";
                      
                      (function codenautasModuleDefinition(root, name, factory) {
                          /* global define */
                          /* istanbul ignore next */
                      Severity: Major
                      Found in web/best-globals.js - About 1 day to fix

                        Function 12 has 264 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        },{}],12:[function(require,module,exports){
                        module.exports=[
                        ["0","\u0000",127,"€"],
                        ["8140","丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪",5,"乲乴",9,"乿",6,"亇亊"],
                        ["8180","亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂",6,"伋伌伒",4,"伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾",4,"佄佅佇",5,"佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"],
                        Severity: Major
                        Found in web/iconv-lite.js - About 1 day to fix

                          Function iconv-lite has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring.
                          Open

                          },{"safe-buffer":24}],"iconv-lite":[function(require,module,exports){
                          (function (process){
                          "use strict";
                          
                          // Some environments don't have global Buffer (e.g. React Native).
                          Severity: Minor
                          Found in web/iconv-lite.js - About 1 day 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 2 has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                          Open

                          },{}],2:[function(require,module,exports){
                          exports.read = function (buffer, offset, isLE, mLen, nBytes) {
                            var e, m
                            var eLen = (nBytes * 8) - mLen - 1
                            var eMax = (1 << eLen) - 1
                          Severity: Minor
                          Found in web/buffer.js - About 1 day 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 22 has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
                          Open

                          },{}],22:[function(require,module,exports){
                          exports.read = function (buffer, offset, isLE, mLen, nBytes) {
                            var e, m
                            var eLen = (nBytes * 8) - mLen - 1
                            var eMax = (1 << eLen) - 1
                          Severity: Minor
                          Found in web/iconv-lite.js - About 1 day 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