betajs/betajs-ui

View on GitHub

Showing 16 of 53 total issues

File gestures.js has 425 lines of code (exceeds 250 allowed). Consider refactoring.
Open

Scoped.define("module:Gestures.ElementStateHost", [
    "base:States.CompetingHost",
    "module:Gestures.GestureStates",
    "base:Classes.ClassRegistry",
    "browser:Dom"
Severity: Minor
Found in src/gestures/gestures.js - About 6 hrs to fix

    File drag.js has 311 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    Scoped.define("module:Interactions.Drag", [
        "module:Interactions.ElementInteraction",
        "module:Elements.ElementModifier",
        "browser:Dom",
        "module:Events.Support",
    Severity: Minor
    Found in src/interactions/drag.js - About 3 hrs to fix

      File scroll.js has 295 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      Scoped.define("module:Interactions.Scroll", [
          "module:Interactions.ElementInteraction",
          "base:Objs",
          "base:Types",
          "base:Async",
      Severity: Minor
      Found in src/interactions/scroll.js - About 3 hrs to fix

        Function _start has 62 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                _start: function() {
        
                    var parentElement = this.parent()._element;
        
                    this._initial_element_coords = {
        Severity: Major
        Found in src/interactions/drag.js - About 2 hrs to fix

          Function constructor has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      constructor: function(element, options, data, stateNS) {
                          stateNS = stateNS || ScrollStates;
                          options = Objs.extend({
                              discrete: false,
                              currentCenter: false,
          Severity: Major
          Found in src/interactions/scroll.js - About 2 hrs to fix

            Function _start has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        _start: function() {
                            if (!this._abortable)
                                this.parent().disableScroll();
                            this.parent().trigger("scrollto");
                            this.on(this.element(), "scroll", function() {
            Severity: Minor
            Found in src/interactions/scroll.js - About 1 hr to fix

              Function _apply has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          _apply: function(value) {
                              var node = this._node;
                              var handler = node._handler;
                              node.interactions = node.interactions || {};
                              if (this._postfix in node.interactions && !node.interactions[this._postfix].destroyed()) {
              Severity: Minor
              Found in src/dynamics/interaction_partial.js - About 1 hr to fix

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

                module.exports = function(grunt) {
                
                    var pkg = grunt.file.readJSON('package.json');
                    var gruntHelper = require('betajs-compile');
                    var dist = 'betajs-ui';
                Severity: Minor
                Found in Gruntfile.js - About 1 hr to fix

                  Function _rotateFix has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              _rotateFix: function() {
                                  var itemsElementChildren = this.itemsElement().children;
                                  var top_ws_height = this._whitespaceGetHeight(this.__top_white_space);
                                  var bottom_ws_height = this._whitespaceGetHeight(this.__bottom_white_space);
                                  var full_height = this.element().scrollHeight;
                  Severity: Minor
                  Found in src/interactions/loop_scroll.js - About 1 hr to fix

                    Function constructor has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                constructor: function(element, options, data) {
                                    options = Objs.extend({
                                        append_count: 25,
                                        prepend_count: 25,
                                        height_factor: 3,
                    Severity: Minor
                    Found in src/interactions/infinite_scroll.js - About 1 hr to fix

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

                                  _apply: function(value) {
                                      var node = this._node;
                                      var handler = node._handler;
                                      node.gestures = node.gestures || {};
                                      if (this._postfix in node.gestures && !node.gestures[this._postfix].destroyed())
                      Severity: Minor
                      Found in src/dynamics/gesture_partial.js - About 1 hr to fix

                        Function dispatchPointsSeparatorEvent has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                dispatchPointsSeparatorEvent: function(element, label, included, excluded, data, options) {
                        Severity: Minor
                        Found in src/events/events_support.js - About 45 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                              if (("x" in box && box.x >= 0 && delta.x >= box.x) || ("y" in box && box.y >= 0 && delta.y >= box.y))
                                                  this.callback();
                          Severity: Major
                          Found in src/gestures/gestures.js - About 40 mins to fix

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

                                        __on: function(element, event, callback, context, options) {
                            Severity: Minor
                            Found in src/interactions/interactions.js - About 35 mins to fix

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

                                          on: function(element, event, callback, context, options) {
                              Severity: Minor
                              Found in src/interactions/interactions.js - About 35 mins to fix

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

                                        dispatchManualBubbleEvent: function(element, label, predicate, data, options) {
                                Severity: Minor
                                Found in src/events/events_support.js - About 35 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language