RLOpenCatalyst/core

View on GitHub
client/cat3/customlib/angular-touch.js

Summary

Maintainability
B
5 hrs
Test Coverage

File angular-touch.js has 274 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license AngularJS v1.4.4
 * (c) 2010-2015 Google, Inc. http://angularjs.org
 * License: MIT
 */
Severity: Minor
Found in client/cat3/customlib/angular-touch.js - About 2 hrs to fix

    Function bind has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        bind: function(element, eventHandlers, pointerTypes) {
          // Absolute total movement, used to control swipe vs. scroll.
          var totalX, totalY;
          // Coordinates of the start position.
          var startCoords;
    Severity: Minor
    Found in client/cat3/customlib/angular-touch.js - About 1 hr to fix

      Function makeSwipeDirective has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function makeSwipeDirective(directiveName, direction, eventName) {
        ngTouch.directive(directiveName, ['$parse', '$swipe', function($parse, $swipe) {
          // The maximum vertical delta for a swipe should be less than 75px.
          var MAX_VERTICAL_DISTANCE = 75;
          // Vertical distance should not be more than a fraction of the horizontal distance.
      Severity: Minor
      Found in client/cat3/customlib/angular-touch.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status