timw4mail/node-query

View on GitHub

Showing 11 of 21 total issues

Function Split has 301 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var Split = function(ids, options) {
    if (options === void 0) options = {};

    var dimension;
    var clientDimension;
Severity: Major
Found in docs/assets/split.js - About 1 day to fix

    Function AnchorJS has 202 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function AnchorJS(options) {
        this.options = options || {};
        this.elements = [];
    
        /**
    Severity: Major
    Found in docs/assets/anchor.js - About 1 day to fix

      QueryBuilder has 43 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class QueryBuilder extends QueryBuilderBase {
          // ----------------------------------------------------------------------------
          // ! Miscellaneous Methods
          // ----------------------------------------------------------------------------
      
      
      Severity: Minor
      Found in lib/QueryBuilder.js - About 5 hrs to fix

        File split.js has 336 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*! Split.js - v1.3.5 */
        // https://github.com/nathancahill/Split.js
        // Copyright (c) 2017 Nathan Cahill; Licensed MIT
        
        (function(global, factory) {
        Severity: Minor
        Found in docs/assets/split.js - About 4 hrs to fix

          Function add has 85 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              this.add = function(selector) {
                var elements,
                  elsWithIds,
                  idList,
                  elementID,
          Severity: Major
          Found in docs/assets/anchor.js - About 3 hrs to fix

            Function parseWhere has 67 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                parseWhere (driver, state) {
                    const whereMap = state.whereMap;
                    let    whereValues = state.rawWhereValues;
            
                    const outputMap = [];
            Severity: Major
            Found in lib/QueryParser.js - About 2 hrs to fix

              Function _addBaselineStyles has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _addBaselineStyles() {
                    // We don't want to add global baseline styles if they've been added before.
                    if (document.head.querySelector('style.anchorjs') !== null) {
                      return;
                    }
              Severity: Minor
              Found in docs/assets/anchor.js - About 1 hr to fix

                Function updateBatch has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    updateBatch (table, data, updateKey) {
                        let affectedRows = 0;
                        let insertData = [];
                        const fieldLines = [];
                
                
                Severity: Minor
                Found in lib/Driver.js - About 1 hr to fix

                  Function exports has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  module.exports = (() => {
                      delete require.cache[require.resolve('../Driver')];
                      const driver = require('../Driver');
                  
                      // Sqlite doesn't have a truncate command
                  Severity: Minor
                  Found in lib/drivers/Sqlite.js - About 1 hr to fix

                    Function startDragging has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function startDragging(e) {
                          // Alias frequently used variables to save space. 200 bytes.
                          var self = this;
                          var a = elements[self.a].element;
                          var b = elements[self.b].element;
                    Severity: Minor
                    Found in docs/assets/split.js - About 1 hr to fix

                      Function stopDragging has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function stopDragging() {
                            var self = this;
                            var a = elements[self.a].element;
                            var b = elements[self.b].element;
                      
                      
                      Severity: Minor
                      Found in docs/assets/split.js - About 1 hr to fix
                        Severity
                        Category
                        Status
                        Source
                        Language