appbaseio/mirage

View on GitHub

Showing 357 of 7,143 total issues

Function setAsOpen has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

,    setAsOpen = function (pane, skipCallback) {
        var 
            $P        = $Ps[pane]
        ,    $R        = $Rs[pane]
        ,    $T        = $Ts[pane]
Severity: Minor
Found in assets/vendor/jquery.layout/jquery.layout.js - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

            if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
                var c = $(o.containment);
                var ce = c[0]; if(!ce) return;
                var co = c.offset();
                var over = ($(ce).css("overflow") != 'hidden');
    Severity: Critical
    Found in assets/vendor/jquery.layout/jquery-ui.js - About 2 hrs to fix

      Function animateClass has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      $.effects.animateClass = function( value, duration, easing, callback ) {
          var o = $.speed( duration, easing, callback );
      
          return this.queue( function() {
              var animated = $( this ),
      Severity: Minor
      Found in assets/vendor/jquery.layout/jquery-ui.js - About 2 hrs to fix

        Function _mouseCapture has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _mouseCapture: function( event ) {
                var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
                    that = this,
                    o = this.options;
        
        
        Severity: Minor
        Found in assets/vendor/jquery.layout/jquery-ui.js - About 2 hrs to fix

          Function _clear has 50 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _clear: function(event, noPropagation) {
          
                  this.reverting = false;
                  // We delay all events that have to be triggered to after the point where the placeholder has been removed and
                  // everything else normalized again
          Severity: Minor
          Found in assets/vendor/jquery.layout/jquery-ui.js - About 2 hrs to fix

            Function allowOverflow has 49 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function allowOverflow (el) {
                    if (!isInitialized()) return;
                    if (this && this.tagName) el = this; // BOUND to element
                    var $P;
                    if (isStr(el))
            Severity: Minor
            Found in assets/vendor/jquery.layout/jquery.layout.js - About 1 hr to fix

              Function arrayIndexOf has 49 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
                var indexSize = 1
                var arrLength = arr.length
                var valLength = val.length
              
              
              Severity: Minor
              Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

                Function slideOffscreen has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    $.effects.slideOffscreen = function(o) {
                        return this.queue(function(){
                
                            var fx        = $.effects
                            ,    opt        = o.options
                Severity: Minor
                Found in assets/vendor/jquery.layout/jquery.layout.js - About 1 hr to fix

                  Function _contactContainers has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _contactContainers: function(event) {
                  
                          // get innermost container that intersects with item
                          var innermostContainer = null, innermostIndex = null;
                  
                  
                  Severity: Minor
                  Found in assets/vendor/jquery.layout/jquery-ui.js - About 1 hr to fix

                    Function blind has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    $.effects.effect.blind = function( o, done ) {
                        // Create element
                        var el = $( this ),
                            props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
                            mode = $.effects.setMode( el, o.mode || "hide" ),
                    Severity: Minor
                    Found in assets/vendor/jquery.layout/jquery-ui.js - About 1 hr to fix

                      Function fill has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      Buffer.prototype.fill = function fill (val, start, end, encoding) {
                        // Handle string cases:
                        if (typeof val === 'string') {
                          if (typeof start === 'string') {
                            encoding = start
                      Severity: Minor
                      Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

                        Function _determineDate has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _determineDate: function(inst, date, defaultDate) {
                                var offsetNumeric = function(offset) {
                                    var date = new Date();
                                    date.setDate(date.getDate() + offset);
                                    return date;
                        Severity: Minor
                        Found in assets/vendor/jquery.layout/jquery-ui.js - About 1 hr to fix

                          Function _toggle has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _toggle: function( event, eventData ) {
                                  var that = this,
                                      toShow = eventData.newPanel,
                                      toHide = eventData.oldPanel;
                          
                          
                          Severity: Minor
                          Found in assets/vendor/jquery.layout/jquery-ui.js - About 1 hr to fix

                            Function runQuery has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              runQuery() {
                                var self = this;
                                this.appbaseService.setAppbase(this.config);
                                var validate = this.checkValidQuery();
                            
                            
                            Severity: Minor
                            Found in app/jsonEditor/jsonEditor.component.ts - About 1 hr to fix

                              Function _animate has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _animate: function( toShow, toHide, data ) {
                                      var total, easing, duration,
                                          that = this,
                                          adjust = 0,
                                          down = toShow.length &&
                              Severity: Minor
                              Found in assets/vendor/jquery.layout/jquery-ui.js - About 1 hr to fix

                                Function compare has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
                                  if (!Buffer.isBuffer(target)) {
                                    throw new TypeError('Argument must be a Buffer')
                                  }
                                
                                
                                Severity: Minor
                                Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

                                  Function scale has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  $.effects.effect.scale = function( o, done ) {
                                  
                                      // Create element
                                      var el = $( this ),
                                          options = $.extend( true, {}, o ),
                                  Severity: Minor
                                  Found in assets/vendor/jquery.layout/jquery-ui.js - About 1 hr to fix

                                    Function newQuery has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      newQuery(currentQuery) {
                                        let queryList = this.storageService.get("queryList");
                                        if (queryList) {
                                          let list = JSON.parse(queryList);
                                          let queryData = list.filter(function(query) {
                                    Severity: Minor
                                    Found in app/app.component.ts - About 1 hr to fix

                                      Function getIndices has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        getIndices() {
                                          var es_host = document.URL.split("/_plugin/")[0];
                                          var getIndices = this.appbaseService.getIndices(es_host);
                                          getIndices
                                            .then(
                                      Severity: Minor
                                      Found in app/app.component.ts - About 1 hr to fix

                                        Function fold has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        $.effects.effect.fold = function( o, done ) {
                                        
                                            // Create element
                                            var el = $( this ),
                                                props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
                                        Severity: Minor
                                        Found in assets/vendor/jquery.layout/jquery-ui.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language