codenautas/txt-to-sql

View on GitHub

Showing 200 of 405 total issues

Function 26 has 217 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"_process":23,"buffer":3}],26:[function(require,module,exports){
'use strict';

var Buffer = require('safe-buffer').Buffer;

Severity: Major
Found in web/iconv-lite.js - About 1 day to fix

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

    },{"buffer":3}],25:[function(require,module,exports){
    (function (process){
    /* eslint-disable node/no-deprecated-api */
    
    'use strict'
    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 20 has 202 lines of code (exceeds 25 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: Major
    Found in web/iconv-lite.js - About 1 day to fix

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

      },{}],19:[function(require,module,exports){
      "use strict";
      var Buffer = require("safer-buffer").Buffer;
      
      // Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js
      Severity: Minor
      Found in web/iconv-lite.js - About 7 hrs 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 7 has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
      Open

      },{"./dbcs-codec":4,"./dbcs-data":5,"./internal":7,"./sbcs-codec":8,"./sbcs-data":10,"./sbcs-data-generated":9,"./utf16":19,"./utf7":20}],7:[function(require,module,exports){
      "use strict";
      var Buffer = require("safer-buffer").Buffer;
      
      // Export Node.js internal encodings.
      Severity: Minor
      Found in web/iconv-lite.js - About 7 hrs 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 23 has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
      Open

      },{}],23:[function(require,module,exports){
      // shim for using process in browser
      var process = module.exports = {};
      
      // cached from whatever global is present so that test runners that stub it
      Severity: Minor
      Found in web/iconv-lite.js - About 7 hrs 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 15 has 182 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{}],15:[function(require,module,exports){
      module.exports=[
      ["0","\u0000",127],
      ["8ea1","。",62],
      ["a1a1"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"],
      Severity: Major
      Found in web/iconv-lite.js - About 7 hrs to fix

        Function 14 has 177 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{}],14:[function(require,module,exports){
        module.exports=[
        ["0","\u0000",127],
        ["a140"," ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"],
        ["a1a1","﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢",4,"~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"],
        Severity: Major
        Found in web/iconv-lite.js - About 7 hrs to fix

          Function 23 has 149 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{}],23:[function(require,module,exports){
          // shim for using process in browser
          var process = module.exports = {};
          
          // cached from whatever global is present so that test runners that stub it
          Severity: Major
          Found in web/iconv-lite.js - About 5 hrs to fix

            Function 10 has 136 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{}],10:[function(require,module,exports){
            "use strict";
            
            // Manually added data to be used by sbcs codec in addition to generated one.
            
            
            Severity: Major
            Found in web/iconv-lite.js - About 5 hrs to fix

              Function 7 has 131 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{"./dbcs-codec":4,"./dbcs-data":5,"./internal":7,"./sbcs-codec":8,"./sbcs-data":10,"./sbcs-data-generated":9,"./utf16":19,"./utf7":20}],7:[function(require,module,exports){
              "use strict";
              var Buffer = require("safer-buffer").Buffer;
              
              // Export Node.js internal encodings.
              Severity: Major
              Found in web/iconv-lite.js - About 5 hrs to fix

                Function 18 has 125 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{}],18:[function(require,module,exports){
                module.exports=[
                ["0","\u0000",128],
                ["a1","。",62],
                ["8140"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×"],
                Severity: Major
                Found in web/iconv-lite.js - About 5 hrs to fix

                  Function 11 has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  },{}],11:[function(require,module,exports){
                  module.exports=[
                  ["8740","䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],
                  ["8767","綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"],
                  ["87a1","𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"],
                  Severity: Major
                  Found in web/iconv-lite.js - About 4 hrs to fix

                    Function 1 has 117 lines of code (exceeds 25 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 hrs to fix

                      Function 1 has 117 lines of code (exceeds 25 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 4 hrs to fix

                        Function 19 has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        },{}],19:[function(require,module,exports){
                        "use strict";
                        var Buffer = require("safer-buffer").Buffer;
                        
                        // Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js
                        Severity: Major
                        Found in web/iconv-lite.js - About 4 hrs to fix

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

                          txtToSql.fixLines = function fixLines(info, lines) {
                              var errors=[];
                              var numColumns = info.columnsInfo.length;
                              var ln=0;
                              var linesJoined=0;
                          Severity: Minor
                          Found in web/txt-to-sql.js - About 4 hrs 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 fixLines has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                          Open

                          txtToSql.fixLines = function fixLines(info, lines) {
                              var errors=[];
                              var numColumns = info.columnsInfo.length;
                              var ln=0;
                              var linesJoined=0;
                          Severity: Minor
                          Found in lib/txt-to-sql.js - About 4 hrs 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 iconv-lite has 100 lines of code (exceeds 25 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: Major
                          Found in web/iconv-lite.js - About 4 hrs to fix

                            Function 1 has a Cognitive Complexity of 26 (exceeds 5 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: Minor
                            Found in web/iconv-lite.js - About 3 hrs 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