angular/angular.js

View on GitHub
src/ngTouch/directive/ngSwipe.js

Summary

Maintainability
A
1 hr
Test Coverage

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 src/ngTouch/directive/ngSwipe.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status