SoPR/sopr-platform

View on GitHub
app/assets/javascripts/smooth-scroll.js

Summary

Maintainability
A
1 hr
Test Coverage

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

    var smoothScroll = function (anchor, duration) {

      // Calculate how far and how fast to scroll
      var startLocation = window.pageYOffset;
      var endLocation = anchor.offsetTop;
Severity: Minor
Found in app/assets/javascripts/smooth-scroll.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status